From 6ac20cd1c421bd5576863805e2b8db1042fd6e82 Mon Sep 17 00:00:00 2001 From: Sergio Lindo Mansilla Date: Thu, 12 Jul 2018 16:25:15 +0200 Subject: [PATCH 1/3] Fix writing permissions issue --- docker-build-contexts/gedit.jupiter/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-build-contexts/gedit.jupiter/Dockerfile b/docker-build-contexts/gedit.jupiter/Dockerfile index ab6e238..6a0f257 100644 --- a/docker-build-contexts/gedit.jupiter/Dockerfile +++ b/docker-build-contexts/gedit.jupiter/Dockerfile @@ -1,7 +1,7 @@ -#!BuildTag: jupiter-system/gedit:1.0.1-3.20.2-3.24 +#!BuildTag: jupiter-system/gedit:1.0.2-3.20.2-3.24 FROM opensuse:42.3 LABEL MAINTAINER="sergiolindo.empresa@gmail.com" -LABEL VERSION="1.0.1" +LABEL VERSION="1.0.2" LABEL DESCRIPTION="gedit to be executed on a MicroOS server with X forwarding from a remote X-client" LABEL GITHUB="https://github.com/SergioAtSUSE/jupiter-system" @@ -20,8 +20,12 @@ RUN zypper --non-interactive install --force-resolution iso-codes RUN zypper --non-interactive install --force-resolution libcanberra-gtk3-module RUN zypper --non-interactive install --force-resolution cantarell-fonts +# For recently open files feature VOLUME [ "/home/nobody/.local/share" ] # For saving documents +RUN mkdir "/permanent-data" +RUN chown nobody:nogroup "/permanent-data" +RUN chmod ug+rwxs "/permanent-data" VOLUME [ "/permanent-data" ] USER nobody:nogroup From 5f560ab2bfc576141c424866184f59f268ca8aed Mon Sep 17 00:00:00 2001 From: Sergio Lindo Mansilla Date: Thu, 12 Jul 2018 16:36:45 +0200 Subject: [PATCH 2/3] Set package specific version properly --- docker-build-contexts/gedit.jupiter/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-build-contexts/gedit.jupiter/Dockerfile b/docker-build-contexts/gedit.jupiter/Dockerfile index 6a0f257..64177d7 100644 --- a/docker-build-contexts/gedit.jupiter/Dockerfile +++ b/docker-build-contexts/gedit.jupiter/Dockerfile @@ -15,7 +15,7 @@ RUN zypper --non-interactive install --force-resolution libudev1 RUN zypper --non-interactive install --force-resolution xauth # App and dependencies -RUN zypper --non-interactive install --force-resolution gedit +RUN zypper --non-interactive install --force-resolution gedit=3.20.2-3.24 RUN zypper --non-interactive install --force-resolution iso-codes RUN zypper --non-interactive install --force-resolution libcanberra-gtk3-module RUN zypper --non-interactive install --force-resolution cantarell-fonts From 99ff6e4bb6d0e587c651bfd73b09e565f8ebb218 Mon Sep 17 00:00:00 2001 From: Sergio Lindo Mansilla Date: Thu, 12 Jul 2018 17:03:09 +0200 Subject: [PATCH 3/3] Add usage info about gedit.jupiter --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ab13b09..b811e57 100644 --- a/README.md +++ b/README.md @@ -27,11 +27,33 @@ root@microos:~# reboot After reboot, the configuration change from _/etc_ is kept, the system boots from the snapshot with _xauth_ installed and the _docker service_ is started at boot. +Then create a regular user on microos. This case is assuming `user`. + ### 2. Using docker images to run applications This project is assuming docker as the container manager tool. The docker images should not only contain the application to run, they may also need the fonts installed separately because most of the packages are assuming some fonts to be there. You can find here a list of already prepared docker images for using with **Jupiter system**: -- gedit.jupiter (coming soon) +- gedit.jupiter + 1. First connect to the microos server + ```bash + user@local:~$ ssh -X user@microos + ``` + 2. Then create the credential file for the container + ```bash + xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f .docker.xauth nmerge - + ``` + 3. Then pull the docker image + ```bash + user@microos:~$ sudo docker image pull registry.opensuse.org/home/slindomansilla/branches/opensuse/templates/images/42.3/containers/jupiter-system/gedit:1.0.2-3.20.2-3.24 + ``` + 4. Then you can run these commands: + ```bash + # find out your user id + userid=`id` + # start the container + user@microos:~$ sudo docker container run --name user_gedit -e DISPLAY=$DISPLAY -e XAUTHORITY=/home/sergio/.Xauthority -v ~/.docker.xauth:/home/sergio/.Xauthority --user ${id}:nogroup registry.opensuse.org/home/slindomansilla/branches/opensuse/templates/images/42.3/containers/jupiter-system/gedit:1.0.2-3.20.2-3.24 + ``` + 5. Compose file (coming soon) - firefox.jupiter (coming soon)