mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-26 06:35:40 +03:00
reworked base images
This commit is contained in:
parent
199f30c05f
commit
57a2322b6b
0
.github/workflows/Untitled-1
vendored
Normal file
0
.github/workflows/Untitled-1
vendored
Normal file
29
linux/advanced/python/main/2.7/.env
Normal file
29
linux/advanced/python/main/2.7/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,8 +29,10 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
@ -37,12 +40,6 @@ RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN python --version
|
||||
RUN pip --version
|
||||
|
||||
##################################################################
|
||||
# installing utils
|
||||
##################################################################
|
||||
@ -68,22 +65,20 @@ RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | x
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -217,41 +212,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -266,9 +270,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -277,21 +284,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN python --version
|
||||
RUN pip --version
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:2.7"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu cosmic main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu cosmic main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu cosmic main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu cosmic main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu cosmic main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu cosmic main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu cosmic main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu cosmic main
|
||||
|
Binary file not shown.
29
linux/advanced/python/main/3.10/.env
Normal file
29
linux/advanced/python/main/3.10/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,8 +29,10 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
@ -37,15 +40,6 @@ RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y
|
||||
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN python3 --version
|
||||
RUN pip3 --version
|
||||
RUN python --version
|
||||
RUN pip --version
|
||||
|
||||
##################################################################
|
||||
# installing utils
|
||||
##################################################################
|
||||
@ -71,22 +65,20 @@ RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | x
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -219,41 +211,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -268,9 +269,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -279,22 +283,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN python3 --version
|
||||
RUN pip3 --version
|
||||
RUN python --version
|
||||
RUN pip --version
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.10"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
29
linux/advanced/python/main/3.11/.env
Normal file
29
linux/advanced/python/main/3.11/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,15 +29,13 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853
|
||||
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y
|
||||
@ -60,25 +59,26 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
software-properties-common \
|
||||
sudo
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||||
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -211,41 +211,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -260,9 +269,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -271,14 +283,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
29
linux/advanced/python/main/3.12/.env
Normal file
29
linux/advanced/python/main/3.12/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,15 +29,13 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
|
||||
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y
|
||||
@ -60,25 +59,26 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
software-properties-common \
|
||||
sudo
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||||
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -182,7 +182,6 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
xz-utils \
|
||||
zip
|
||||
|
||||
|
||||
##################################################################
|
||||
# installing fs-tools
|
||||
##################################################################
|
||||
@ -211,41 +210,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -260,9 +268,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -271,14 +282,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.12"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
29
linux/advanced/python/main/3.13/.env
Normal file
29
linux/advanced/python/main/3.13/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,15 +29,13 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
|
||||
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y
|
||||
@ -60,25 +59,26 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
software-properties-common \
|
||||
sudo
|
||||
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||||
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||||
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -210,41 +210,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -259,9 +268,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -270,14 +282,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.13"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
Binary file not shown.
29
linux/advanced/python/main/3.6/.env
Normal file
29
linux/advanced/python/main/3.6/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,8 +29,10 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
@ -62,22 +65,20 @@ RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | x
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -208,41 +209,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -257,9 +267,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -268,14 +281,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.6"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
Binary file not shown.
29
linux/advanced/python/main/3.7/.env
Normal file
29
linux/advanced/python/main/3.7/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,8 +29,10 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
@ -62,22 +65,20 @@ RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | x
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -209,41 +210,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -258,9 +268,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -269,14 +282,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.7"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
Binary file not shown.
29
linux/advanced/python/main/3.8/.env
Normal file
29
linux/advanced/python/main/3.8/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -209,41 +209,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -258,9 +267,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -269,14 +281,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.8"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
Binary file not shown.
29
linux/advanced/python/main/3.9/.env
Normal file
29
linux/advanced/python/main/3.9/.env
Normal file
@ -0,0 +1,29 @@
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
##################################################################
|
||||
P4_VERSION=r23.2
|
||||
P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
SZ_VERSION=7z2400
|
||||
SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
LZGIT_VERSION=0.40.2
|
||||
LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
DUMB_INIT_VERSION=1.2.5
|
||||
DUMB_INIT_DOWNLOAD_URL=https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64
|
||||
|
||||
##################################################################
|
||||
# gosu
|
||||
##################################################################
|
||||
GOSU_VER=1.17
|
||||
GOSU_DOWNLOAD_URL=https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64
|
@ -21,6 +21,7 @@ LABEL donate.crypto.XMR="884PqZ1gDjWW7fKxtbaeRoBeSh9EGZbkqUyLriWmuKbwLZrAJdYUs4w
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -28,8 +29,10 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
@ -62,22 +65,21 @@ RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | x
|
||||
RUN update-ca-certificates
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=http://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -181,7 +183,6 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
xz-utils \
|
||||
zip
|
||||
|
||||
|
||||
##################################################################
|
||||
# installing fs-tools
|
||||
##################################################################
|
||||
@ -210,41 +211,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -259,9 +269,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -270,14 +283,46 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Version
|
||||
##################################################################
|
||||
RUN echo "=============================================" && \
|
||||
echo python3 $(python3 --version) && \
|
||||
echo pip3 $(pip3 --version) && \
|
||||
echo python $(python --version) && \
|
||||
echo pip $(pip --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
##################################################################
|
||||
#RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
RUN openssl dhparam -out /etc/ssl/dhparam.pem 4096
|
||||
|
||||
##################################################################
|
||||
# update locales
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/python:3.9"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -0,0 +1 @@
|
||||
Acquire::Retries "9";
|
@ -0,0 +1,2 @@
|
||||
Acquire::https::Verify-Peer "false";
|
||||
Acquire::https::Verify-Host "false";
|
@ -0,0 +1 @@
|
||||
APT::Get::AllowUnauthenticated "true";
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ bullseye main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu focal main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu focal main
|
||||
|
Binary file not shown.
Binary file not shown.
@ -3,22 +3,20 @@ LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
##################################################################
|
||||
# perforce client binary
|
||||
# ARGuments
|
||||
##################################################################
|
||||
ARG P4_VERSION=r23.2
|
||||
ARG P4_DOWNLOAD_URL=https://filehost.perforce.com/perforce/${P4_VERSION}/bin.linux26x86_64/p4
|
||||
|
||||
##################################################################
|
||||
# 7z official binary
|
||||
##################################################################
|
||||
ARG SZ_VERSION=7z2400
|
||||
ARG SZ_DOWNLOAD_URL=https://www.7-zip.org/a/${SZ_VERSION}-linux-x64.tar.xz
|
||||
|
||||
##################################################################
|
||||
# LazyGit official binary
|
||||
##################################################################
|
||||
ARG LZGIT_VERSION=0.40.2
|
||||
ARG LZGIT_DOWNLOAD_URL=https://github.com/jesseduffield/lazygit/releases/download/v${LZGIT_VERSION}/lazygit_${LZGIT_VERSION}_Linux_x86_64.tar.gz
|
||||
#configured by dockerfile / .ENV
|
||||
ARG P4_VERSION
|
||||
ARG P4_DOWNLOAD_URL
|
||||
ARG SZ_VERSION
|
||||
ARG SZ_DOWNLOAD_URL
|
||||
ARG LZGIT_VERSION
|
||||
ARG LZGIT_DOWNLOAD_URL
|
||||
ARG DUMB_INIT_VERSION
|
||||
ARG DUMB_INIT_DOWNLOAD_URL
|
||||
ARG GOSU_VER
|
||||
ARG GOSU_DOWNLOAD_URL
|
||||
|
||||
##################################################################
|
||||
# update lists
|
||||
@ -142,41 +140,50 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
|
||||
##################################################################
|
||||
# git fresh binary
|
||||
##################################################################
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
RUN gpg --keyserver keyserver.ubuntu.com --recv-keys A1715D88E1DF1F24 && \
|
||||
gpg --export --output /etc/apt/keyrings/launchpad-git.gpg A1715D88E1DF1F24 && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-mainline.list && \
|
||||
rm -rfv /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-mainline.list /etc/apt/sources.list.d/launchpad_git-mainline.list
|
||||
COPY etc/apt/sources.list.d/launchpad_git-stable.list /etc/apt/sources.list.d/launchpad_git-stable.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git && \
|
||||
git --version
|
||||
git
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# git-lfs official binary
|
||||
##################################################################
|
||||
#RUN curl -s https://packagecloud.io/github/git-lfs/gpgkey | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/git-lfs.gpg --import && \
|
||||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157 && \
|
||||
RUN curl -fsSL https://packagecloud.io/github/git-lfs/gpgkey | gpg --dearmor > /etc/apt/keyrings/github_git-lfs-archive-keyring.gpg && \
|
||||
rm -rfv /etc/apt/sources.list.d/github_git-lfs.list
|
||||
COPY etc/apt/sources.list.d/github_git-lfs.list /etc/apt/sources.list.d/github_git-lfs.list
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
git \
|
||||
git-lfs && \
|
||||
git --version && \
|
||||
git-lfs install --skip-repo && \
|
||||
git-lfs --version
|
||||
git-lfs install --skip-repo
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo git $(git --version) && \
|
||||
echo git-lfs $(git-lfs --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# gh official binary
|
||||
##################################################################
|
||||
RUN wget -c https://cli.github.com/packages/githubcli-archive-keyring.gpg -O /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/trusted.gpg.d/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg && \
|
||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y --allow-unauthenticated \
|
||||
gh && \
|
||||
gh --version
|
||||
gh
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gh $(gh --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install p4client
|
||||
@ -191,9 +198,12 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
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
|
||||
mv -fv /tmp/7z/7zz /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo 7zz $(7zz | head -4) && \
|
||||
echo 7z $(7z | head -4) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Install LazyGit official binary
|
||||
@ -202,26 +212,31 @@ RUN wget --no-check-certificate -nv --random-wait --retry-connrefused --continue
|
||||
mkdir -p /tmp/lazygit && \
|
||||
tar -zxvf /tmp/lazygit.tar.xz -C /tmp/lazygit && \
|
||||
chmod +x /tmp/lazygit/lazygit && \
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/ && \
|
||||
echo "lazygit version:" && \
|
||||
lazygit --version
|
||||
mv -fv /tmp/lazygit/lazygit /usr/bin/
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo lazygit $(lazygit --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# dumb init
|
||||
##################################################################
|
||||
ARG DUMB_INIT_VERSION=1.2.5
|
||||
RUN wget -q --no-check-certificate -c https://github.com/Yelp/dumb-init/releases/download/v${DUMB_INIT_VERSION}/dumb-init_${DUMB_INIT_VERSION}_x86_64 --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init && \
|
||||
dumb-init --version
|
||||
RUN wget -q --no-check-certificate -c ${DUMB_INIT_DOWNLOAD_URL} --random-wait -O /usr/bin/dumb-init && \
|
||||
chmod +x /usr/bin/dumb-init
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo dumb-init $(dumb-init --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# grab gosu for easy step-down from root
|
||||
# gosu for easy step-down from root
|
||||
##################################################################
|
||||
ARG GOSU_VER=1.17
|
||||
RUN wget -q --no-check-certificate -c https://github.com/tianon/gosu/releases/download/${GOSU_VER}/gosu-amd64 --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu && \
|
||||
gosu --version
|
||||
RUN wget -q --no-check-certificate -c ${GOSU_DOWNLOAD_URL} --random-wait -O /usr/local/bin/gosu && \
|
||||
chmod +x /usr/local/bin/gosu
|
||||
|
||||
RUN echo "=============================================" && \
|
||||
echo gosu $(gosu --version) && \
|
||||
echo "============================================="
|
||||
|
||||
##################################################################
|
||||
# Generate ssl key
|
||||
|
@ -4,3 +4,14 @@ services:
|
||||
image: "epicmorg/debian:buster"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
P4_VERSION: ${P4_VERSION}
|
||||
P4_DOWNLOAD_URL: ${P4_DOWNLOAD_URL}
|
||||
SZ_VERSION: ${SZ_VERSION}
|
||||
SZ_DOWNLOAD_URL: ${SZ_DOWNLOAD_URL}
|
||||
LZGIT_VERSION: ${LZGIT_VERSION}
|
||||
LZGIT_DOWNLOAD_URL: ${LZGIT_DOWNLOAD_URL}
|
||||
DUMB_INIT_VERSION: ${DUMB_INIT_VERSION}
|
||||
DUMB_INIT_DOWNLOAD_URL: ${DUMB_INIT_DOWNLOAD_URL}
|
||||
GOSU_VER: ${GOSU_VER}
|
||||
GOSU_DOWNLOAD_URL: ${GOSU_DOWNLOAD_URL}
|
||||
|
@ -1,2 +1,2 @@
|
||||
deb https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
deb-src https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/debian/ buster main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# mainline
|
||||
deb https://ppa.launchpadcontent.net/git-core/candidate/ubuntu disco main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/candidate/ubuntu disco main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu disco main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/candidate/ubuntu disco main
|
||||
|
@ -1,3 +1,3 @@
|
||||
# stable
|
||||
deb https://ppa.launchpadcontent.net/git-core/ppa/ubuntu disco main
|
||||
deb-src https://ppa.launchpadcontent.net/git-core/ppa/ubuntu disco main
|
||||
deb [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu disco main
|
||||
deb-src [signed-by=/etc/apt/keyrings/launchpad-git.gpg] https://ppa.launchpadcontent.net/git-core/ppa/ubuntu disco main
|
||||
|
@ -20,6 +20,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||
# prepare system
|
||||
##################################################################
|
||||
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
|
||||
##################################################################
|
||||
# sources list
|
||||
@ -27,7 +28,7 @@ RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||||
RUN rm -rfv /etc/apt/sources.list
|
||||
RUN rm -rfv /etc/locale.gen
|
||||
|
||||
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/keyrings/deb-multimedia-keyring.gpg /etc/apt/keyrings/deb-multimedia-keyring.gpg
|
||||
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||||
COPY etc/apt/apt.conf.d/98-allow-unauthenticated /etc/apt/apt.conf.d/98-allow-unauthenticated
|
||||
COPY etc/apt/apt.conf.d/97-allow-cert-exp /etc/apt/apt.conf.d/97-allow-cert-exp
|
||||
@ -35,7 +36,6 @@ COPY etc/apt/apt.conf.d/96-apt-retries /etc/apt/apt.conf.d/96-apt-retries
|
||||
COPY etc/apt/sources.list /etc/apt/sources.list
|
||||
COPY etc/locale.gen /etc/locale.gen
|
||||
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get dist-upgrade -y
|
||||
|
@ -1,5 +1,5 @@
|
||||
##multimedia
|
||||
#deb http://httpredir.debian.org/debian-multimedia/ buster main non-free
|
||||
#deb-src http://httpredir.debian.org/debian-multimedia/ buster main non-free
|
||||
#deb http://httpredir.debian.org/debian-multimedia/ buster-backports main
|
||||
#deb-src http://httpredir.debian.org/debian-multimedia/ buster-backports main
|
||||
#deb [signed-by=/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg] http://httpredir.debian.org/debian-multimedia/ buster main non-free
|
||||
#deb-src [signed-by=/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg] http://httpredir.debian.org/debian-multimedia/ buster main non-free
|
||||
#deb [signed-by=/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg] http://httpredir.debian.org/debian-multimedia/ buster-backports main
|
||||
#deb-src [signed-by=/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg] http://httpredir.debian.org/debian-multimedia/ buster-backports main
|
||||
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user