-
-
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.
Add prebuilt ponyc releases for Ubuntu 22.04
Closes #4062
- Loading branch information
1 parent
deb1494
commit bc465a1
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
.ci-dockerfiles/x86-64-unknown-linux-ubuntu22.04-builder/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,28 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# Keep annoying tzdata prompt from coming up | ||
# Thanks cmake! | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBCONF_NONINTERACTIVE_SEEN true | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
apt-transport-https \ | ||
build-essential \ | ||
clang \ | ||
cmake \ | ||
git \ | ||
make \ | ||
xz-utils \ | ||
zlib1g-dev \ | ||
curl \ | ||
python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& apt-get -y autoremove --purge \ | ||
&& apt-get -y clean \ | ||
&& pip3 install cloudsmith-cli | ||
|
||
# add user pony in order to not run tests as root | ||
RUN useradd -ms /bin/bash -d /home/pony -g root pony | ||
USER pony | ||
WORKDIR /home/pony |
15 changes: 15 additions & 0 deletions
15
.ci-dockerfiles/x86-64-unknown-linux-ubuntu22.04-builder/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 DockerHub when you run this *** | ||
# | ||
|
||
NAME="ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Add prebuilt ponyc binaries for Ubuntu 22.04 | ||
|
||
We've added prebuilt ponyc binaries specifically made to work on Ubuntu 22.04. | ||
|
||
You can opt into using the Ubuntu binaries when using ponyup by running: | ||
|
||
```bash | ||
ponyup default ubuntu22.04 | ||
``` |