-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add s390x support on multiarch docker images #2948
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
yurishkuro
merged 26 commits into
jaegertracing:master
from
linux-on-ibm-z:enablement_docker_images_on_s390x
Jun 30, 2021
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bae83d3
Add s390x support on multiarch docker images
kun-lu20 4c6cabb
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 c0de24a
Update tag computation and Dockerfile
kun-lu20 d973031
Optimize the code changes
kun-lu20 5273aa3
Optimize the code changes - update
kun-lu20 ef2e8a2
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 edb391d
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 7974892
Optimize the code changes - update
kun-lu20 a0362fc
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 2613b6c
Optimize the code changes - update
kun-lu20 119d8e8
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 321907c
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 170b373
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 23ede72
upgrade the base image version
kun-lu20 54ba010
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 027376a
Create a common shared script for docker images
kun-lu20 5a6b268
Refactor update
kun-lu20 2960e88
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 ba3e9bc
Remove cross-script dependencies of debugimg name
kun-lu20 2acd49f
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 4e4fcbb
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 878e983
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 18aad23
Fix the indentation issue
kun-lu20 56f3e4f
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 c492340
Add comment in debug Dockerfile
kun-lu20 a62c82f
Merge branch 'master' into enablement_docker_images_on_s390x
kun-lu20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,11 @@ on: | |
jobs: | ||
all-in-one: | ||
runs-on: ubuntu-latest | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -31,6 +36,12 @@ jobs: | |
|
||
- name: Install tools | ||
run: make install-ci | ||
|
||
- uses: docker/setup-qemu-action@v1 | ||
|
||
- uses: docker/setup-buildx-action@v1 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Build, test, and publish all-in-one image | ||
run: bash scripts/build-all-in-one-image.sh | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,13 @@ on: | |
jobs: | ||
docker-images: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -32,11 +39,14 @@ jobs: | |
- name: Install tools | ||
run: make install-ci | ||
|
||
- name: Build docker images | ||
run: make docker | ||
jpkrohling marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Upload docker images | ||
run: bash scripts/upload-all-docker-images.sh | ||
- uses: docker/setup-buildx-action@v1 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Build and upload all docker images | ||
run: bash scripts/build-upload-docker-images.sh | ||
env: | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,11 @@ on: | |
jobs: | ||
hotrod: | ||
runs-on: ubuntu-latest | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -27,6 +32,12 @@ jobs: | |
|
||
- name: Install tools | ||
run: make install-ci | ||
|
||
- uses: docker/setup-qemu-action@v1 | ||
|
||
- uses: docker/setup-buildx-action@v1 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Build, test, and publish hotrod image | ||
run: bash scripts/hotrod-integration-test.sh | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,12 @@ on: | |
jobs: | ||
publish-release: | ||
runs-on: ubuntu-latest | ||
services: | ||
registry: | ||
image: registry:2 | ||
ports: | ||
- 5000:5000 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -49,13 +55,14 @@ jobs: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
if: steps.package-binaries.outcome == 'success' | ||
|
||
- name: Build docker images | ||
id: build-images | ||
run: make docker | ||
- uses: docker/setup-qemu-action@v1 | ||
|
||
- name: Upload docker images | ||
run: bash scripts/upload-all-docker-images.sh | ||
if: steps.build-images.outcome == 'success' | ||
- uses: docker/setup-buildx-action@v1 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Build and upload all docker images | ||
run: bash scripts/build-upload-docker-images.sh | ||
env: | ||
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM scratch | ||
ARG TARGETARCH=amd64 | ||
ARG TARGETARCH | ||
|
||
COPY anonymizer-linux-$TARGETARCH /go/bin/anonymizer-linux | ||
ENTRYPOINT ["/go/bin/anonymizer-linux"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM scratch | ||
ARG TARGETARCH=amd64 | ||
ARG TARGETARCH | ||
|
||
COPY tracegen-linux-$TARGETARCH /go/bin/tracegen-linux | ||
ENTRYPOINT ["/go/bin/tracegen-linux"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
FROM scratch | ||
ARG TARGETARCH | ||
|
||
COPY crossdock-linux /go/bin/ | ||
COPY crossdock-linux-$TARGETARCH /go/bin/crossdock-linux | ||
|
||
EXPOSE 8080 | ||
ENTRYPOINT ["/go/bin/crossdock-linux"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
VERSION := 1.0.0 | ||
ROOT_IMAGE ?= alpine:3.13 | ||
CERT_IMAGE := alpine:3.13 | ||
CERT_IMAGE := $(ROOT_IMAGE) | ||
GOLANG_IMAGE := golang:1.15-alpine | ||
|
||
BASE_IMAGE := localhost/baseimg:$(VERSION)-$(shell echo $(ROOT_IMAGE) | tr : -) | ||
DEBUG_IMAGE := localhost/debugimg:$(VERSION)-$(shell echo $(GOLANG_IMAGE) | tr : -) | ||
BASE_IMAGE := localhost:5000/baseimg_alpine:latest | ||
DEBUG_IMAGE := localhost:5000/debugimg_alpine:latest | ||
PLATFORMS := linux/amd64,linux/s390x | ||
|
||
create-baseimg-debugimg: create-baseimg create-debugimg | ||
|
||
create-baseimg: | ||
docker build -t $(BASE_IMAGE) \ | ||
docker buildx build -t $(BASE_IMAGE) --push \ | ||
--build-arg root_image=$(ROOT_IMAGE) \ | ||
--build-arg cert_image=$(CERT_IMAGE) \ | ||
--platform=$(PLATFORMS) \ | ||
docker/base | ||
|
||
create-debugimg: | ||
docker build -t $(DEBUG_IMAGE) \ | ||
docker buildx build -t $(DEBUG_IMAGE) --push \ | ||
--build-arg golang_image=$(GOLANG_IMAGE) \ | ||
--platform=$(PLATFORMS) \ | ||
docker/debug |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
FROM python:3-alpine3.11 | ||
ARG TARGETARCH | ||
|
||
# Temporary fix for https://github.com/jaegertracing/jaeger/issues/1494 | ||
RUN pip install urllib3==1.24.3 | ||
|
||
RUN pip install elasticsearch elasticsearch-curator | ||
COPY ./mappings/* /mappings/ | ||
COPY esRollover.py /es-rollover/ | ||
COPY esmapping-generator /usr/bin/ | ||
COPY esmapping-generator-linux-$TARGETARCH /usr/bin/esmapping-generator | ||
|
||
ENTRYPOINT ["python3", "/es-rollover/esRollover.py"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.