-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (43 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# syntax=docker/dockerfile:1
FROM ubuntu:22.04
ENV LANG C.UTF-8
LABEL maintainer="Stephen Graham" \
license="GNU LGPL 2.1"
RUN apt-get update && apt-get install -y \
python3-dev \
pkg-config \
python3-pip \
git \
build-essential \
gcc \
g++ \
python3-setuptools \
libopenmpi-dev \
openmpi-bin \
python3-mpi4py \
swig \
python3-numpy \
python3-scipy
RUN apt remove -y mpich
# Copy from nimbix/image-common
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates curl --no-install-recommends && \
curl -H 'Cache-Control: no-cache' \
https://raw.githubusercontent.com/nimbix/jarvice-desktop/master/install-nimbix.sh \
| bash
# Expose port 22 for local JARVICE emulation in docker
EXPOSE 22
# Change working directory
WORKDIR /home/nimbix/data/
# Create a directory to compile SU2
RUN mkdir -p /home/nimbix/data/SU2/
# Add all source files to the newly created directory
ADD init.sh /home/nimbix/data/
ADD compile_SU2.sh /home/nimbix/data/
RUN chmod -R 0777 /home/nimbix/data/
# Save Nimbix AppDef
COPY NAE/AppDef.json /etc/NAE/AppDef.json
COPY NAE/SU2logo.png /etc/NAE/SU2logo.png
COPY NAE/screenshot.png /etc/NAE/screenshot.png
# Call init.sh to compile and install SU2, verify all nodes are active, and begin solving
CMD "/home/nimbix/data/init.sh"