-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathDockerfile.jammy
More file actions
39 lines (30 loc) · 1.37 KB
/
Dockerfile.jammy
File metadata and controls
39 lines (30 loc) · 1.37 KB
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
# DockerFile for a Fludity development container
# Use an Jammy base image
FROM ubuntu:jammy
# This DockerFile is looked after by
MAINTAINER Stephan Kramer <s.kramer@imperial.ac.uk>
# Installs shouldn't expect input
ENV DEBIAN_FRONTEND=noninteractive
# Package updates and installs
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install gnupg dirmngr && \
echo "deb http://ppa.launchpad.net/fluidity-core/ppa/ubuntu jammy main" > /etc/apt/sources.list.d/fluidity-core-ppa-jammy.list && \
gpg --keyserver keyserver.ubuntu.com --recv 0D45605A33BAC3BE && \
gpg --export --armor 33BAC3BE | apt-key add - && \
apt-get update && \
echo "Europe/London" > /etc/timezone && \
apt-get -y install fluidity-dev texlive-pstricks texlive texlive-latex-extra texlive-science python3-pip && \
apt-get clean
RUN python3 -m pip install --upgrade junit-xml
WORKDIR /usr/local
RUN curl -fsL https://gmsh.info/bin/Linux/gmsh-2.16.0-Linux64.tgz | tar --strip-components=1 -zxf -
ENV OMPI_MCA_btl_vader_single_copy_mechanism none
ENV OMPI_MCA_rmaps_base_oversubscribe 1
# Add a Fluidity user who will be the default user for this container
# Make sure the user has a userid matching the host system
# -- pass this as an argument at build time
ARG userid=1000
RUN adduser --disabled-password --gecos "" -u $userid fluidity
USER fluidity
WORKDIR /home/fluidity