Commit 9ee31d27 authored by april's avatar april
Browse files

Merge branch 'april-master-patch-66663' into 'master'

April master patch 66663

See merge request !1
parents fb6ee468 aa6671d9
Pipeline #885 passed with stage
in 49 seconds
stages:
- build
before_script:
- docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" ${CI_REGISTRY}
services:
- docker:dind
build-docker:
image: docker:latest
stage: build
script:
- docker build --pull -t ${CI_REGISTRY_IMAGE}:latest .
- docker push ${CI_REGISTRY_IMAGE}:latest
FROM ubuntu:20.04
ENV TZ=Asia/Seoul
ENV code_version=3.7.1
ENV uname=user
ENV uid=1000
ENV password=password
COPY scripts/* /usr/bin/
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list; \
apt update && apt -y dist-upgrade; \
apt install wget -y; \
wget --quiet --no-check-certificate https://github.com/cdr/code-server/releases/download/v${code_version}/code-server-${code_version}-linux-amd64.tar.gz; \
tar xfzp code-server-${code_version}-linux-amd64.tar.gz; \
rm code-server-${code_version}-linux-amd64.tar.gz; \
mv code-server-${code_version}-linux-amd64 /app; \
chmod 700 /usr/bin/entrypoint.sh /usr/bin/init.sh; \
mkdir /workspace
WORKDIR /workspace
CMD entrypoint.sh
if [ ! -f "/.init" ]; then
init.sh
touch /.init
fi
/app/code-server
if [ ! -d "/root/.config/code-server" ]; then
mkdir /root/.config
mkdir /root/.config/code-server
fi
config="/root/.config/code-server/config.yaml"
if [ ! -f ${config} ]; then
touch ${config}
echo "bind-addr: 0.0.0.0:8080" >> ${config}
echo "auth: password" >> ${config}
echo "password: ${password}" >> ${config}
echo "cert: false" >> ${config}
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment