Skip to content
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

Build Multi-Platform Docker Image #306

Merged
merged 30 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
yordanovsstoyan marked this conversation as resolved.
Show resolved Hide resolved
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
yordanovsstoyan marked this conversation as resolved.
Show resolved Hide resolved
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
Loading