Skip to content

Commit ad624d5

Browse files
committed
Tidying up dockerfiles
1 parent b44b582 commit ad624d5

File tree

6 files changed

+16
-55
lines changed

6 files changed

+16
-55
lines changed

.github/workflows/docker-image-intel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
3333
- name: Info on generated files
3434
run: |
35-
ls -alt
36-
ls -alt output
37-
ls -alt output/*
35+
ls -alth
36+
ls -alth output
37+
ls -alth output/*
3838
more output/*/report.json

.github/workflows/docker-image-quickrun.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
./run-quick.sh
2929
- name: Info on generated files
3030
run: |
31-
ls -alt
32-
ls -alt output
33-
ls -alt output/*
31+
ls -alth
32+
ls -alth output
33+
ls -alth output/*

.github/workflows/docker-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
./run.sh
2929
- name: Info on generated files
3030
run: |
31-
ls -alt
32-
ls -alt output
33-
ls -alt output/*
31+
ls -alth
32+
ls -alth output
33+
ls -alth output/*

.github/workflows/docker-pull.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
3939
- name: Info on generated files
4040
run: |
41-
ls -alt
42-
ls -alt output
43-
ls -alt output/*
41+
ls -alth
42+
ls -alth output
43+
ls -alth output/*
4444
more output/*

Dockerfile

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@ FROM ubuntu:22.04
22

33
LABEL maintainer="David Lung ([email protected]); Padraig Gleeson ([email protected])"
44

5-
ARG INTEL_SDK_VERSION=2017_7.0.0.2511_x64
6-
7-
#COPY ./silent-intel-sdk.cfg /tmp/silent-intel-sdk.cfg
8-
9-
105
ARG USR=ow
116
ENV USER=$USR
127

@@ -23,12 +18,8 @@ RUN mkdir -p /etc/sudoers.d && \
2318
chmod 0440 /etc/sudoers.d/$USER && \
2419
chown ${uid}:${gid} -R /home/$USER
2520

26-
2721
ENV DEBIAN_FRONTEND noninteractive # TODO: change
2822

29-
#RUN useradd -ms /bin/bash $USER
30-
31-
3223
################################################################################
3324
######## Update/install essential libraries
3425

@@ -46,7 +37,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends apt-utils \
4637
libxft-dev python3-matplotlib unzip ffmpeg xvfb tmux
4738

4839
#RUN sudo pip install --upgrade pip
49-
#RUN sudo apt-get install nvidia-opencl-dev
5040

5141
RUN sudo usermod -a -G video $USER
5242

@@ -82,11 +72,7 @@ RUN owm bundle remote --user add ow 'https://raw.githubusercontent.com/openworm/
8272
################################################################################
8373
######## Install Sibernetic for the worm body model
8474

85-
# RUN git clone https://github.com/openworm/sibernetic.git && \
86-
# cd sibernetic && \
87-
# git checkout ow-0.9.3 # fixed to a specific branch
88-
89-
RUN git clone https://github.com/pgleeson/sibernetic.git && \
75+
RUN git clone https://github.com/openworm/sibernetic.git && \
9076
cd sibernetic && \
9177
git checkout ow-0.9.4 # fixed to a specific branch
9278

@@ -100,27 +86,8 @@ ENV PYTHONPATH=$PYTHONPATH:$HOME/c302:$SIBERNETIC_HOME
10086

10187

10288
################################################################################
103-
######## Install Intel OpenCL libraries needed for Sibernetic
104-
105-
# Legacy install of Intel's OpenCL Drivers:
106-
# RUN mkdir intel-opencl-tmp && \
107-
# cd intel-opencl-tmp && \
108-
# mkdir intel-opencl && \
109-
# wget https://github.com/openworm/OpenWorm/raw/dev_inte/SRB5.0_linux64.zip && \
110-
# unzip SRB5.0_linux64.zip && \
111-
# tar -C intel-opencl -Jxf intel-opencl-r5.0-63503.x86_64.tar.xz && \
112-
# tar -C intel-opencl -Jxf intel-opencl-devel-r5.0-63503.x86_64.tar.xz && \
113-
# tar -C intel-opencl -Jxf intel-opencl-cpu-r5.0-63503.x86_64.tar.xz && \
114-
# sudo cp -R intel-opencl/* / && \
115-
# sudo ldconfig && \
116-
# cd .. && \
117-
# sudo rm -r intel-opencl-tmp
118-
119-
# RUN sudo cp -R /opt/intel/opencl/include/CL /usr/include/ && \
120-
# sudo apt install -y ocl-icd-opencl-dev vim
121-
# #sudo ln -s /opt/intel/opencl/libOpenCL.so.1 /usr/lib/libOpenCL.so
122-
123-
# Install AMD's OpenCL Drivers (AMD-APP-SDK 3.0):
89+
######## Install AMD's OpenCL Drivers (AMD-APP-SDK 3.0)
90+
12491
RUN wget https://master.dl.sourceforge.net/project/nicehashsgminerv5viptools/APP%20SDK%20A%20Complete%20Development%20Platform/AMD%20APP%20SDK%203.0%20for%2064-bit%20Linux/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
12592
RUN tar -xf AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
12693
RUN printf 'Y\n\n' | sudo ./AMD-APP-SDK-v3.0.130.136-GA-linux64.sh
@@ -140,7 +107,6 @@ RUN clinfo
140107
######## Build Sibernetic
141108

142109
RUN cd sibernetic && \
143-
sed -i -e "s/n2.7/n3.10/g" makefile && \
144110
make clean && make all && ldd ./Release/Sibernetic # Use python 3 libs
145111

146112

Dockerfile_intel

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN mkdir -p /etc/sudoers.d && \
1818
chmod 0440 /etc/sudoers.d/$USER && \
1919
chown ${uid}:${gid} -R /home/$USER
2020

21-
2221
ENV DEBIAN_FRONTEND noninteractive # TODO: change
2322

2423

@@ -91,7 +90,6 @@ ENV PYTHONPATH=$PYTHONPATH:$HOME/c302:$SIBERNETIC_HOME
9190
######## Install Intel OpenCL libraries needed for Sibernetic
9291

9392
# Legacy install of Intel's OpenCL Drivers:
94-
# ARG INTEL_SDK_VERSION=2017_7.0.0.2511_x64
9593

9694
RUN mkdir intel-opencl-tmp && \
9795
cd intel-opencl-tmp && \
@@ -107,9 +105,7 @@ RUN mkdir intel-opencl-tmp && \
107105
sudo rm -r intel-opencl-tmp
108106

109107
RUN sudo cp -R /opt/intel/opencl/include/CL /usr/include/ && \
110-
sudo apt install -y ocl-icd-opencl-dev vim
111-
#sudo ln -s /opt/intel/opencl/libOpenCL.so.1 /usr/lib/libOpenCL.so
112-
108+
sudo apt install -y ocl-icd-opencl-dev vim
113109

114110
RUN echo "OpenCL Driver Installation Complete"
115111

@@ -118,7 +114,6 @@ RUN echo "OpenCL Driver Installation Complete"
118114
######## Build Sibernetic
119115

120116
RUN cd sibernetic && \
121-
sed -i -e "s/n2.7/n3.10/g" makefile && \
122117
make clean && make all && ldd ./Release/Sibernetic # Use python 3 libs
123118

124119

0 commit comments

Comments
 (0)