forked from alire-project/dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.centos-stream-fsf-latest
More file actions
45 lines (41 loc) · 1.18 KB
/
Copy pathDockerfile.centos-stream-fsf-latest
File metadata and controls
45 lines (41 loc) · 1.18 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
40
41
42
43
44
45
# Dockerfile for CentOS
# Currently used as "unsupported" linux test version
FROM quay.io/centos/centos:stream
# CentOS has moved to a rolling release model
ENV PATH=/opt/gnat/bin:/opt/gprbuild/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Refresh rolling repositories
RUN yum makecache && \
# BASE TOOLS
yum install -y \
bzip2 \
curl \
epel-release \
fontconfig \
gcc \
git \
libX11 \
libX11-xcb \
make \
mercurial \
redhat-rpm-config \
subversion \
sudo \
unzip \
wget && \
\
# PYTHON PIP v3 (for e3)
yum install -y \
python38-devel \
python38
# GNAT FSF via alr
RUN wget https://github.com/alire-project/alire/releases/download/v1.2.2/alr-1.2.2-bin-x86_64-linux.zip \
-O /tmp/alr.zip && \
unzip /tmp/alr.zip -d /tmp && \
cp /tmp/bin/alr /usr/bin/alr && \
chmod +x /usr/bin/alr && \
alr toolchain --install gnat_native gprbuild --install-dir /opt && \
rm /usr/bin/alr && \
mv /opt/gnat* /opt/gnat && \
mv /opt/gprbuild* /opt/gprbuild && \
gnat --version && \
gprbuild --version