Skip to content

Commit

Permalink
Build Multi-Platform Docker Image (#306)
Browse files Browse the repository at this point in the history
* Update poetry files

* test

* test

* 2.4.0

* update-deps

* update-mypy

* update-mypy

* update-mypy

* update-mypy

* npm

* npm

* npm

* npm

* gcc

* remove-lock

* npm

* tes

* test

* npm-i

* final

* ^

* mypy

* mypy

* canvas

* ^

* ^

* test

* test

* test

---------

Co-authored-by: Yannick Röder <[email protected]>
Co-authored-by: Stoyan Yordanov <[email protected]>
  • Loading branch information
3 people authored Jun 25, 2024
1 parent e2abec1 commit 3f42c3b
Show file tree
Hide file tree
Showing 7 changed files with 1,778 additions and 1,425 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,26 @@ jobs:
env:
image: bakdata/streams-explorer
steps:
- name: Configure Docker
env:
DOCKER_CLI_EXPERIMENTAL: enabled
uses: crazy-max/ghaction-setup-docker@v2
with:
version: v24.0.6
daemon-config: |
{
"features": {
"containerd-snapshotter": true
}
}
- name: Setup Qemu
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ inputs.platforms }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
Expand All @@ -120,8 +138,9 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build & Push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM node:16 AS frontend
WORKDIR /build
COPY ./frontend/package.json ./frontend/package-lock.json /build/
ENV NEXT_TELEMETRY_DISABLED=1
# We need the libraries ,because of canvas https://github.com/Automattic/node-canvas/issues/1662
RUN apt-get -y update && \
apt-get -y install gcc build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
RUN npm ci

COPY ./frontend /build
Expand Down
2,946 changes: 1,602 additions & 1,344 deletions backend/poetry.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ dynaconf = "^3.1.7"
httpx = "^0.23.1"
pydantic = "^1.9.1"
fastapi-utils = "^0.2.1"
fastapi = "^0.78.0"
fastapi = "^0.103.1"
uvicorn = { extras = ["standard"], version = "^0.20.0" }
pygraphviz = "^1.10"
confluent-kafka = "^1.9.2"
confluent-kafka = "2.4.0"
cachetools = "^4.2.2"
kubernetes-asyncio = "^23.6.0"

Expand Down
1 change: 1 addition & 0 deletions backend/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ extend-ignore =
profile = black

[mypy]
exclude = ['.venv/']
namespace_packages = True
show_error_codes = True
disable_error_code = import
Expand Down
224 changes: 148 additions & 76 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@types/testing-library__jest-dom": "^5.14.1",
"babel-jest": "^27.3.1",
"canvas": "^2.11.0",
"dprint": "^0.30.2",
"dprint": "^0.39.1",
"eslint": "^8.19.0",
"eslint-config-next": "^12.2.0",
"identity-obj-proxy": "^3.0.0",
Expand Down

0 comments on commit 3f42c3b

Please sign in to comment.