Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Shell setup with external supervisord
Browse files Browse the repository at this point in the history
  • Loading branch information
Agustin committed Jun 4, 2019
1 parent dbe81c4 commit fefa38d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ RUN set -ex; \
RUN adduser --disabled-password --gecos '' novnc
RUN adduser novnc sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN mkdir -p /home/novnc/logs
RUN mkdir -p /home/novnc/pid
RUN chown -R novnc:novnc /home/

# Setup demo environment variables
ENV HOME=/home/novnc \
Expand All @@ -31,6 +34,9 @@ ENV HOME=/home/novnc \
DISPLAY_HEIGHT=768 \
RUN_XTERM=yes \
RUN_FLUXBOX=yes

COPY . /app
CMD ["/app/entrypoint.sh"]
EXPOSE 8080

USER novnc:novnc

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# noVNC Display Container
# noVNC-rootLess
```
```

After shell run this to start no VNC:
supervisord -c /app/supervisord.conf &


This image is intended to be used for displaying X11 applications from other containers in a browser. A stand-alone demo as well as a [Version 2](https://docs.docker.com/compose/compose-file/#version-2) composition.

## Image Contents
Expand Down
3 changes: 3 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
[supervisord]
nodaemon=true
user=novnc
logfile=/home/novnc/logs/logfile
pidfile=/home/novnc/pid/supervisord.pid

[include]
files = /app/conf.d/*.conf

0 comments on commit fefa38d

Please sign in to comment.