-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add ubuntu based dockerfile * Add job to build and upload container image * Set github token for CLI * Add checkout action * Fix wheel filename * Setup QEMU * Remove timezone * Rename publish workflow
- Loading branch information
Showing
3 changed files
with
73 additions
and
1 deletion.
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
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 @@ | ||
--- | ||
name: PyPI Publish | ||
name: Publish | ||
|
||
on: | ||
release: | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:noble | ||
|
||
LABEL org.opencontainers.image.title="anycastd" | ||
LABEL org.opencontainers.image.vendor="WIIT AG <[email protected]>" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
python3 \ | ||
python3-venv \ | ||
frr \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /app | ||
|
||
COPY anycastd-*.whl . | ||
RUN python3 -m venv venv \ | ||
&& venv/bin/python3 -m pip install anycastd-*.whl | ||
|
||
ENV LOG_LEVEL=info | ||
ENV LOG_FORMAT=json | ||
|
||
ENTRYPOINT ["venv/bin/python3", "-m", "anycastd", "run"] |