Skip to content

Commit 1b667a7

Browse files
authored
Add ghascale cpubuilder and amdgpu docker images. (#31)
This PR adds the cpubuilder and amdgpu ghascale images that we have been using in `iree-org`. Previously hosted here: https://github.com/saienduri/docker-images/blob/main/ghascale.Dockerfile https://github.com/saienduri/docker-images/blob/main/ghascale-rocm.Dockerfile (upgraded this to rocm 6.4 in the image added to this repo) Tested builds here: https://github.com/iree-org/base-docker-images/actions/runs/14767541047 https://github.com/iree-org/base-docker-images/actions/runs/14767541040 --------- Signed-off-by: saienduri <[email protected]>
1 parent d0e7850 commit 1b667a7

File tree

6 files changed

+107
-1
lines changed

6 files changed

+107
-1
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish amdgpu ghascale images
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 5 * * *'
6+
push:
7+
branches: ['main']
8+
paths:
9+
- dockerfiles/amdgpu_ubuntu_ghascale.Dockerfile
10+
- .github/workflows/publish_amdgpu_ubuntu_ghascale.yml
11+
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
jobs:
17+
build-amdgpu-ubuntu-ghascale:
18+
uses: ./.github/workflows/publish_dockerfile.yml
19+
with:
20+
DOCKERFILE_NAME: amdgpu_ubuntu_ghascale

.github/workflows/publish_cpubuilder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: ['main']
66
paths:
7-
- dockerfiles/cpubuilder*.Dockerfile
7+
- dockerfiles/cpubuilder_ubuntu_jammy*.Dockerfile
88
- .github/workflows/publish_cpubuilder.yml
99

1010
permissions:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish ghascale cpubuilder images
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 5 * * *'
6+
push:
7+
branches: ['main']
8+
paths:
9+
- dockerfiles/cpubuilder_ubuntu_ghascale.Dockerfile
10+
- .github/workflows/publish_cpubuilder_ubuntu_ghascale.yml
11+
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
jobs:
17+
build-cpubuilder-ubuntu-ghascale:
18+
uses: ./.github/workflows/publish_dockerfile.yml
19+
with:
20+
DOCKERFILE_NAME: cpubuilder_ubuntu_ghascale

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ These images build and publish automatically using GitHub Actions.
99
Image name | Description | Source Dockerfile
1010
---------- | ----------- | -----------------
1111
`iree-org/amdgpu_ubuntu_jammy_x86_64` | Ubuntu with AMDGPU deps | [Source](./dockerfiles/amdgpu_ubuntu_jammy_x86_64.Dockerfile)
12+
`iree-org/amdgpu_ubuntu_ghascale` | Ubuntu with AMDGPU deps (GitHub Runner Scale Set) | [Source](./dockerfiles/amdgpu_ubuntu_ghascale.Dockerfile)
1213
`iree-org/amdgpu_ubuntu_jammy_ghr_x86_64` | Ubuntu with AMDGPU deps (GitHub runner) | [Source](./dockerfiles/amdgpu_ubuntu_jammy_ghr_x86_64.Dockerfile)
1314
`iree-org/cpubuilder_ubuntu_jammy` | CPU builder with IREE build deps | [Source](./dockerfiles/cpubuilder_ubuntu_jammy.Dockerfile)
15+
`iree-org/cpubuilder_ubuntu_ghascale` | CPU builder with IREE build deps (GitHub Runner Scale Set) | [Source](./dockerfiles/cpubuilder_ubuntu_ghascale.Dockerfile)
1416
`iree-org/cpubuilder_ubuntu_jammy_ghr` | CPU builder with IREE build deps (GitHub runner) | [Source](./dockerfiles/cpubuilder_ubuntu_jammy_ghr.Dockerfile)
1517
`iree-org/manylinux_x86_64` | Portable Linux release builder for Python packaging | [Source](./dockerfiles/manylinux_x86_64.Dockerfile)
1618
`iree-org/manylinux_ghr_x86_64` | Portable Linux release builder for Python packaging (GitHub runner) | [Source](./dockerfiles/manylinux_ghr_x86_64.Dockerfile)
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM ghcr.io/actions/actions-runner:latest
2+
3+
# base dependencies
4+
RUN sudo apt-get update -y \
5+
&& sudo apt-get install -y software-properties-common \
6+
&& sudo add-apt-repository -y ppa:git-core/ppa \
7+
&& sudo apt-get update -y \
8+
&& sudo apt-get install -y --no-install-recommends \
9+
curl \
10+
ca-certificates \
11+
git \
12+
jq \
13+
sudo \
14+
unzip \
15+
zip \
16+
cmake \
17+
ninja-build \
18+
clang \
19+
lld \
20+
wget \
21+
psmisc \
22+
python3-setuptools \
23+
python3-wheel \
24+
libpython3.10 \
25+
python3.10-venv
26+
&& sudo rm -rf /var/lib/apt/lists/*
27+
28+
# git lfs install
29+
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
30+
sudo apt-get install git-lfs
31+
32+
RUN sudo groupadd -g 109 render
33+
34+
# ROCm install
35+
RUN sudo apt update -y \
36+
&& sudo usermod -a -G render,video runner \
37+
&& wget https://repo.radeon.com/amdgpu-install/6.4/ubuntu/jammy/amdgpu-install_6.4.60400-1_all.deb \
38+
&& sudo apt install -y ./amdgpu-install_6.4.60400-1_all.deb \
39+
&& sudo apt update -y \
40+
&& sudo apt install -y rocm-dev
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM ghcr.io/actions/actions-runner:latest
2+
3+
# base dependencies
4+
RUN sudo apt-get update -y \
5+
&& sudo apt-get install -y software-properties-common \
6+
&& sudo add-apt-repository -y ppa:git-core/ppa \
7+
&& sudo apt-get update -y \
8+
&& sudo apt-get install -y --no-install-recommends \
9+
curl \
10+
ca-certificates \
11+
git \
12+
jq \
13+
sudo \
14+
unzip \
15+
zip \
16+
cmake \
17+
ninja-build \
18+
clang \
19+
lld \
20+
&& sudo rm -rf /var/lib/apt/lists/*
21+
22+
# git lfs install
23+
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
24+
sudo apt-get install git-lfs

0 commit comments

Comments
 (0)