Skip to content
Snippets Groups Projects
Unverified Commit b57d3abd authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

try to make changes, but even the version downloaded around 13/06/2021 cannot be built

parent 6dc54a74
No related branches found
No related tags found
No related merge requests found
FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic
# set version label
ARG BUILD_DATE
ARG VERSION
ARG CODE_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="aptalca"
# environment settings
ENV HOME="/config"
......@@ -63,5 +58,42 @@ RUN \
# add local files
COPY /root /
# Install on-my-zsh
RUN chsh --shell /bin/zsh abc && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" && \
git clone --branch master --single-branch --depth 1 \
"https://github.com/zsh-users/zsh-autosuggestions.git" \
/config/.oh-my-zsh/plugins/zsh-autosuggestions && \
echo "source /config/.oh-my-zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" \
>> /config/.zshrc && \
git clone --branch master --single-branch --depth 1 \
"https://github.com/zsh-users/zsh-syntax-highlighting.git" \
/config/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting && \
sed -i 's/plugins=(.*/plugins=(git vscode)/' /config/.zshrc && \
echo 'PS1="%B%F{blue}%~:%f%b "' >>/config/.zshrc
# The SSH key pair is stored in /config
RUN mkdir /root/.ssh && \
echo "Host gitlab-student.centralesupelec.fr " > /root/.ssh/config && \
echo " PreferredAuthentications publickey" >> /root/.ssh/config && \
echo " IdentityFile /config/.ssh/id_ed25519" >> /root/.ssh/config && \
mkdir /config/.ssh
# VSCode extension for Python
RUN /usr/local/bin/code-server --install-extension ms-python.python
# /config will be a docker volume, initially empty
# wrapper_script will do the copy from /init-config
RUN chown -R abc:abc /config && \
mv /config /init-config && \
mkdir -p /config/workspace && \
chown -R abc:abc /config
# Will be entry point
COPY wrapper_script.sh /usr/local/lib/wrapper_script.sh
# launch
ENTRYPOINT ["/bin/bash", "/usr/local/lib/wrapper_script.sh"]
# ports and volumes
EXPOSE 8443
#!/bin/bash
if [ -z $2 ]; then
AUTH="none"
else
AUTH="password"
fi
cp -Rn /init-config/.oh-my-zsh /config/
cp -Rn /init-config/.openvscode-server /config/
cp -Rn /init-config/.zshrc /config/
mkdir /config/workspace
chown -R abc:abc /config
# Environment
export TZ=Europe/Paris
export SUDO_PASSWORD=abc
# Not executed ?
/usr/bin/bash /etc/cont-init.d/30-config
cd /app/openvscode-server || exit
exec \
s6-setuidgid abc \
/usr/local/bin/code-server \
--bind-addr 0.0.0.0:8443 \
--user-data-dir /config/data \
--extensions-dir /config/extensions \
--disable-telemetry \
--auth "${AUTH}" \
/config/workspace
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment