镜像构建历史
# 2025-01-15 15:07:42 0.00B 设置默认要执行的命令
CMD ["start" "all"]
# 2025-01-15 15:07:42 0.00B 设置停止容器时发送的系统调用信号
STOPSIGNAL SIGQUIT
# 2025-01-15 15:07:42 0.00B 声明容器运行时监听的端口
EXPOSE map[8080/tcp:{}]
# 2025-01-15 15:07:42 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["./entrypoint.sh"]
# 2025-01-15 15:07:42 0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/opt/jumpserver/data]
# 2025-01-15 15:07:42 0.00B 设置工作目录为/opt/jumpserver
WORKDIR /opt/jumpserver
# 2025-01-15 15:07:42 292.00B 复制新文件或目录到容器中
COPY /opt/jumpserver/apps/libs/ansible/ansible.cfg /etc/ansible/ # buildkit
# 2025-01-15 15:07:41 5.16MB 复制新文件或目录到容器中
COPY /usr/local/bin /usr/local/bin # buildkit
# 2025-01-15 15:07:41 683.93MB 复制新文件或目录到容器中
COPY /opt /opt # buildkit
# 2025-01-15 15:06:58 46.43MB 执行命令并创建新的镜像层
RUN |3 DEPENDENCIES= libldap2-dev libx11-dev TOOLS= cron ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap APT_MIRROR=http://deb.debian.org /bin/sh -c set -ex && sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && apt-get update > /dev/null && apt-get -y install --no-install-recommends ${DEPENDENCIES} && apt-get -y install --no-install-recommends ${TOOLS} && mkdir -p /root/.ssh/ && echo "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null\n\tCiphers +aes128-cbc\n\tKexAlgorithms +diffie-hellman-group1-sha1\n\tHostKeyAlgorithms +ssh-rsa" > /root/.ssh/config && echo "no" | dpkg-reconfigure dash && apt-get clean all && rm -rf /var/lib/apt/lists/* && echo "0 3 * * * root find /tmp -type f -mtime +1 -size +1M -exec rm -f {} \; && date > /tmp/clean.log" > /etc/cron.d/cleanup_tmp && chmod 0644 /etc/cron.d/cleanup_tmp # buildkit
# 2025-01-15 15:06:58 0.00B 定义构建参数
ARG APT_MIRROR=http://deb.debian.org
# 2025-01-15 15:06:58 0.00B 定义构建参数
ARG TOOLS= cron ca-certificates default-libmysqlclient-dev openssh-client sshpass bubblewrap
# 2025-01-15 15:06:58 0.00B 定义构建参数
ARG DEPENDENCIES= libldap2-dev libx11-dev
# 2025-01-15 15:06:58 0.00B 设置环境变量 LANG PATH
ENV LANG=en_US.UTF-8 PATH=/opt/py3/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-04 06:49:59 0.00B 设置默认要执行的命令
CMD ["python3"]
# 2024-12-04 06:49:59 36.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit
# 2024-12-04 06:49:59 43.53MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared --with-lto --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:--Wl},--strip-all"; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -r dpkg-query --search | cut -d: -f1 | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 install --disable-pip-version-check --no-cache-dir --no-compile 'setuptools==65.5.1' wheel ; pip3 --version # buildkit
# 2024-12-04 06:49:59 0.00B 设置环境变量 PYTHON_SHA256
ENV PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3
# 2024-12-04 06:49:59 0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.11.11
# 2024-12-04 06:49:59 0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
# 2024-12-04 06:49:59 2.33MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; rm -rf /var/lib/apt/lists/* # buildkit
# 2024-12-04 06:49:59 0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
# 2024-12-04 06:49:59 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-12-04 06:49:59 80.66MB
# debian.sh --arch 'amd64' out/ 'bullseye' '@1736726400'
镜像信息
{
"Id": "sha256:b590f09a742ea833b4aa8a8d2b4d3d728229e89bd4440741ff94faaeb81846a3",
"RepoTags": [
"jumpserver/core:v4.6.0-ce",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core:v4.6.0-ce"
],
"RepoDigests": [
"jumpserver/core@sha256:fa147d888bf8897252dc0d795165c89a19ae239935958bed3e42c9a62cd8c516",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/jumpserver/core@sha256:aacfc81ebb5fdfd05a6200c45e28a0858da4e943c34c1a113101e3ec1a165074"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-01-15T07:07:42.045589227Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8080/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/opt/py3/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LANG=en_US.UTF-8",
"GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
"PYTHON_VERSION=3.11.11",
"PYTHON_SHA256=2a9920c7a0cd236de33644ed980a13cbbc21058bfdc528febb6081575ed73be3"
],
"Cmd": [
"start",
"all"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": {
"/opt/jumpserver/data": {}
},
"WorkingDir": "/opt/jumpserver",
"Entrypoint": [
"./entrypoint.sh"
],
"OnBuild": null,
"Labels": null,
"StopSignal": "SIGQUIT"
},
"Architecture": "amd64",
"Os": "linux",
"Size": 862029687,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/6bf4d8538013426bd9b7f91dec516ea54c92e63b57b67a160732cc8305c2f14d/diff:/var/lib/docker/overlay2/74b0c4fe2aba0999a6e94f246933d54628fb921b86d928ac538f27d1a11a6e28/diff:/var/lib/docker/overlay2/eb4ae19eee5215eeedfb971090df32ab79e000f918c7d77e93a7c911a04b64c6/diff:/var/lib/docker/overlay2/d7ea2eeed92bac9017535cc7f82bf228c0e83239ed5c16ea619a15235e8be647/diff:/var/lib/docker/overlay2/0b5702042e63baf30ca1556f04213f1f3d3f6addf33e2a6602ab281eda875a66/diff:/var/lib/docker/overlay2/841c39c4607039d170f87422542edd6cd324feaf56e6bcd0a92cb772073e5e79/diff:/var/lib/docker/overlay2/026630a60dea8de291471850843892899eea36f79e934b8c70fcbdac18a7f27f/diff:/var/lib/docker/overlay2/c0060cfdc90f68342e117b8a0b32dfde6a54adb3af07dfcf2dc525ea61710b98/diff",
"MergedDir": "/var/lib/docker/overlay2/91e33d8c4f7089086980e3119c80222289679a078e78a227632814ba10e46e38/merged",
"UpperDir": "/var/lib/docker/overlay2/91e33d8c4f7089086980e3119c80222289679a078e78a227632814ba10e46e38/diff",
"WorkDir": "/var/lib/docker/overlay2/91e33d8c4f7089086980e3119c80222289679a078e78a227632814ba10e46e38/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:9b7261696dcc876d42a4803f906d53b053c684654596b71183889df18a79d527",
"sha256:ab82556ef613d1ddf01e20b1c7d9cb166630d860f5d7865ba6711caba199ee9e",
"sha256:a46c49ec8a55b5b4e7ef8119b63c4d2faed8419be878b6bfc4c77c02d2c7b94a",
"sha256:1f4213d5be032ab6ca57e7ae1c369e615ecb42533d845c86cfce4ffa6aa36d6a",
"sha256:f106c7b3050f443b39f880aa083d5936d03cb4a590b678664a0c2b091f161e9b",
"sha256:e4cf2bad9eb4f21badc3ae94486283ce807fc00ea2b05e72e987a281fe13b33c",
"sha256:e427bb23ac181be7cdb45ce7ae4750a88fb59d43f3ce20ab90c6cea01f89095a",
"sha256:5641b516cc5b07b38555c39d302dee6d5a0066431aace8764f9e11d35f5ea609",
"sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
]
},
"Metadata": {
"LastTagTime": "2025-01-16T16:21:38.923610073+08:00"
}
}