Skip to content

Commit

Permalink
Initial image based on ubuntu/risc
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Sep 20, 2023
1 parent 888a5ad commit e0f11b7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-ubuntu-22.04-risc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Ubuntu 22.04 RISC Image

on:
push:
branches:
- main
paths:
- 'ubuntu-22.04-risc/*'
- '.github/workflows/build-ubuntu-22.04-risc.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-risc"
dockerfile: "./ubuntu-22.04-risc/Dockerfile"
dockerhub_imagename: "chianetwork/ubuntu-22.04-risc-builder"
docker-platforms: linux/riscv64
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PAT: ${{ secrets.DOCKERHUB_PAT }}
13 changes: 13 additions & 0 deletions ubuntu-22.04-risc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM riscv64/ubuntu:focal

ENV PYENV_ROOT=/root/.pyenv
ENV PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"

RUN apt-get install -y curl make libssl-dev zlib1g zlib1g-dev libreadline-dev libffi-dev \
# && \
# curl https://pyenv.run | bash && \
# PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --skip-existing 3.8 && \
# PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --skip-existing 3.9 && \
# PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --skip-existing 3.10 && \
# PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install --skip-existing 3.11 && \
# pyenv global 3.11

0 comments on commit e0f11b7

Please sign in to comment.