-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
115 lines (96 loc) · 2.84 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# ./Dockerfile
FROM rockylinux:9
# Host dependencies autoconf bmap-tools docbook-utils texinfo
RUN yum -y upgrade && yum -y install \
automake \
bzip2 \
chrpath \
cpio \
cpp \
diffstat \
diffutils \
dnf \
epel-release \
file \
findutils \
gawk \
gcc \
gcc-c++ \
git \
glibc-devel \
glibc-langpack-en \
gzip \
hostname \
iproute \
libacl \
libtool \
lz4 \
make \
man \
ncurses-compat-libs \
patch \
perl \
perl-bignum \
perl-Data-Dumper \
python3-pexpect \
perl-Text-ParseWords \
perl-Thread-Queue \
procps-ng \
python3 \
python3-jinja2 \
python3-pip \
socat \
sudo \
tar \
unzip \
wget \
which \
xalan-j2 \
xmlto \
xz \
zstd
# Install rpcgen library
RUN curl -SL https://dl.rockylinux.org/pub/rocky/8/Devel/x86_64/os/Packages/r/rpcgen-1.3.1-4.el8.x86_64.rpm -o /tmp/rpcgen-1.rpm && ls /tmp && \
yum -y install /tmp/rpcgen-1.rpm && \
rm /tmp/rpcgen-1.rpm
RUN curl -SL https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/p/perl-File-Copy-2.34-473.module+el8.10.0+1616+0d20cc68.noarch.rpm -o /tmp/perl-FileCopy-2.rpm && \
yum -y install --skip-broken /tmp/perl-FileCopy-2.rpm && \
rm /tmp/perl-FileCopy-2.rpm
RUN curl -SL https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/p/perl-File-Compare-1.100.600-473.module+el8.10.0+1616+0d20cc68.noarch.rpm -o /tmp/perl-File-Compare-1.rpm && \
yum -y install --skip-broken /tmp/perl-File-Compare-1.rpm && \
rm /tmp/perl-File-Compare-1.rpm
RUN curl -SL https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/Packages/p/perl-locale-1.09-473.module+el8.10.0+1616+0d20cc68.noarch.rpm -o /tmp/perl-locale-1.rpm && \
yum -y install --skip-broken /tmp/perl-locale-1.rpm && \
rm /tmp/perl-locale-1.rpm
# RUN curl
RUN yum -y group install "Development Tools"
#Get fakeroot which needs epel-release
#RUN yum -y install fakeroot
#install rpcgen
# Copy in scripts and dls rootfs, annotypes, pymalcolm, and malcolmjs
# COPY PandABlocks-rootfs/.github/scripts /scripts
# COPY rootfs /rootfs
# COPY annotypes /annotypes
# COPY pymalcolm /pymalcolm
# COPY malcolmjs /malcolmjs
# Toolchains and tar files
# RUN bash scripts/GNU-toolchain.sh
# RUN bash scripts/tar-files.sh
# For the documentation
#RUN pip3 install matplotlib \
# rst2pdf \
# sphinx \
# sphinx-rtd-theme \
# --upgrade docutils==0.16
# Create config file for dls-rootfs
# RUN bash scripts/config-file-rootfs.sh
# Error can't find python
RUN ln -s /usr/bin/python3 /usr/bin/python
#RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
# locale-gen
ENV LANG en_US.utf8
# Make sure git doesn't fail when used to obtain a tag name
RUN git config --global --add safe.directory '*'
# Entrypoint into the container
WORKDIR /repos
CMD ["/bin/bash"]