mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 14:15:38 +03:00
vscode
This commit is contained in:
parent
80ffa68fde
commit
707716daad
131
linux/advanced/vscode-server/latest/Dockerfile
Normal file
131
linux/advanced/vscode-server/latest/Dockerfile
Normal file
@ -0,0 +1,131 @@
|
|||||||
|
################################################################################
|
||||||
|
# https://github.com/linuxserver/docker-code-server/pkgs/container/code-server
|
||||||
|
################################################################################
|
||||||
|
FROM ghcr.io/linuxserver/code-server:focal
|
||||||
|
|
||||||
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
USER root
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# ARGuments
|
||||||
|
##################################################################
|
||||||
|
ENV BuildDocker true
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# 7z official binary
|
||||||
|
##################################################################
|
||||||
|
ENV SZ_VERSION=7z2103
|
||||||
|
ENV SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# installing utils
|
||||||
|
##################################################################
|
||||||
|
# libzip4 \
|
||||||
|
# lbzip2 \
|
||||||
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y --allow-unauthenticated \
|
||||||
|
apt-transport-https \
|
||||||
|
apt-utils \
|
||||||
|
aptitude \
|
||||||
|
bash \
|
||||||
|
binutils \
|
||||||
|
bzip2 \
|
||||||
|
ca-certificates \
|
||||||
|
cmatrix \
|
||||||
|
cmatrix-xfont \
|
||||||
|
console-cyrillic \
|
||||||
|
cron \
|
||||||
|
curl \
|
||||||
|
clzip \
|
||||||
|
dos2unix \
|
||||||
|
ffmpeg \
|
||||||
|
fontconfig \
|
||||||
|
git \
|
||||||
|
gnupg \
|
||||||
|
gnupg2 \
|
||||||
|
graphicsmagick \
|
||||||
|
gzip \
|
||||||
|
htop \
|
||||||
|
iftop \
|
||||||
|
iputils-ping \
|
||||||
|
jq \
|
||||||
|
kmod \
|
||||||
|
libxml2-dev \
|
||||||
|
libxml2-utils \
|
||||||
|
libsvn-java \
|
||||||
|
locales \
|
||||||
|
lsb-release \
|
||||||
|
lsof \
|
||||||
|
lynx \
|
||||||
|
lzma \
|
||||||
|
lzip \
|
||||||
|
lzop \
|
||||||
|
mc \
|
||||||
|
mercurial \
|
||||||
|
nano \
|
||||||
|
nload \
|
||||||
|
nmap \
|
||||||
|
openssl \
|
||||||
|
perl \
|
||||||
|
procps \
|
||||||
|
pbzip2 \
|
||||||
|
plzip \
|
||||||
|
p7zip-full \
|
||||||
|
p7zip-rar \
|
||||||
|
rsync \
|
||||||
|
rar \
|
||||||
|
screenfetch \
|
||||||
|
smbclient \
|
||||||
|
software-properties-common \
|
||||||
|
subversion \
|
||||||
|
sudo \
|
||||||
|
telnet \
|
||||||
|
tini \
|
||||||
|
tmux \
|
||||||
|
tree \
|
||||||
|
util-linux \
|
||||||
|
uuid-runtime \
|
||||||
|
unrar \
|
||||||
|
xz-utils \
|
||||||
|
wget \
|
||||||
|
zip
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Install 7z official binary
|
||||||
|
##################################################################
|
||||||
|
RUN wget -nv --random-wait -c -O /tmp/7z.tar.xz ${SZ_DOWNLOAD_URL} && \
|
||||||
|
mkdir -p /tmp/7z && \
|
||||||
|
tar -xf /tmp/7z.tar.xz -C /tmp/7z && \
|
||||||
|
chmod +x /tmp/7z/7zz && \
|
||||||
|
mv -fv /tmp/7z/7zz /usr/bin/ && \
|
||||||
|
7zz | head -4 && \
|
||||||
|
7z | head -4
|
||||||
|
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# Install GitHub CLI binary
|
||||||
|
##################################################################
|
||||||
|
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && \
|
||||||
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null && \
|
||||||
|
sudo apt update && \
|
||||||
|
sudo apt install -y --allow-unauthenticated gh && \
|
||||||
|
gh --version
|
||||||
|
|
||||||
|
##################################################################
|
||||||
|
# cleaninig up
|
||||||
|
##################################################################
|
||||||
|
RUN apt purge policykit-1 -y && \
|
||||||
|
apt clean -y && \
|
||||||
|
apt autoclean -y && \
|
||||||
|
rm -rfv /var/lib/apt/lists/* && \
|
||||||
|
rm -rfv /tmp/mc.patch && \
|
||||||
|
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||||
|
rm -rfv /tmp/7z && \
|
||||||
|
rm -rfv /tmp/deb/* && \
|
||||||
|
rm -rfv /tmp/composer-setup.php && \
|
||||||
|
rm -rfv /tmp/amxx_base_latest.tar.gz && \
|
||||||
|
rm -rfv /tmp/atlassian-plugin-sdk.deb && \
|
||||||
|
rm -rfv /tmp/addons
|
19
linux/advanced/vscode-server/latest/Makefile
Normal file
19
linux/advanced/vscode-server/latest/Makefile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
all: app
|
||||||
|
|
||||||
|
app:
|
||||||
|
make build
|
||||||
|
make deploy
|
||||||
|
make clean
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker-compose build --compress --parallel
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
docker-compose push
|
||||||
|
|
||||||
|
clean:
|
||||||
|
docker container prune -f
|
||||||
|
docker image prune -f
|
||||||
|
docker network prune -f
|
||||||
|
docker volume prune -f
|
||||||
|
docker system prune -af
|
6
linux/advanced/vscode-server/latest/docker-compose.yml
Normal file
6
linux/advanced/vscode-server/latest/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: '3.9'
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: "epicmorg/vscode-server:latest"
|
||||||
|
build:
|
||||||
|
context: .
|
Loading…
Reference in New Issue
Block a user