Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Added Openshift Dockerfile.
Browse files Browse the repository at this point in the history
Signed-off-by: James Drummond <james.m.drummond@gmail.com>
  • Loading branch information
JamesDrummond authored and devcomb committed Apr 19, 2018
1 parent b9f1f01 commit 0060616
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions theia-openshift-docker/Dockerfile
@@ -0,0 +1,9 @@
FROM theiaide/theia
COPY entrypoint /home/theia
RUN chgrp -R 0 /home/theia && \
chmod a+x /home/theia/entrypoint && \
chmod -R g=u /home/theia && \
chmod g=u /etc/passwd
USER 10001
ENTRYPOINT ["/home/theia/entrypoint"]
CMD yarn theia start /home/project --hostname 0.0.0.0
8 changes: 8 additions & 0 deletions theia-openshift-docker/entrypoint
@@ -0,0 +1,8 @@
#!/bin/bash
export HOME=/home/theia
export USER_ID=$(id -u)
export GROUP_ID=$(id -g)
if [ -w /etc/passwd ]; then
echo "default:x:$(id -u):$(id -g):default user:${HOME}:/sbin/nologin" >> /etc/passwd
fi
exec "$@"

0 comments on commit 0060616

Please sign in to comment.