# Prepare ``` export OBS_USERNAME=M0ses ``` # APPImage ## Create new project ### Create temporary config file ``` cat < tmp.txt <description/> <person userid="$OBS_USERNAME" role="bugowner"/> <person userid="$OBS_USERNAME" role="maintainer"/> <repository name="AppImage"> <path project="OBS:AppImage:Templates" repository="AppImage"/> <arch>x86_64</arch> </repository> </project> EOF ``` ## Create new project based on temporary config file ``` osc meta prj home:$OBS_USERNAME:WorkShop:AppImage -F tmp.txt ``` ## Branch package to newly created project ``` osc branch OBS:AppImage:Templates AppImageTemplate home:$OBS_USERNAME:WorkShop myFirstAppImage ``` # Docker with kiwi ### Create temporary config file ``` cat <<EOF > tmp.txt <project name="home:$OBS_USERNAME:WorkShop:DockerWithKiwi"> <title/> <description/> <person userid="$OBS_USERNAME" role="bugowner"/> <person userid="$OBS_USERNAME" role="maintainer"/> <repository name="images"> <path project="openSUSE:Templates:Images:42.3" repository="images"/> <arch>x86_64</arch> </repository> </project> EOF ``` ## Create new project based on temporary config file ``` osc meta prj home:$OBS_USERNAME:WorkShop:DockerWithKiwi -F tmp.txt ``` ## Branch package to newly created project ``` osc branch openSUSE:Templates:Images:42.3 openSUSE-Leap-42.3-Container-kiwi home:$OBS_USERNAME:WorkShop:DockerWithKiwi myFirstKiwiContainer ``` # Docker native ### Create temporary config file ``` cat <<EOF > tmp.txt <project name="home:$OBS_USERNAME:WorkShop:DockerNative"> <title/> <description/> <person userid="$OBS_USERNAME" role="bugowner"/> <person userid="$OBS_USERNAME" role="maintainer"/> <repository name="containers"> <path project="openSUSE:Templates:Images:42.3" repository="containers"/> <arch>x86_64</arch> </repository> </project> EOF ``` ## Create new project based on temporary config file ``` osc meta prj home:$OBS_USERNAME:WorkShop:DockerNative -F tmp.txt ``` ## Branch package to newly created project ``` osc branch openSUSE:Templates:Images:42.3 openSUSE-Leap-42.3-Container home:$OBS_USERNAME:WorkShop:DockerNative myFirstNativeContainer ``` # Result ``` osc co <project>/<package> cd <project>/<package> osc r -w ```