forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ci] Add dockerfile.ubuntu-18.04.amdgpu (taichi-dev#6736)
- Loading branch information
1 parent
c423c96
commit 99fca81
Showing
2 changed files
with
81 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Taichi Dockerfile for development | ||
FROM rocm/dev-ubuntu-18.04:5.2 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
LABEL maintainer="https://github.com/taichi-dev" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y software-properties-common && add-apt-repository -y ppa:git-core/ppa && apt-get update && \ | ||
apt-get install -y python3-pip \ | ||
libtinfo-dev \ | ||
sudo \ | ||
clang-10 \ | ||
wget \ | ||
git \ | ||
unzip \ | ||
ffmpeg \ | ||
libxrandr-dev \ | ||
libxinerama-dev \ | ||
libxcursor-dev \ | ||
libxi-dev \ | ||
libglu1-mesa-dev \ | ||
freeglut3-dev \ | ||
mesa-common-dev \ | ||
libssl-dev \ | ||
libglm-dev \ | ||
libxcb-keysyms1-dev \ | ||
libxcb-dri3-dev \ | ||
libxcb-randr0-dev \ | ||
libxcb-ewmh-dev \ | ||
libpng-dev \ | ||
g++-multilib \ | ||
libmirclient-dev \ | ||
libwayland-dev \ | ||
bison \ | ||
libx11-xcb-dev \ | ||
liblz4-dev \ | ||
libzstd-dev \ | ||
qt5-default \ | ||
libglfw3 \ | ||
libglfw3-dev \ | ||
libjpeg-dev \ | ||
&& \ | ||
printf "root ALL=(ALL:ALL) NOPASSWD: ALL\ndev ALL=(ALL:ALL) NOPASSWD: ALL\n" > /etc/sudoers && \ | ||
true | ||
|
||
# Install LLVM 15 | ||
WORKDIR / | ||
# Make sure this URL gets updated each time there is a new prebuilt bin release | ||
RUN wget https://github.com/GaleSeLee/assets/releases/download/v0.0.1/taichi-llvm-15.0.0-linux.zip | ||
RUN unzip taichi-llvm-15.0.0-linux.zip && \ | ||
rm taichi-llvm-15.0.0-linux.zip | ||
ENV PATH="/taichi-llvm-15.0.0-linux/bin:$PATH" | ||
# Use Clang as the default compiler | ||
ENV CC="clang-10" | ||
ENV CXX="clang++-10" | ||
|
||
# Create non-root user for running the container | ||
RUN useradd -m -s /bin/bash dev && \ | ||
usermod -a -G video dev && \ | ||
chmod 666 /dev/kfd && \ | ||
chmod 666 /dev/dri/* | ||
WORKDIR /home/dev | ||
USER dev | ||
|
||
# Install miniconda | ||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ | ||
bash Miniconda3-latest-Linux-x86_64.sh -p /home/dev/miniconda -b | ||
ENV PATH="/home/dev/miniconda/bin:$PATH" | ||
|
||
WORKDIR /home/dev | ||
ENV LANG="C.UTF-8" | ||
|
||
# Set up multi-python environment | ||
RUN conda init bash | ||
RUN conda create -n py36 python=3.6 -y | ||
RUN conda create -n py37 python=3.7 -y | ||
RUN conda create -n py38 python=3.8 -y | ||
RUN conda create -n py39 python=3.9 -y | ||
RUN conda create -n py310 python=3.10 -y |
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