-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker image maintenance #432
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
07694a7
Bump cmake patch version
haampie 8a8f638
Bump the rocm image to use 4.0.1 (seems like 4.0 == 4.0.0)
haampie 1fe4750
Periodically build the ROCm Docker image
haampie 7e069be
Start using the new image
haampie b99690b
Update the docs
haampie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,18 @@ jobs: | |
workdir: tools/docker | ||
dockerfile: Dockerfile.build-env-latest-gcc | ||
tags: "latest" | ||
|
||
docker-build-env-rocm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Publish Gitlab Image | ||
uses: elgohr/[email protected] | ||
with: | ||
name: dbcsr/build-env-rocm-ubuntu-20.04 | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
workdir: tools/docker | ||
dockerfile: Dockerfile.build-env-rocm | ||
tags: "latest" |
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 |
---|---|---|
@@ -1,43 +1,24 @@ | ||
FROM rocm/dev-ubuntu-18.04:latest | ||
FROM rocm/dev-ubuntu-20.04:4.0.1 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# install compilers, libraries & co | ||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
locales \ | ||
gfortran \ | ||
gcc-7 \ | ||
g++-7 \ | ||
llvm-7-dev \ | ||
llvm-7-tools \ | ||
mpich \ | ||
libomp-7-dev \ | ||
RUN apt-get update -qq \ | ||
&& apt-get install --no-install-recommends -qq \ | ||
ca-certificates \ | ||
gfortran g++ gcc \ | ||
git \ | ||
hipblas \ | ||
libmpich-dev \ | ||
libopenblas-dev \ | ||
wget | ||
|
||
# install rocm libraries | ||
RUN wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add - | ||
RUN echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list | ||
RUN apt-get update | ||
RUN apt-get install -y \ | ||
rocm-dev \ | ||
libopenblas-openmp-dev \ | ||
mpich \ | ||
ninja-build \ | ||
rocblas \ | ||
rocsolver \ | ||
hipblas | ||
|
||
# install git 2.18+ | ||
RUN apt-get install -y software-properties-common | ||
RUN add-apt-repository ppa:git-core/ppa | ||
RUN apt-get install -y git | ||
|
||
# install ninja | ||
RUN apt-get install -y wget | ||
RUN wget https://github.com/Kitware/ninja/releases/download/v1.10.0.gfb670.kitware.jobserver-1/ninja-1.10.0.gfb670.kitware.jobserver-1_x86_64-linux-gnu.tar.gz | ||
RUN tar -xzvf ninja-1.10.0.gfb670.kitware.jobserver-1_x86_64-linux-gnu.tar.gz | ||
ENV PATH="/ninja-1.10.0.gfb670.kitware.jobserver-1_x86_64-linux-gnu:${PATH}" | ||
|
||
# install cmake | ||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.17.0/cmake-3.17.0-Linux-x86_64.tar.gz | ||
RUN tar -xzvf cmake-3.17.0-Linux-x86_64.tar.gz | ||
ENV PATH="/cmake-3.17.0-Linux-x86_64/bin:${PATH}" | ||
wget \ | ||
python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& wget -qO- "https://cmake.org/files/v3.17/cmake-3.17.5-Linux-x86_64.tar.gz" | \ | ||
tar --strip-components=1 -xz -C /usr/local \ | ||
&& pip3 install fypp | ||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just discovered this one here: https://apt.kitware.com/ ... what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm yeah, I think it can't hurt to install a specific version and I'm too lazy to figure out how you would pin it with apt