Skip to content

chore(deps): update alpine docker tag to v3.17 #128

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

Merged
merged 3 commits into from
Jan 30, 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
8 changes: 7 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["NODE_IMAGE_VERSION=(?<currentValue>.*?)-alpine3.16\\n"],
"matchStrings": ["NODE_IMAGE_VERSION=(?<currentValue>.*?)-alpine3.17\\n"],
"depNameTemplate": "node",
"datasourceTemplate": "node",
"versioningTemplate": "node"
Expand Down Expand Up @@ -121,6 +121,12 @@
"depNameTemplate": "danielvladco/go-proto-gql",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_JS_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "protocolbuffers/protobuf-javascript",
"datasourceTemplate": "github-releases"
},
{
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["PROTOC_GEN_JSONSCHEMA_VERSION=(?<currentValue>.*?)\\n"],
Expand Down
38 changes: 38 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,42 @@ ARG TARGETPLATFORM
RUN xx-verify /out/usr/bin/protoc-gen-lint


FROM alpine:${ALPINE_IMAGE_VERSION} as protoc_gen_js
COPY --from=xx / /
RUN mkdir -p /out
RUN apk add --no-cache \
bash \
build-base \
curl \
linux-headers \
openjdk11-jdk \
python3 \
unzip \
zip

# Build Bazel
# TODO: Remove when Bazel 5.2.0+ is available in Alpine
# https://github.com/bazelbuild/bazel/pull/14391
ARG BAZEL_VERSION=6.0.0
RUN mkdir -p /tmp/bazel-release
WORKDIR /tmp/bazel-release
RUN curl -sSLO https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-dist.zip && unzip -q bazel-${BAZEL_VERSION}-dist.zip
RUN env EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk --curses=no" bash ./compile.sh
RUN install -D output/bazel /usr/local/bin/bazel

# Build protoc-gen-js
# TODO: Remove when protoc-gen-js is available in Alpine
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/14399
RUN mkdir -p /protoc_gen_js
ARG PROTOC_GEN_JS_VERSION
RUN curl -sSL https://api.github.com/repos/protocolbuffers/protobuf-javascript/tarball/${PROTOC_GEN_JS_VERSION} | tar xz --strip 1 -C /protoc_gen_js
WORKDIR /protoc_gen_js
RUN bazel build plugin_files
RUN install -D /protoc_gen_js/bazel-bin/generator/protoc-gen-js /out/usr/bin/protoc-gen-js
ARG TARGETPLATFORM
RUN xx-verify /out/usr/bin/protoc-gen-js


FROM node:${NODE_IMAGE_VERSION} as protoc_gen_ts
ARG NODE_IMAGE_VERSION
ARG PROTOC_GEN_TS_VERSION
Expand Down Expand Up @@ -368,6 +404,7 @@ COPY --from=protoc_gen_gorm /out/ /out/
COPY --from=protoc_gen_gotemplate /out/ /out/
COPY --from=protoc_gen_govalidators /out/ /out/
COPY --from=protoc_gen_gql /out/ /out/
COPY --from=protoc_gen_js /out/ /out/
COPY --from=protoc_gen_jsonschema /out/ /out/
COPY --from=protoc_gen_lint /out/ /out/
COPY --from=protoc_gen_rust /out/ /out/
Expand All @@ -391,6 +428,7 @@ RUN apk add --no-cache \
bash \
grpc \
grpc-java \
grpc-plugins \
protobuf \
protobuf-dev \
protobuf-c-compiler
Expand Down
9 changes: 5 additions & 4 deletions deps.list
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
ALPINE_IMAGE_VERSION=3.16
ALPINE_IMAGE_VERSION=3.17
DART_IMAGE_VERSION=2.19.0
GO_IMAGE_VERSION=1.19.3-alpine3.16
GO_IMAGE_VERSION=1.19.3-alpine3.17
GOOGLE_API_VERSION=d6e9adbf6646748cb41ca6aa61a78a70a1d83ff5
GRPC_GATEWAY_VERSION=v2.15.0
GRPC_RUST_VERSION=v0.8.3
GRPC_SWIFT_VERSION=1.13.2
GRPC_WEB_VERSION=1.4.2
NODE_IMAGE_VERSION=18.13.0-alpine3.16
NODE_IMAGE_VERSION=18.13.0-alpine3.17
PROTOC_GEN_DART_VERSION=v20.0.1
PROTOC_GEN_DOC_VERSION=v1.5.1
PROTOC_GEN_GO_GRPC_VERSION=v1.52.3
Expand All @@ -16,13 +16,14 @@ PROTOC_GEN_GORM_VERSION=v1.1.2
PROTOC_GEN_GOTEMPLATE_VERSION=v1.11.3
PROTOC_GEN_GOVALIDATORS_VERSION=v0.3.2
PROTOC_GEN_GQL_VERSION=v0.8.0
PROTOC_GEN_JS_VERSION=v3.21.2
PROTOC_GEN_JSONSCHEMA_VERSION=1.3.10
PROTOC_GEN_LINT_VERSION=v0.3.0
PROTOC_GEN_RUST_VERSION=v3.2.0
PROTOC_GEN_SCALA_VERSION=v0.11.12
PROTOC_GEN_TS_VERSION=0.15.0
PROTOC_GEN_VALIDATE_VERSION=v0.9.1
RUST_IMAGE_VERSION=1.67.0-alpine3.16
RUST_IMAGE_VERSION=1.67.0-alpine3.17
SCALA_SBT_IMAGE_VERSION=graalvm-ce-21.3.0-java17_1.8.0_3.2.1
SWIFT_IMAGE_VERSION=5.7-focal
UPX_VERSION=4.0.1
Expand Down