Skip to content

Commit e5f90c1

Browse files
authored
fix: test pinned dependencies (#4244)
* fix: test pinned dependencies
1 parent 57c438f commit e5f90c1

6 files changed

+13
-13
lines changed

dev.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu
1+
FROM ubuntu@sha256:80dd3c3b9c6cecb9f1667e9290b3bc61b78c2678c02cbdae5f0fea92cc6734ab
22
RUN apt-get update && apt-get install -yq ca-certificates
33
WORKDIR /app
44
ADD bin build

gitops-bucket-server.dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Go build
2-
FROM golang:1.23 AS go-build
2+
FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7 AS go-build
33

44
# Add known_hosts entries for GitHub and GitLab
55
RUN mkdir ~/.ssh
@@ -24,7 +24,7 @@ ARG LDFLAGS="-X localbuild=true"
2424
RUN --mount=type=cache,target=/root/.cache/go-build LDFLAGS=${LDFLAGS##-X localbuild=true} GIT_COMMIT=$GIT_COMMIT make gitops-bucket-server
2525

2626
# Distroless
27-
FROM gcr.io/distroless/base AS runtime
27+
FROM gcr.io/distroless/base@sha256:e9d0321de8927f69ce20e39bfc061343cce395996dfc1f0db6540e5145bc63a5 AS runtime
2828
COPY --from=go-build /app/bin/gitops-bucket-server /gitops-bucket-server
2929
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts
3030

gitops-server.dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# UI build
2-
FROM node:16-bullseye AS ui
2+
FROM node:16-bullseye@sha256:cd59a61258b82b86c1ff0ead50c8a689f6c3483c5ed21036e11ee741add419eb AS ui
33
RUN apt-get update -y && apt-get install -y build-essential
44
RUN mkdir -p /home/app && chown -R node:node /home/app
55
WORKDIR /home/app
@@ -15,7 +15,7 @@ COPY --chown=node:node ui /home/app/ui
1515
RUN --mount=type=cache,target=/home/app/ui/.parcel-cache make ui
1616

1717
# Go build
18-
FROM golang:1.23 AS go-build
18+
FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7 AS go-build
1919

2020
# Add known_hosts entries for GitHub and GitLab
2121
RUN mkdir ~/.ssh
@@ -40,7 +40,7 @@ ARG LDFLAGS="-X localbuild=true"
4040
RUN --mount=type=cache,target=/root/.cache/go-build LDFLAGS=${LDFLAGS##-X localbuild=true} GIT_COMMIT=$GIT_COMMIT make gitops-server
4141

4242
# Distroless
43-
FROM gcr.io/distroless/base AS runtime
43+
FROM gcr.io/distroless/base@sha256:e9d0321de8927f69ce20e39bfc061343cce395996dfc1f0db6540e5145bc63a5 AS runtime
4444
COPY --from=ui /home/app/bin/dist/ /dist/
4545
COPY --from=go-build /app/bin/gitops-server /gitops-server
4646
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts

gitops.dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ARG FLUX_VERSION=2.3.0
1+
ARG FLUX_VERSION=2.4.0
22
ARG FLUX_CLI=ghcr.io/fluxcd/flux-cli:v$FLUX_VERSION
33

44
# Alias for flux
5-
FROM $FLUX_CLI AS flux
5+
FROM $FLUX_CLI@sha256:a9cb966cddc1a0c56dc0d57dda485d9477dd397f8b45f222717b24663471fd1f AS flux
66

77
# Go build
8-
FROM golang:1.23 AS go-build
8+
FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7 AS go-build
99

1010
# Add known_hosts entries for GitHub and GitLab
1111
RUN mkdir ~/.ssh
@@ -28,7 +28,7 @@ ARG GIT_COMMIT="_unset_"
2828
RUN LDFLAGS=$LDFLAGS GIT_COMMIT=$GIT_COMMIT make gitops
2929

3030
# Distroless
31-
FROM gcr.io/distroless/base AS runtime
31+
FROM gcr.io/distroless/base@sha256:e9d0321de8927f69ce20e39bfc061343cce395996dfc1f0db6540e5145bc63a5 AS runtime
3232
COPY --from=flux /usr/local/bin/flux /usr/local/bin/flux
3333
COPY --from=go-build /app/bin/gitops /gitops
3434
COPY --from=go-build /root/.ssh/known_hosts /root/.ssh/known_hosts

test/library/libtest.dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.20
1+
FROM golang:1.23@sha256:574185e5c6b9d09873f455a7c205ea0514bfd99738c5dc7750196403a44ed4b7
22
RUN apt-get update
33
RUN apt-get -y install curl gnupg
44
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -

website/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Base ########################################################################
22
# Use a larger node image to do the build for native deps (e.g., gcc, python)
3-
FROM node:lts AS base
3+
FROM node:lts@sha256:35a5dd72bcac4bce43266408b58a02be6ff0b6098ffa6f5435aeea980a8951d7 AS base
44

55
# Reduce npm log spam and colour during install within Docker
66
ENV NPM_CONFIG_LOGLEVEL=warn
@@ -15,7 +15,7 @@ COPY --chown=node:node ./yarn.lock /home/node/app/
1515

1616
## Development #################################################################
1717
# Define a development target that installs devDeps and runs in dev mode
18-
FROM base AS development
18+
FROM base@sha256:35a5dd72bcac4bce43266408b58a02be6ff0b6098ffa6f5435aeea980a8951d7 AS development
1919
WORKDIR /home/node/app
2020
# Install (not ci) with dependencies, and for Linux vs. Linux Musl (which we use for -alpine)
2121
RUN npm install

0 commit comments

Comments
 (0)