Skip to content

Commit c314632

Browse files
updates to latest license headers
Signed-off-by: Adrian Cole <[email protected]>
1 parent e3becbb commit c314632

File tree

8 files changed

+32
-75
lines changed

8 files changed

+32
-75
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ jobs:
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>

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ This is an internal base layer primarily used in [zipkin](https://github.com/ope
1212
To try the image, run the `java -version` command:
1313
```bash
1414
docker 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`
2626
Next, verify the built image matches that version:
2727
```bash
2828
docker 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

3434
To release the image, push a tag matching the arg to `build-bin/build` (ex `1.7.0_285`).

build-bin/docker/configure_docker

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
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
2618
echo 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

build-bin/docker/configure_docker_push

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
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.

build-bin/docker/docker_arch

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
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

build-bin/docker/docker_args

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
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.

build-bin/docker/docker_build

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
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
set -ue
@@ -19,5 +10,10 @@ docker_tag=${1?full docker_tag is required. Ex openzipkin/zipkin:test}
1910
version=${2:-}
2011
docker_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+
2218
echo "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} .

build-bin/docker/docker_push

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
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

2819
docker_image=${1?docker_image is required, notably without a tag. Ex openzipkin/zipkin}
2920
version=${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
3025
export DOCKER_BUILDKIT=1
3126

3227
case ${version} in

0 commit comments

Comments
 (0)