-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from Chia-Network/2204images
- Loading branch information
Showing
8 changed files
with
148 additions
and
184 deletions.
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
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [aarch64, x86_64] | ||
|
||
|
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
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,29 @@ | ||
name: Build Ubuntu 22.04 Image | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'ubuntu-22.04/*' | ||
- '.github/workflows/build-ubuntu-22.04.yml' | ||
pull_request: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '30 12 * * 5' | ||
|
||
concurrency: | ||
# SHA is added to the end if on `main` to let all main workflows run | ||
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main | ||
with: | ||
docker-context: "./ubuntu-22.04" | ||
dockerfile: "./ubuntu-22.04/Dockerfile" | ||
dockerhub_imagename: "chianetwork/ubuntu-22.04-builder" | ||
secrets: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PAT: ${{ secrets.DOCKERHUB_PAT }} |
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,64 @@ | ||
FROM ubuntu:22.04 | ||
|
||
ENV PYENV_ROOT=/root/.pyenv | ||
ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH" | ||
|
||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ | ||
apt-utils \ | ||
gpg \ | ||
gpg-agent \ | ||
software-properties-common && \ | ||
add-apt-repository ppa:git-core/ppa -y && \ | ||
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \ | ||
awscli \ | ||
build-essential \ | ||
curl \ | ||
dialog \ | ||
fakeroot \ | ||
g++-12 \ | ||
g++-13 \ | ||
git \ | ||
jq \ | ||
libbz2-dev \ | ||
libffi-dev \ | ||
liblzma-dev \ | ||
libncursesw5-dev \ | ||
libreadline-dev \ | ||
libssl-dev \ | ||
libsqlite3-dev \ | ||
libxml2-dev \ | ||
libxmlsec1-dev \ | ||
sudo \ | ||
tk-dev \ | ||
vim \ | ||
wget \ | ||
xz-utils \ | ||
zlib1g-dev && \ | ||
# Set up pyenv \ | ||
git clone https://github.com/pyenv/pyenv.git ~/.pyenv && \ | ||
pyenv install 3.10 && \ | ||
pyenv global 3.10 && \ | ||
pip install --upgrade pip && \ | ||
pip install --no-cache-dir py3createtorrent && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Add nodejs | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# Newer version of CMAKE | ||
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null && \ | ||
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null && \ | ||
apt-get update && \ | ||
apt-get install cmake -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Add GitHub CLI | ||
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ | ||
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ | ||
&& apt update \ | ||
&& apt install gh -y |