-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The builder will be used to build nightly and release versions of ponyc targetting Fedora 39. No release notes are being added at this time, nor is RELEASE_PROCESS.md being updated as until a nightly runs, we can't be sure this will fully work. The docker image created for the builder can almost certainly be trimmed down in size, but I am not a Fedora/DNF expert. I am looking to the requester of Fedora 39 support to assist with trimming the image down.
- Loading branch information
1 parent
1dccb5d
commit 15dbd4f
Showing
4 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.ci-dockerfiles/x64-64-unknown-linux-fedora39-buiilder/Dockerfile
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,20 @@ | ||
FROM fedora:39 | ||
|
||
RUN dnf install -y clang \ | ||
cmake \ | ||
git \ | ||
make \ | ||
zlib \ | ||
curl \ | ||
python3-pip \ | ||
lldb \ | ||
libstdc++-static \ | ||
&& pip3 install cloudsmith-cli | ||
|
||
# needed for GitHub actions | ||
RUN git config --global --add safe.directory /__w/ponyc/ponyc | ||
|
||
# add user pony in order to not run tests as root | ||
RUN useradd -u 1001 -ms /bin/bash -d /home/pony -g root pony | ||
USER pony | ||
WORKDIR /home/pony |
15 changes: 15 additions & 0 deletions
15
.ci-dockerfiles/x64-64-unknown-linux-fedora39-buiilder/build-and-push.bash
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,15 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
# | ||
# *** You should already be logged in to GHCR when you run this *** | ||
# | ||
|
||
NAME="ghcr.io/ponylang/ponyc-ci-x86-64-unknown-linux-fedora39-builder" | ||
TODAY=$(date +%Y%m%d) | ||
DOCKERFILE_DIR="$(dirname "$0")" | ||
|
||
docker build --pull -t "${NAME}:${TODAY}" "${DOCKERFILE_DIR}" | ||
docker push "${NAME}:${TODAY}" |
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