Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin alpine versions in Dockerfile #2649

Merged
merged 4 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docker/Dockerfile.agent.alpine.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
make build-agent

FROM docker.io/alpine:3.18
RUN apk add -U --no-cache ca-certificates
# renovate: datasource=repology depName=alpine_3_18/ca-certificates versioning=loose
ENV CA_CERTIFICATES_VERSION="20230506-r0"
RUN apk add -U --no-cache ca-certificates=${CA_CERTIFICATES_VERSION}
ENV GODEBUG=netdns=go
EXPOSE 3000

Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.cli.alpine.multiarch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build \
make build-cli

FROM docker.io/alpine:3.18
RUN apk add -U --no-cache ca-certificates
# renovate: datasource=repology depName=alpine_3_18/ca-certificates versioning=loose
ENV CA_CERTIFICATES_VERSION="20230506-r0"
RUN apk add -U --no-cache ca-certificates=${CA_CERTIFICATES_VERSION}
ENV GODEBUG=netdns=go

COPY --from=build /src/dist/woodpecker-cli /bin/
Expand Down
15 changes: 12 additions & 3 deletions docker/Dockerfile.make
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# docker build --rm -f docker/Dockerfile.make -t woodpecker/make:local .
FROM docker.io/golang:1.21-alpine as golang_image
FROM docker.io/node:21-alpine
FROM docker.io/golang:1.21-alpine3.18 as golang_image
FROM docker.io/node:21-alpine3.18

RUN apk add --no-cache --update make gcc binutils-gold musl-dev && \
# renovate: datasource=repology depName=alpine_3_18/make versioning=loose
ENV MAKE_VERSION="4.4.1-r1"
# renovate: datasource=repology depName=alpine_3_18/gcc versioning=loose
ENV GCC_VERSION="12.2.1_git20220924-r108"
# renovate: datasource=repology depName=alpine_3_18/binutils-gold versioning=loose
ENV BINUTILS_GOLD_VERSION="2.40-r7"
# renovate: datasource=repology depName=alpine_3_18/musl-dev versioning=loose
ENV MUSL_DEV_VERSION="1.2.4-r2"

RUN apk add --no-cache --update make=${MAKE_VERSION} gcc=${GCC_VERSION} binutils-gold=2.40-r7 musl-dev=${MUSL_DEV_VERSION} && \
corepack enable

# Build packages.
Expand Down
5 changes: 4 additions & 1 deletion docker/Dockerfile.server.alpine.multiarch
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM docker.io/alpine:3.18

# renovate: datasource=repology depName=alpine_3_18/ca-certificates versioning=loose
ENV CA_CERTIFICATES_VERSION="20230506-r0"

ARG TARGETOS TARGETARCH
RUN apk add -U --no-cache ca-certificates
RUN apk add -U --no-cache ca-certificates=${CA_CERTIFICATES_VERSION}
ENV GODEBUG=netdns=go
ENV WOODPECKER_DATABASE_DATASOURCE=/var/lib/woodpecker/woodpecker.sqlite
ENV WOODPECKER_DATABASE_DRIVER=sqlite3
Expand Down