File tree Expand file tree Collapse file tree 8 files changed +32
-75
lines changed
Expand file tree Collapse file tree 8 files changed +32
-75
lines changed Original file line number Diff line number Diff line change 1717 uses : actions/checkout@v4
1818 with :
1919 fetch-depth : 1 # only needed to get the sha label
20- # We can't cache Docker without using buildx because GH actions restricts /var/lib/docker
21- # That's ok because DOCKER_PARENT_IMAGE is always ghcr.io and local anyway.
20+ # Don't attempt to cache Docker. Sensitive information can be stolen
21+ # via forks, and login session ends up in ~/.docker. This is ok because
22+ # we publish DOCKER_PARENT_IMAGE to ghcr.io, hence local to the runner.
2223 - name : Deploy
2324 env :
2425 # GH_USER=<user that created GH_TOKEN>
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ This is an internal base layer primarily used in [zipkin](https://github.com/ope
1212To try the image, run the ` java -version ` command:
1313``` bash
1414docker run --rm ghcr.io/openzipkin/java:1.7.0_285 -version
15- openjdk version " 1.7.0_285 "
16- OpenJDK Runtime Environment (Zulu 7.42 .0.51 -CA-linux64) (build 1.7.0_285 -b01)
17- OpenJDK 64-Bit Server VM (Zulu 7.42 .0.51 -CA-linux64) (build 24.285 -b01, mixed mode)
15+ openjdk version " 1.7.0_352 "
16+ OpenJDK Runtime Environment (Zulu 7.56 .0.11 -CA-linux64) (build 1.7.0_352 -b01)
17+ OpenJDK 64-Bit Server VM (Zulu 7.56 .0.11 -CA-linux64) (build 24.352 -b01, mixed mode)
1818```
1919
2020## Release process
@@ -26,9 +26,9 @@ Build the `Dockerfile`
2626Next, verify the built image matches that version:
2727``` bash
2828docker run --rm openzipkin/java:test -version
29- openjdk version " 1.7.0_285 "
30- OpenJDK Runtime Environment (Zulu 7.42 .0.51 -CA-linux64) (build 1.7.0_285 -b01)
31- OpenJDK 64-Bit Server VM (Zulu 7.42 .0.51 -CA-linux64) (build 24.285 -b01, mixed mode)
29+ openjdk version " 1.7.0_352 "
30+ OpenJDK Runtime Environment (Zulu 7.56 .0.11 -CA-linux64) (build 1.7.0_352 -b01)
31+ OpenJDK 64-Bit Server VM (Zulu 7.56 .0.11 -CA-linux64) (build 24.352 -b01, mixed mode)
3232```
3333
3434To release the image, push a tag matching the arg to ` build-bin/build ` (ex ` 1.7.0_285 ` ).
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Copyright 2019-2023 The OpenZipkin Authors
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6- # in compliance with the License. You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software distributed under the License
11- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12- # or implied. See the License for the specific language governing permissions and limitations under
13- # the License.
3+ # Copyright The OpenZipkin Authors
4+ # SPDX-License-Identifier: Apache-2.0
145#
156
167# Defends against build outages caused by Docker Hub (docker.io) pull rate limits.
@@ -23,6 +14,7 @@ set -ue
2314# this is Docker related, it is coupled to integration tests configuration invoked with Maven.
2415# * See https://www.testcontainers.org/supported_docker_environment/image_registry_rate_limiting/
2516# * checks.disable=true - saves time and a docker.io pull of alpine
17+ # * ryuk doesn't count against docker.io rate limits because Docker approved testcontainers as OSS
2618echo checks.disable=true >> ~ /.testcontainers.properties
2719
2820# We don't use any docker.io images, but add a Google's mirror in case something implicitly does
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Copyright 2019-2023 The OpenZipkin Authors
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6- # in compliance with the License. You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software distributed under the License
11- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12- # or implied. See the License for the specific language governing permissions and limitations under
13- # the License.
3+ # Copyright The OpenZipkin Authors
4+ # SPDX-License-Identifier: Apache-2.0
145#
156
167# Ensures Docker is logged in and it can build multi-architecture.
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Copyright 2019-2023 The OpenZipkin Authors
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6- # in compliance with the License. You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software distributed under the License
11- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12- # or implied. See the License for the specific language governing permissions and limitations under
13- # the License.
3+ # Copyright The OpenZipkin Authors
4+ # SPDX-License-Identifier: Apache-2.0
145#
156
167# This script gets a normalized name for the architecture as used in Docker. This will be a subset
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Copyright 2019-2023 The OpenZipkin Authors
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6- # in compliance with the License. You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software distributed under the License
11- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12- # or implied. See the License for the specific language governing permissions and limitations under
13- # the License.
3+ # Copyright The OpenZipkin Authors
4+ # SPDX-License-Identifier: Apache-2.0
145#
156
167# This builds common docker arguments used by docker_build and docker_push.
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Copyright 2019-2023 The OpenZipkin Authors
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6- # in compliance with the License. You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software distributed under the License
11- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12- # or implied. See the License for the specific language governing permissions and limitations under
13- # the License.
3+ # Copyright The OpenZipkin Authors
4+ # SPDX-License-Identifier: Apache-2.0
145#
156
167set -ue
@@ -19,5 +10,10 @@ docker_tag=${1?full docker_tag is required. Ex openzipkin/zipkin:test}
1910version=${2:- }
2011docker_args=$( $( dirname " $0 " ) /docker_args ${version} )
2112
13+ # We don't need build kit, but Docker 20.10 no longer accepts --platform
14+ # without it. It is simpler to always enable it vs require maintainers to use
15+ # alternate OCI tools. See https://github.com/moby/moby/issues/41552
16+ export DOCKER_BUILDKIT=1
17+
2218echo " Building image ${docker_tag} "
23- DOCKER_BUILDKIT=1 docker build --network=host --pull ${docker_args} --tag ${docker_tag} .
19+ docker build --network=host --pull ${docker_args} --tag ${docker_tag} .
Original file line number Diff line number Diff line change 11#! /bin/sh
22#
3- # Copyright 2019-2023 The OpenZipkin Authors
4- #
5- # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
6- # in compliance with the License. You may obtain a copy of the License at
7- #
8- # http://www.apache.org/licenses/LICENSE-2.0
9- #
10- # Unless required by applicable law or agreed to in writing, software distributed under the License
11- # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12- # or implied. See the License for the specific language governing permissions and limitations under
13- # the License.
3+ # Copyright The OpenZipkin Authors
4+ # SPDX-License-Identifier: Apache-2.0
145#
156
167# This script pushes images to GitHub Container Registry (ghcr.io).
@@ -27,6 +18,10 @@ set -ue
2718
2819docker_image=${1?docker_image is required, notably without a tag. Ex openzipkin/ zipkin}
2920version=${2:- master}
21+
22+ # We don't need build kit, but Docker 20.10 no longer accepts --platform
23+ # without it. It is simpler to always enable it vs require maintainers to use
24+ # alternate OCI tools. See https://github.com/moby/moby/issues/41552
3025export DOCKER_BUILDKIT=1
3126
3227case ${version} in
You can’t perform that action at this time.
0 commit comments