forked from jaegertracing/jaeger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add s390x support on multiarch docker images (jaegertracing#2948)
- Loading branch information
Showing
27 changed files
with
297 additions
and
237 deletions.
There are no files selected for viewing
This file contains 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 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 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 | ||
- 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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.