Build insiders
This commit is contained in:
parent
d38c804a52
commit
59b4f07cae
14
Dockerfile
14
Dockerfile
@ -31,7 +31,7 @@ RUN \
|
|||||||
libsecret-1-dev && \
|
libsecret-1-dev && \
|
||||||
echo "**** install vscode-server ****" && \
|
echo "**** install vscode-server ****" && \
|
||||||
if [ -z ${CODE_RELEASE+x} ]; then \
|
if [ -z ${CODE_RELEASE+x} ]; then \
|
||||||
CODE_RELEASE=$(curl -sLX GET "https://update.code.visualstudio.com/api/latest/server-linux-x64-web/stable" \
|
CODE_RELEASE=$(curl -sLX GET "https://update.code.visualstudio.com/api/latest/server-linux-x64-web/insider" \
|
||||||
| jq '.version' -r); \
|
| jq '.version' -r); \
|
||||||
fi && \
|
fi && \
|
||||||
if [ -z ${CLI_RELEASE+x} ]; then \
|
if [ -z ${CLI_RELEASE+x} ]; then \
|
||||||
@ -39,24 +39,24 @@ RUN \
|
|||||||
| jq '.version' -r); \
|
| jq '.version' -r); \
|
||||||
fi && \
|
fi && \
|
||||||
mkdir -p /usr/local/bin && \
|
mkdir -p /usr/local/bin && \
|
||||||
mkdir -p /app/vscode-server/server-stable-web/bin/${CODE_RELEASE} && \
|
mkdir -p /app/vscode-server/server-insiders-web/bin/${CODE_RELEASE} && \
|
||||||
mkdir -p /app/vscode-server/server-stable/bin/${CODE_RELEASE} && \
|
mkdir -p /app/vscode-server/server-insiders/bin/${CODE_RELEASE} && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/usr/local/bin/code-server -L \
|
/usr/local/bin/code-server -L \
|
||||||
"https://vscodeserverlauncher.blob.core.windows.net/builds/${CLI_RELEASE}/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu" && \
|
"https://vscodeserverlauncher.blob.core.windows.net/builds/${CLI_RELEASE}/x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu" && \
|
||||||
chmod +x /usr/local/bin/code-server && \
|
chmod +x /usr/local/bin/code-server && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/vscode-server-web.tar.gz -L \
|
/tmp/vscode-server-web.tar.gz -L \
|
||||||
"https://az764295.vo.msecnd.net/stable/${CODE_RELEASE}/vscode-server-linux-x64-web.tar.gz" && \
|
"https://az764295.vo.msecnd.net/insider/${CODE_RELEASE}/vscode-server-linux-x64-web.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/vscode-server-web.tar.gz -C \
|
/tmp/vscode-server-web.tar.gz -C \
|
||||||
/app/vscode-server/server-stable-web/bin/${CODE_RELEASE}/ --strip-components=1 && \
|
/app/vscode-server/server-insiders-web/bin/${CODE_RELEASE}/ --strip-components=1 && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/vscode-server.tar.gz -L \
|
/tmp/vscode-server.tar.gz -L \
|
||||||
"https://az764295.vo.msecnd.net/stable/${CODE_RELEASE}/vscode-server-linux-x64.tar.gz" && \
|
"https://az764295.vo.msecnd.net/insider/${CODE_RELEASE}/vscode-server-linux-x64.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/vscode-server.tar.gz -C \
|
/tmp/vscode-server.tar.gz -C \
|
||||||
/app/vscode-server/server-stable/bin/${CODE_RELEASE}/ --strip-components=1 && \
|
/app/vscode-server/server-insiders/bin/${CODE_RELEASE}/ --strip-components=1 && \
|
||||||
echo "**** clean up ****" && \
|
echo "**** clean up ****" && \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
|
@ -45,7 +45,7 @@ fi
|
|||||||
cp /root/.profile /config/.profile
|
cp /root/.profile /config/.profile
|
||||||
|
|
||||||
echo "setting permissions::app"
|
echo "setting permissions::app"
|
||||||
lsiown -R abc:abc /app/vscode-server
|
lsiown abc:abc /app/vscode-server/{{server-insiders-web,server-insiders},{server-insiders-web,server-insiders}/bin}
|
||||||
echo "setting permissions::config"
|
echo "setting permissions::config"
|
||||||
find /config -path /config/.vscode-server -prune -o -exec chown abc:abc {} +
|
find /config -path /config/.vscode-server -prune -o -exec chown abc:abc {} +
|
||||||
|
|
||||||
|
@ -19,7 +19,8 @@ exec \
|
|||||||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 8000" \
|
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z 127.0.0.1 8000" \
|
||||||
s6-setuidgid abc \
|
s6-setuidgid abc \
|
||||||
/usr/local/bin/code-server serve-local \
|
/usr/local/bin/code-server serve-local \
|
||||||
--accept-server-license-terms \
|
--accept-server-license-terms\
|
||||||
|
--quality insiders \
|
||||||
--host 0.0.0.0 \
|
--host 0.0.0.0 \
|
||||||
--disable-telemetry \
|
--disable-telemetry \
|
||||||
${CODE_LOCAL_ARGS}
|
${CODE_LOCAL_ARGS}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
# shellcheck shell=bash
|
# shellcheck shell=bash
|
||||||
|
|
||||||
_install=(/usr/local/bin/code-server "serve-local" "--accept-server-license-terms" "--install-extension")
|
_install=(/usr/local/bin/code-server "serve-local" "--accept-server-license-terms" "--quality" "insiders" "--install-extension")
|
||||||
|
|
||||||
if [ "$(whoami)" == "abc" ]; then
|
if [ "$(whoami)" == "abc" ]; then
|
||||||
"${_install[@]}" "$@"
|
"${_install[@]}" "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user