Skip to content

Commit

Permalink
FIX supervisord to run install extension before
Browse files Browse the repository at this point in the history
  • Loading branch information
synoet committed Nov 12, 2023
1 parent 9884d34 commit 7579cce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 3 additions & 1 deletion theia-pincer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ RUN set -ex; \
chown -R ${USER}:${USER} /home/anubis

COPY supervisord.conf /supervisord.conf
COPY install_extension.sh /etc/anubis/init.d/install_extension.sh
COPY install_extension.sh /opt/install_extension.sh

RUN chmod +x /opt/install_extension.sh

USER anubis
4 changes: 2 additions & 2 deletions theia-pincer/install_extension.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#! /bin/bash
curl https://pincer-server.fly.dev/version/latest/download -o /opt/code-server/pincer.vsix
code-server --install-extension /opt/code-server/pincer.vsix
curl https://pincer-server.fly.dev/version/latest/download -o /opt/code-server/pincer.vsix
/usr/bin/code-server --user-data-dir=/opt/code-server --install-extension /opt/code-server/pincer.vsix
10 changes: 10 additions & 0 deletions theia-pincer/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
logfile=/log/ide.log
loglevel=debug

[program:install-extension]
command=/opt/install_extension.sh
priority=1
directory=/home/anubis
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
user=anubis

[program:theia]
command=/usr/bin/code-server --config /etc/anubis/config.yml --enable-proposed-api synoet.pincer-extension /home/anubis/%(ENV_REPO_NAME)s
directory=/home/anubis
Expand All @@ -10,6 +19,7 @@ user=anubis
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
priority=10

[program:incluster-init]
directory=/home/anubis
Expand Down

0 comments on commit 7579cce

Please sign in to comment.