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

Commit

Permalink
Improve remote binary image.
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Andriienko <[email protected]>
  • Loading branch information
AndrienkoAleksandr committed Aug 23, 2019
1 parent e3ad878 commit 6b2e379
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions dockerfiles/theia-endpoint-runtime/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ RUN mkdir /home/theia

ENV HOME=/home/theia

COPY --from=builder /plugin-remote /plugin-remote
COPY --from=builder /plugin-remote /remote-plugin-launcher/plugin-remote
ADD etc/entrypoint.sh /remote-plugin-launcher/entrypoint.sh

RUN mkdir /projects \
# Store passwd/group as template files
Expand All @@ -36,6 +37,3 @@ RUN mkdir /projects \
echo "Changing permissions on ${f}" && chgrp -R 0 ${f} && \
chmod -R g+rwX ${f}; \
done

ADD etc/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
5 changes: 2 additions & 3 deletions dockerfiles/theia-endpoint-runtime/etc/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ set -e
# on callback, kill the last background process, which is `tail -f /dev/null` and execute the specified handler
trap 'responsible_shutdown' HUP TERM INT

cd ${HOME}

# run theia endpoint
/plugin-remote &
CWD=$(cd "$(dirname "$0")"; pwd)
${CWD}/plugin-remote &

PID=$!

Expand Down

0 comments on commit 6b2e379

Please sign in to comment.