atomist-skills / docker-build-skill

Atomist Skill to build and push Docker images
Apache License 2.0
1 stars 0 forks source link

Re-pin Docker base image in Dockerfile #399

Closed atomist[bot] closed 2 years ago

atomist[bot] commented 2 years ago

This pull request re-pins the Docker base image node:lts in Dockerfile to the current digest.

https://github.com/atomist-skills/docker-build-skill/blob/58fd3d12605cbbbbf3683387a1ac930b8eebcf92/Dockerfile#L2-L2

Digest sha256:61b6cc81ecc3f94f614dca6bfdc5262d15a6618f7aabfbfc6f9f05c935ee753c references a multi-CPU architecture image manifest. This image supports the following architectures:

Changelog for node:lts

### Commit New image build caused by commit docker-library/official-images@13f1cd7183a8e4393e2e6a27c36cf9e597486340 to [`library/node`](https://github.com/docker-library/official-images/blob/13f1cd7183a8e4393e2e6a27c36cf9e597486340/library/node): ``` Node: chore: update to 17.6.0 ``` --- ### Comparison Comparing Docker image `node:lts` at digests _Current_ `sha256:2033f4cc18f9d8b5d0baa7f276aaeffd202e1a2c6fe9af408af05a34fe68cbfb` (686mb) and _Proposed_ `sha256:61b6cc81ecc3f94f614dca6bfdc5262d15a6618f7aabfbfc6f9f05c935ee753c` (687mb): #### Packages The following package differences were detected: | Name | Current | Proposed | Type | | ---- | ------- | -------- | ---- | | `libexpat1` | `2.2.6-2 deb10u1` | `2.2.6-2 deb10u3` | Apt | | `libexpat1-dev` | `2.2.6-2 deb10u1` | `2.2.6-2 deb10u3` | Apt | | `libsasl2-2` | `2.1.27 dfsg-1+deb10u1` | `2.1.27 dfsg-1+deb10u2` | Apt | | `libsasl2-modules-db` | `2.1.27 dfsg-1+deb10u1` | `2.1.27 dfsg-1+deb10u2` | Apt | | `npm` | `8.1.2` | `8.3.1` | Node | #### Files The following file modifications were detected: | Name | Current | Proposed | Diff | | ---- | ------- | -------- | ---- | | `/etc/apt/sources.list` | `421b` | `421b` | `0b` | | `/etc/machine-id` | `33b` | `33b` | `0b` | | `/etc/shadow` | `527b` | `527b` | `0b` | | `/etc/shadow-` | `501b` | `501b` | `0b` | | `/lib/arm-linux-gnueabihf/libexpat.so.1.6.8` | `146kb` | `150kb` | `4.0kb` | | `/opt/yarn-v1.22.15` | | `-` | `-5.1mb` | | `/opt/yarn-v1.22.15/LICENSE` | | `-` | `-1.3kb` | | `/opt/yarn-v1.22.15/README.md` | | `-` | `-3.3kb` | | `/opt/yarn-v1.22.15/bin` | | `-` | `-2.1kb` | | `/opt/yarn-v1.22.15/bin/yarn` | | `-` | `-1.0kb` | | `/opt/yarn-v1.22.15/bin/yarn.cmd` | | `-` | `-34b` | | `/opt/yarn-v1.22.15/bin/yarn.js` | | `-` | `-1015b` | | `/opt/yarn-v1.22.15/bin/yarnpkg` | | `-` | `-42b` | | `/opt/yarn-v1.22.15/bin/yarnpkg.cmd` | | `-` | `-30b` | | `/opt/yarn-v1.22.15/lib` | | `-` | `-5.1mb` | | `/opt/yarn-v1.22.15/lib/cli.js` | | `-` | `-5.1mb` | | `/opt/yarn-v1.22.15/lib/v8-compile-cache.js` | | `-` | `-9.7kb` | | `/opt/yarn-v1.22.15/package.json` | | `-` | `-598b` | | `/opt/yarn-v1.22.15/preinstall.js` | | `-` | `-2.3kb` | | `/opt/yarn-v1.22.17` | | `+` | `5.1mb` | | `/opt/yarn-v1.22.17/LICENSE` | | `+` | `1.3kb` | | `/opt/yarn-v1.22.17/README.md` | | `+` | `3.3kb` | | `/opt/yarn-v1.22.17/bin` | | `+` | `2.1kb` | | `/opt/yarn-v1.22.17/bin/yarn` | | `+` | `1.0kb` | | `/opt/yarn-v1.22.17/bin/yarn.cmd` | | `+` | `34b` | | `/opt/yarn-v1.22.17/bin/yarn.js` | | `+` | `1015b` | | `/opt/yarn-v1.22.17/bin/yarnpkg` | | `+` | `42b` | | `/opt/yarn-v1.22.17/bin/yarnpkg.cmd` | | `+` | `30b` | | `/opt/yarn-v1.22.17/lib` | | `+` | `5.1mb` | | `/opt/yarn-v1.22.17/lib/cli.js` | | `+` | `5.1mb` | | `/opt/yarn-v1.22.17/lib/v8-compile-cache.js` | | `+` | `9.7kb` | | `/opt/yarn-v1.22.17/package.json` | | `+` | `598b` | | `/opt/yarn-v1.22.17/preinstall.js` | | `+` | `2.3kb` | | `/root/.gnupg/pubring.kbx` | `41kb` | `41kb` | `0b` | | `/root/.gnupg/pubring.kbx~` | `30kb` | `30kb` | `0b` | | `/root/.gnupg/random_seed` | `600b` | `600b` | `0b` | | `/root/.gnupg/trustdb.gpg` | `1.2kb` | `1.2kb` | `0b` | | `/root/.npm` | | `+` | `1.4kb` | | `/root/.npm/_logs` | | `+` | `1.4kb` | | `/root/.npm/_logs/2022-03-01T15_26_24_281Z-debug-0.log` | | `+` | `1.4kb` | | `/tmp/v8-compile-cache-0/9.4.146.24-node.14` | | `-` | `-1.9mb` | | `/tmp/v8-compile-cache-0/9.4.146.24-node.14/zSoptzSyarn-v1.22.15zSbinzSyarn.js.BLOB` | | `-` | `-1.9mb` | | `/tmp/v8-compile-cache-0/9.4.146.24-node.14/zSoptzSyarn-v1.22.15zSbinzSyarn.js.MAP` | | `-` | `-88b` | | `/tmp/v8-compile-cache-0/9.4.146.24-node.20` | | `+` | `1.9mb` | | `/tmp/v8-compile-cache-0/9.4.146.24-node.20/zSoptzSyarn-v1.22.17zSbinzSyarn.js.BLOB` | | `+` | `1.9mb` | | `/tmp/v8-compile-cache-0/9.4.146.24-node.20/zSoptzSyarn-v1.22.17zSbinzSyarn.js.MAP` | | `+` | `88b` | | `/usr/lib/arm-linux-gnueabihf/libexpat.a` | `186kb` | `188kb` | `1.8kb` | | `/usr/lib/arm-linux-gnueabihf/libexpatw.a` | `187kb` | `188kb` | `1.8kb` | | `/usr/lib/arm-linux-gnueabihf/libexpatw.so.1.6.8` | `146kb` | `150kb` | `4.0kb` | | `/usr/lib/arm-linux-gnueabihf/libsasl2.so.2.0.25` | `66kb` | `66kb` | `0b` | | `/usr/lib/python3.7/__pycache__` (8 files changed) | `240kb` | `240kb` | `0b` | | `/usr/lib/python3.7/asyncio/__pycache__/base_events.cpython-37.pyc` | `47kb` | `47kb` | `0b` | | `/usr/lib/python3.7/unittest/__pycache__/mock.cpython-37.pyc` | `62kb` | `62kb` | `0b` | | `/usr/local/CHANGELOG.md` | `310kb` | `385kb` | `75kb` | | `/usr/local/LICENSE` | `81kb` | `79kb` | `-1.2kb` | | `/usr/local/README.md` | `31kb` | `31kb` | `512b` | | `/usr/local/bin/node` | `68mb` | `69mb` | `978kb` | | `/usr/local/bin/yarn` | `27b` | `27b` | `0b` | | `/usr/local/bin/yarnpkg` | `30b` | `30b` | `0b` | | `/usr/local/include/node` (79 files changed) | `420kb` | `424kb` | `3.6kb` | | `/usr/local/lib/node_modules` (578 files changed) | `2.7mb` | `2.9mb` | `246kb` | | `/usr/local/share/fonts/.uuid` | `36b` | `36b` | `0b` | | `/usr/share/doc/libexpat1-dev/changelog.Debian.gz` | `6.9kb` | `7.3kb` | `380b` | | `/usr/share/doc/libexpat1-dev/changelog.Debian.gz` | `6.9kb` | `7.3kb` | `380b` | | `/usr/share/doc/libsasl2-2/changelog.Debian.gz` | `19kb` | `19kb` | `61b` | | `/usr/share/doc/libsasl2-modules-db/changelog.Debian.gz` | `19kb` | `19kb` | `61b` | | `/usr/share/fonts/.uuid` | `36b` | `36b` | `0b` | | `/usr/share/fonts/truetype` (2 files changed) | `72b` | `72b` | `0b` | | `/usr/share/glib-2.0/codegen/__pycache__/codegen_docbook.cpython-37.pyc` | `12kb` | `12kb` | `0b` | | `/var/cache/fontconfig/74430d59-a680-47c6-9df6-4f632b5e2d62-le32d8.cache-7` | | `+` | `13kb` | | `/var/cache/fontconfig/7b082dd7-6a42-487d-94fa-55e4d53e012b-le32d8.cache-7` | | `+` | `120b` | | `/var/cache/fontconfig/837a5105-feb1-476b-aba5-233a98d8f549-le32d8.cache-7` | | `-` | `-136b` | | `/var/cache/fontconfig/84298440-5a4c-4d53-b598-6f2eaee2fcfc-le32d8.cache-7` | | `-` | `-13kb` | | `/var/cache/fontconfig/ab8e9bc6-d955-4379-bf0b-f1c70336fdd9-le32d8.cache-7` | | `-` | `-120b` | | `/var/cache/fontconfig/bdadde95-7126-46c0-9794-b68b743eeb94-le32d8.cache-7` | | `-` | `-80b` | | `/var/cache/fontconfig/ca05e9da-f7e0-4e7d-ae36-5a14b6c8bc82-le32d8.cache-7` | | `+` | `136b` | | `/var/cache/fontconfig/d69a3a68-4871-4ff3-ba9c-0e591e3a3b06-le32d8.cache-7` | | `+` | `80b` | | `/var/cache/ldconfig/aux-cache` | `15kb` | `15kb` | `0b` | | `/var/lib/dpkg/info` (4 files changed) | `2.8kb` | `2.8kb` | `0b` | | `/var/lib/dpkg/status` | `374kb` | `374kb` | `0b` | | `/var/lib/dpkg/status-old` | `374kb` | `374kb` | `0b` | | `/var/log/alternatives.log` | `12kb` | `12kb` | `0b` | | `/var/log/apt/eipp.log.xz` | `19kb` | `19kb` | `-4b` | | `/var/log/apt/history.log` | `15kb` | `15kb` | `0b` | | `/var/log/apt/term.log` | `81kb` | `81kb` | `0b` | | `/var/log/dpkg.log` | `155kb` | `155kb` | `0b` | #### History The following differences in [`docker history`](https://docs.docker.com/engine/reference/commandline/history/) were detected: ```diff -/bin/sh -c #(nop) ADD file:4a03c17db3b0f62e4228d270742fc29d7738d7938390f3f96a317cfa94dd4354 in / +/bin/sh -c #(nop) ADD file:49ab7c627696d55c8512392867bee4593a377d34c5c4f75aac1eb176a56b672c in / /bin/sh -c #(nop) CMD ["bash"] /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates curl netbase wget ; rm -rf /var/lib/apt/lists/* /bin/sh -c set -ex; if ! command -v gpg > /dev/null; then apt-get update; apt-get install -y --no-install-recommends gnupg dirmngr ; rm -rf /var/lib/apt/lists/*; fi /bin/sh -c apt-get update && apt-get install -y --no-install-recommends git mercurial openssh-client subversion procps && rm -rf /var/lib/apt/lists/* /bin/sh -c set -ex; apt-get update; apt-get install -y --no-install-recommends autoconf automake bzip2 dpkg-dev file g++ gcc imagemagick libbz2-dev libc6-dev libcurl4-openssl-dev libdb-dev libevent-dev libffi-dev libgdbm-dev libglib2.0-dev libgmp-dev libjpeg-dev libkrb5-dev liblzma-dev libmagickcore-dev libmagickwand-dev libmaxminddb-dev libncurses5-dev libncursesw5-dev libpng-dev libpq-dev libreadline-dev libsqlite3-dev libssl-dev libtool libwebp-dev libxml2-dev libxslt-dev libyaml-dev make patch unzip xz-utils zlib1g-dev $( if apt-cache show 'default-libmysqlclient-dev' 2>/dev/null | grep -q '^Version:'; then echo 'default-libmysqlclient-dev'; else echo 'libmysqlclient-dev'; fi ) ; rm -rf /var/lib/apt/lists/* /bin/sh -c groupadd --gid 1000 node && useradd --uid 1000 --gid node --shell /bin/bash --create-home node -/bin/sh -c #(nop) ENV NODE_VERSION=16.13.2 +/bin/sh -c #(nop) ENV NODE_VERSION=16.14.0 /bin/sh -c ARCH= && dpkgArch="$(dpkg --print-architecture)" && case "${dpkgArch##*-}" in amd64) ARCH='x64';; ppc64el) ARCH='ppc64le';; s390x) ARCH='s390x';; arm64) ARCH='arm64';; armhf) ARCH='armv7l';; i386) ARCH='x86';; *) echo "unsupported architecture"; exit 1 ;; esac && set -ex && for key in 4ED778F539E3634C779C87C6D7062848A1AB005C 94AE36675C464D64BAFA68DD7434390BDBE9B9C5 74F12602B6F1C4E913FAA37AD3A89613643B6201 71DCFD284A79C3B38668286BC97EC7A07EDE3FC1 8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600 C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8 C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C DD8F2338BAE7501E3DD5AC78C273792F7D83545D A48C2BEE680E841632CD4E44F07496B3EB3C1762 108F52B48DB57BB0CC439B2997B01419BD92F80A B9E2F5981AA6E0CD28160D9FF13993A75599653C ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-$ARCH.tar.xz" && curl -fsSLO --compressed "https://nodejs.org/dist/v$NODE_VERSION/SHASUMS256.txt.asc" && gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc && grep " node-v$NODE_VERSION-linux-$ARCH.tar.xz\$" SHASUMS256.txt | sha256sum -c - && tar -xJf "node-v$NODE_VERSION-linux-$ARCH.tar.xz" -C /usr/local --strip-components=1 --no-same-owner && rm "node-v$NODE_VERSION-linux-$ARCH.tar.xz" SHASUMS256.txt.asc SHASUMS256.txt && ln -s /usr/local/bin/node /usr/local/bin/nodejs && node --version && npm --version -/bin/sh -c #(nop) ENV YARN_VERSION=1.22.15 +/bin/sh -c #(nop) ENV YARN_VERSION=1.22.17 /bin/sh -c set -ex && for key in 6A010C5166006599AA17F08146C2130DFD2497F5 ; do gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$key" || gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; done && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" && curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz.asc" && gpg --batch --verify yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && mkdir -p /opt && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ && ln -s /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn && ln -s /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg && rm yarn-v$YARN_VERSION.tar.gz.asc yarn-v$YARN_VERSION.tar.gz && yarn --version /bin/sh -c #(nop) COPY file:4d192565a7220e135cab6c77fbc1c73211b69f3d9fb37e62857b2c6eb9363d51 in /usr/local/bin/ /bin/sh -c #(nop) ENTRYPOINT ["docker-entrypoint.sh"] ``` #### Ports No different exposed ports detected #### Environment Variables The following different environment variables were detected: ```diff -NODE_VERSION 16.13.2 +NODE_VERSION 16.14.0 -YARN_VERSION 1.22.15 +YARN_VERSION 1.22.17 ```


Pinning FROM lines to digests makes your builds repeatable. Atomist will raise new pull requests whenever the tag moves, so that you know when the base image has been updated. You can follow a new tag at any time. Just replace the digest with the new tag you want to follow. Atomist, will switch to following this new tag.


File changed:

atomist[bot] commented 2 years ago
Vulnerabilities
Comparison

👏 No new critical or high vulnerabilities compared with target branch main 👏 No new critical or high vulnerabilities compared with unstable 👏 No new critical or high vulnerabilities compared with stable

💡 Rebase branch atomist/pin-docker-base-image/dockerfile to include latest changes from branch main to increase accuracy of vulnerability report


More details are available in the vulnerability report

atomist[bot] commented 2 years ago

Pull request auto merged: