-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (39 loc) · 1.72 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
FROM ubuntu:16.04
MAINTAINER UKAEA <[email protected]>
# Build-time metadata as defined at http://label-schema.org
ARG PROJECT_NAME
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="$PROJECT_NAME" \
org.label-schema.description="Ubuntu docker image for FISPACT-II" \
org.label-schema.url="http://fispact.ukaea.uk/" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/fispact/docker_ubuntu" \
org.label-schema.vendor="UKAEA" \
org.label-schema.version=$VERSION \
org.label-schema.license="Apache-2.0" \
org.label-schema.schema-version="1.0"
# some environment variables for regression testing
ENV FISPACT_SYSTEM_TESTS_REF ubuntu_16.04_gfortran_5_xsbinaries
ENV PYTHONDONTWRITEBYTECODE 1.
ENV PYTEST_VERBOSE line
ENV RUN_SCRIPT ~/.bashrc
# Install additional packages
RUN apt-get --yes update && \
apt-get --yes upgrade && \
apt-get --yes install make git cmake less sudo python3 python3-pip python-dev build-essential && \
apt-get --yes install libquadmath0 doxygen cloc rsync cpio && \
apt-get --yes full-upgrade && \
apt-get --yes dist-upgrade && \
apt-get --yes install build-essential software-properties-common && \
add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
apt-get --yes update && \
apt-get --yes install gcc-7 g++-7 gfortran-7 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7 && \
update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-7 60 && \
pip3 install --upgrade pip && \
pip3 install pytest pytest-xdist pypact
WORKDIR /
CMD /bin/bash $RUN_SCRIPT