mirror of
https://github.com/hassio-addons/addon-vscode.git
synced 2025-05-07 04:31:24 +00:00
🔨 Download extensions sooner, fail fast
This commit is contained in:
parent
6955f7916b
commit
da49410529
1 changed files with 21 additions and 21 deletions
|
@ -56,27 +56,6 @@ RUN \
|
||||||
&& mv /tmp/code-server /usr/local/bin/code-server \
|
&& mv /tmp/code-server /usr/local/bin/code-server \
|
||||||
&& chmod a+x /usr/local/bin/code-server \
|
&& chmod a+x /usr/local/bin/code-server \
|
||||||
\
|
\
|
||||||
&& curl -L -s -o /usr/bin/ha \
|
|
||||||
"https://github.com/home-assistant/cli/releases/download/4.1.0/ha_${BUILD_ARCH}" \
|
|
||||||
&& chmod a+x /usr/bin/ha \
|
|
||||||
\
|
|
||||||
&& git clone --branch master --single-branch --depth 1 \
|
|
||||||
"git://github.com/robbyrussell/oh-my-zsh.git" ~/.oh-my-zsh \
|
|
||||||
\
|
|
||||||
&& git clone --branch master --single-branch --depth 1 \
|
|
||||||
"git://github.com/zsh-users/zsh-autosuggestions" \
|
|
||||||
~/.oh-my-zsh/custom/plugins/zsh-autosuggestions \
|
|
||||||
&& git clone --branch master --single-branch --depth 1 \
|
|
||||||
"git://github.com/zsh-users/zsh-syntax-highlighting.git" \
|
|
||||||
~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting \
|
|
||||||
\
|
|
||||||
&& sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd \
|
|
||||||
\
|
|
||||||
&& update-alternatives \
|
|
||||||
--install /usr/bin/python python /usr/bin/python3 10 \
|
|
||||||
\
|
|
||||||
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
|
|
||||||
\
|
|
||||||
&& mkdir -p /root/.code-server/extensions \
|
&& mkdir -p /root/.code-server/extensions \
|
||||||
&& while read -r ext; do \
|
&& while read -r ext; do \
|
||||||
extention="${ext%%#*}" \
|
extention="${ext%%#*}" \
|
||||||
|
@ -98,6 +77,27 @@ RUN \
|
||||||
done < /root/vscode.extensions \
|
done < /root/vscode.extensions \
|
||||||
&& ls -la /root/.code-server/extensions/ \
|
&& ls -la /root/.code-server/extensions/ \
|
||||||
\
|
\
|
||||||
|
&& curl -L -s -o /usr/bin/ha \
|
||||||
|
"https://github.com/home-assistant/cli/releases/download/4.1.0/ha_${BUILD_ARCH}" \
|
||||||
|
&& chmod a+x /usr/bin/ha \
|
||||||
|
\
|
||||||
|
&& git clone --branch master --single-branch --depth 1 \
|
||||||
|
"git://github.com/robbyrussell/oh-my-zsh.git" ~/.oh-my-zsh \
|
||||||
|
\
|
||||||
|
&& git clone --branch master --single-branch --depth 1 \
|
||||||
|
"git://github.com/zsh-users/zsh-autosuggestions" \
|
||||||
|
~/.oh-my-zsh/custom/plugins/zsh-autosuggestions \
|
||||||
|
&& git clone --branch master --single-branch --depth 1 \
|
||||||
|
"git://github.com/zsh-users/zsh-syntax-highlighting.git" \
|
||||||
|
~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting \
|
||||||
|
\
|
||||||
|
&& sed -i -e "s#bin/bash#bin/zsh#" /etc/passwd \
|
||||||
|
\
|
||||||
|
&& update-alternatives \
|
||||||
|
--install /usr/bin/python python /usr/bin/python3 10 \
|
||||||
|
\
|
||||||
|
&& pip3 install --no-cache-dir -r /tmp/requirements.txt \
|
||||||
|
\
|
||||||
&& apt-get purge -y --auto-remove \
|
&& apt-get purge -y --auto-remove \
|
||||||
bsdtar \
|
bsdtar \
|
||||||
build-essential \
|
build-essential \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue