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

Switch to node:20-alpine container base image #681

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

lkiesow
Copy link
Member

@lkiesow lkiesow commented Jun 7, 2024

This patch switches to the node alpine container which is significantly smaller than the Debian based container we use now:

docker.io/library/node                      20-alpine    91247b4bc29d  3 days ago     135 MB
docker.io/library/node                      20-bookworm  4c466ea4074f  9 days ago     1.12 GB
docker.io/library/node                      20           4c466ea4074f  9 days ago     1.12 GB

This results in significantly smaller test containers:

opencast-admin-interface          node-20-alpine  c9b84375017f  13 seconds ago      700 MB
opencast-admin-interface          node-20         2decf3414d30  About a minute ago  1.68 GB

This patch switches to the node alpine container which is significantly
smaller than the Debian based container we use now:

```
docker.io/library/node                      20-alpine    91247b4bc29d  3 days ago     135 MB
docker.io/library/node                      20-bookworm  4c466ea4074f  9 days ago     1.12 GB
docker.io/library/node                      20           4c466ea4074f  9 days ago     1.12 GB
```

This results in significantly smaller test containers:

```
opencast-admin-interface          node-20-alpine  c9b84375017f  13 seconds ago      700 MB
opencast-admin-interface          node-20         2decf3414d30  About a minute ago  1.68 GB
```
@lkiesow lkiesow added the type:tests Unit and integration tests label Jun 7, 2024
Copy link
Contributor

github-actions bot commented Jun 7, 2024

This pull request is deployed at test.admin-interface.opencast.org/681/2024-06-07_19-16-43/ .
It might take a few minutes for it to become available.

Copy link
Contributor

github-actions bot commented Jun 7, 2024

Use docker or podman to test this pull request locally.

Run test server using develop.opencast.org as backend:

podman run --rm -it -p 127.0.0.1:3000:3000 ghcr.io/opencast/opencast-admin-interface:pr-681

Specify a different backend like stable.opencast.org:

podman run --rm -it -p 127.0.0.1:3000:3000 -e PROXY_TARGET=https://stable.opencast.org ghcr.io/opencast/opencast-admin-interface:pr-681

It may take a few seconds for the interface to spin up.
It will then be available at http://127.0.0.1:3000.
For more options you can pass on to the proxy, take a look at the README.md.

Copy link
Member

@Arnei Arnei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, let's try it out.

@ziegenberg ziegenberg merged commit 374efaa into opencast:main Jun 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:tests Unit and integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants