Skip to content
Snippets Groups Projects
Commit 713d3232 authored by nimrod's avatar nimrod
Browse files

Base on my toolbx base image.

parent 234d015b
No related branches found
No related tags found
No related merge requests found
Pipeline #3112 failed
* *
!bash_completion.d/* !bash_completion.d/*
!bin/* !bin/*
!preferences.d/*
!sources.d/*
FROM docker.io/library/debian:testing-backports # hadolint ignore=DL3007
FROM registry.shore.co.il/toolbx:latest
SHELL ["/bin/bash", "-o", "pipefail", "-xc"] SHELL ["/bin/bash", "-o", "pipefail", "-xc"]
# hadolint ignore=DL3008
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gnupg \
&& \
export GNUPGHOME=/tmp/gnupghome && \
mkdir --mode=0700 "$GNUPGHOME" && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg > \
/usr/share/keyrings/google-cloud.gpg && \
curl https://pgp.mongodb.com/server-5.0.asc | \
gpg --no-default-keyring --import --batch --keyring /usr/share/keyrings/mongodb.gpg && \
curl https://cli-assets.heroku.com/apt/release.key | \
gpg --no-default-keyring --import --batch --keyring /usr/share/keyrings/heroku.gpg && \
curl https://apt.releases.hashicorp.com/gpg | \
gpg --no-default-keyring --import --batch --keyring /usr/share/keyrings/hashicorp.gpg && \
curl https://dl.cloudsmith.io/public/cloudposse/packages/gpg.7333C6FDEFA717CC.key | \
gpg --no-default-keyring --import --batch --keyring /usr/share/keyrings/cloudposse.gpg && \
gpg --no-default-keyring --keyring /usr/share/keyrings/percona.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 9334A25F8507EFA5 && \
gpg --no-default-keyring --keyring /usr/share/keyrings/clickhouse.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8919F6BD2B48D754 && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
COPY --chown=root:root sources.d/* /etc/apt/sources.list.d/
COPY --chown=root:root preferences.d/* /etc/apt/preferences.d/
# hadolint ignore=DL3008,DL3013,DL3016,DL3027,DL4001 # hadolint ignore=DL3008,DL3013,DL3016,DL3027,DL4001
RUN apt-get update && \ RUN apt-get update && \
curl --location --silent --fail --show-error https://github.com/kubernetes/kompose/releases/download/v1.26.1/kompose_1.26.1_amd64.deb --output /tmp/kompose.deb && \ curl --location --silent --fail --show-error https://github.com/kubernetes/kompose/releases/download/v1.26.1/kompose_1.26.1_amd64.deb --output /tmp/kompose.deb && \
...@@ -179,7 +156,6 @@ RUN apt-get update && \ ...@@ -179,7 +156,6 @@ RUN apt-get update && \
&& \ && \
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/; s/# en_IL UTF-8/en_IL UTF-8/; s/# he_IL.UTF-8 UTF-8/he_IL.UTF-8 UTF-8/;' /etc/locale.gen && \ sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/; s/# en_IL UTF-8/en_IL UTF-8/; s/# he_IL.UTF-8 UTF-8/he_IL.UTF-8 UTF-8/;' /etc/locale.gen && \
locale-gen && \ locale-gen && \
ln --symbolic --target /usr/local/bin/ /usr/libexec/flatpak-xdg-utils/* && \
python3 -m pip install --use-deprecated=legacy-resolver --no-cache-dir \ python3 -m pip install --use-deprecated=legacy-resolver --no-cache-dir \
https://github.com/aws/aws-cli/archive/refs/heads/v2.zip \ https://github.com/aws/aws-cli/archive/refs/heads/v2.zip \
ansible \ ansible \
...@@ -300,17 +276,12 @@ RUN apt-get update && \ ...@@ -300,17 +276,12 @@ RUN apt-get update && \
wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem -qO - | \ wget https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem -qO - | \
awk '/-----BEGIN[A-Z0-9 ]*CERTIFICATE-----/ {n++} n > 0 {print > ("/usr/local/share/ca-certificates/rds-" (1+n) ".crt")}' && \ awk '/-----BEGIN[A-Z0-9 ]*CERTIFICATE-----/ {n++} n > 0 {print > ("/usr/local/share/ca-certificates/rds-" (1+n) ".crt")}' && \
update-ca-certificates && \ update-ca-certificates && \
mkdir /etc/krb5.conf.d && \
echo 'VARIANT_ID=container' >> /etc/os-release && \
echo "export PATH=$GOPATH/bin:\$PATH" > /etc/profile.d/workbench.sh && \ echo "export PATH=$GOPATH/bin:\$PATH" > /etc/profile.d/workbench.sh && \
touch /etc/localtime && \
# pragma: allowlist nextline secret # pragma: allowlist nextline secret
rm /etc/ssh/ssh_host_* && \ rm /etc/ssh/ssh_host_* && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/* rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/* ~/.cache/*
COPY --chown=root:root bash_completion.d/* /etc/bash_completion.d/ COPY --chown=root:root bash_completion.d/* /etc/bash_completion.d/
COPY --chown=root:root bin/* /usr/local/bin/ COPY --chown=root:root bin/* /usr/local/bin/
LABEL com.github.containers.toolbox="true" \
com.github.debarshiray.toolbox="true"
ENV PATH /usr/local/lib/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ENV PATH /usr/local/lib/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV ASDF_DIR /opt/asdf ENV ASDF_DIR /opt/asdf
VOLUME /run/sshd VOLUME /run/sshd
......
Package: *
Pin: release o=https://cloudsmith.io
Pin-Priority: 400
Types: deb
URIs: https://packages.clickhouse.com/deb
Suites: stable
Components: main
Signed-By: /usr/share/keyrings/clickhouse.gpg
Types: deb deb-src
URIs: https://dl.cloudsmith.io/public/cloudposse/packages/deb/debian
Suites: any-version
Components: main
Signed-By: /usr/share/keyrings/cloudposse.gpg
Types: deb
URIs: https://packages.cloud.google.com/apt
Suites: cloud-sdk
Components: main
Signed-By: /usr/share/keyrings/google-cloud.gpg
Types: deb
URIs: https://apt.releases.hashicorp.com
Suites: buster
Components: main
Signed-By: /usr/share/keyrings/hashicorp.gpg
deb [ signed-by=/usr/share/keyrings/heroku.gpg ] https://cli-assets.heroku.com/apt ./
Types: deb
URIs: https://repo.mongodb.org/apt/debian
Suites: buster/mongodb-org/5.0
Components: main
Signed-By: /usr/share/keyrings/mongodb.gpg
Types: deb
URIs: https://repo.percona.com/apt/
Suites: bullseye
Components: main
Signed-By: /usr/share/keyrings/percona.gpg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment