-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (32 loc) · 1.29 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
FROM fedora:29
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="Fedora 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_fedora" \
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 fedora_29_gfortran_7_xsbinaries
ENV PYTHONDONTWRITEBYTECODE 1.
ENV PYTEST_VERBOSE line
ENV RUN_SCRIPT ~/.bashrc
WORKDIR /
# Install additional packages
RUN yum install -y wget which make less doxygen rsync nano && \
yum install -y cpio libgcc gcc gcc-c++ gcc-gfortran && \
yum install -y libgfortran-static libstdc++-static && \
yum install -y libstdc++.i686 libgcc.i686 && \
yum install -y cmake python3 python3-devel git && \
pip3 install --upgrade pip && \
pip3 install pytest pytest-xdist pypact
CMD /bin/bash $RUN_SCRIPT