Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fluidnumerics-joe committed Sep 19, 2023
1 parent 8d21be7 commit d5be885
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci

on:
push:
branches:
- 'main'

jobs:
docker:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- rocm_version: '5.6'
rocm_package_set: 'rocm-dev'
operating_system: 'centos8'

- rocm_version: '5.6'
rocm_package_set: 'rocm-dev'
operating_system: 'ubuntu2204'
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v5
with:
push: false
tags: ${{matrix.operating_system}}_rocm${{matrix.rocm_version}}:latest
file: Dockerfile.${{matrix.operating_system}}
build-args: ROCM_VERSION=${{matrix.rocm_version}}, PACKAGE_SET=${{matrix.rocm_package_set}}
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ Each container recipe has the following build arguments

* `PACKAGE_SET` - The set of ROCm packages to install. These refer to the packages that are managed by the operating system for ROCm. By default, this is set to `rocm-dev`. Couldn't find a single page with a complete list of ROCm packages available through package managers ? Don't worry, we couldn't either. Below, however, we've pulled a complete list for ROCm 5.6 . These packages may (or may not) be available with earlier (or later) versions of ROCm. In most cases, `rocm-dev` is available and will do just fine. Also, we don't recommend using ROCm version before 5.6, but alas, you may have your reasons.


To build on CentOS 8

```
docker build . --build-args ROCM_VERSION=5.6 --build-args PACKAGE_SET=rocm-dev -f Dockerfile.centos8 -t rocm5.6_centos8:latest
```

To build on Ubuntu 22.04

```
docker build . --build-args ROCM_VERSION=5.6 --build-args PACKAGE_SET=rocm-dev -f Dockerfile.ubuntu2204 -t rocm5.6_ubuntu2204:latest
```

## Getting the docker image size

```
Expand Down

0 comments on commit d5be885

Please sign in to comment.