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

Docker slim images #1406

Merged
merged 13 commits into from
Jan 4, 2025
Merged

Docker slim images #1406

merged 13 commits into from
Jan 4, 2025

Conversation

gantoine
Copy link
Member

@gantoine gantoine commented Dec 29, 2024

Aight let's break this down.

The github build action now builds 2 images using different metadata tags and arguments. In the Dockerfile, the image built with SLIM_IMAGE=false will fetch the emulatorjs and ruffle assets and copy them to the frontent /assets/. SLIM_IMAGE is also passed in at runtime from the Docekrfile as an env variable, and is used to determine, when loading the emulatorjs or ruffle players, whether to try fetching the libs/cores locally or from CDN.

I've also refactored the /heartbeat response to move all fields into categories, and remove no-longer-needed libs from package.json.

@gantoine gantoine self-assigned this Dec 30, 2024
Copy link

github-actions bot commented Jan 1, 2025

Test Results

91 tests   91 ✅  26s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 252cbaa.

♻️ This comment has been updated with latest results.

@gantoine gantoine requested a review from adamantike January 2, 2025 01:28
@gantoine gantoine marked this pull request as ready for review January 2, 2025 01:28
backend/endpoints/responses/heartbeat.py Outdated Show resolved Hide resolved
docker/Dockerfile Show resolved Hide resolved
docker/Dockerfile Outdated Show resolved Hide resolved
@gantoine gantoine requested a review from adamantike January 3, 2025 01:51
@gantoine gantoine force-pushed the docker-slim-images branch from 6a918ee to 44ab32c Compare January 3, 2025 01:51
.github/workflows/build.yml Outdated Show resolved Hide resolved
.github/workflows/build.yml Show resolved Hide resolved
docker/Dockerfile Outdated Show resolved Hide resolved
@gantoine gantoine merged commit 0923140 into master Jan 4, 2025
9 checks passed
@gantoine gantoine deleted the docker-slim-images branch January 4, 2025 03:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants