Skip to content

Commit

Permalink
Merge pull request #6 from SergioAtSUSE/suse_hackweek17
Browse files Browse the repository at this point in the history
Fix writing permissions issue
  • Loading branch information
SergioAtSUSE authored Jul 12, 2018
2 parents 501d7d8 + 99ff6e4 commit 8553f5f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
10 changes: 7 additions & 3 deletions docker-build-contexts/gedit.jupiter/Dockerfile
Original file line number Diff line number Diff line change
@@ -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="[email protected]"
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"

Expand All @@ -15,13 +15,17 @@ 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

# 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
Expand Down

0 comments on commit 8553f5f

Please sign in to comment.