-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.opensuse-leap
40 lines (31 loc) · 1.12 KB
/
Dockerfile.opensuse-leap
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
# Dockerfile for openSUSE Leap
FROM opensuse/leap
RUN zypper ref
# The default Ada compiler, gcc-ada, is extraordinarily old (gcc 7), but it is
# required by gprbuild from SUSE as it is the system compiler.
RUN zypper -n install \
bash \
curl \
git \
gcc-ada \
jq \
python3-devel \
mercurial \
python3-pip \
python3-virtualenv \
subversion \
sudo \
unzip \
wget
# Gprbuild is not available in the openSUSE Leap repositories, so we manually
# install the one from the Tumbleweed repo, which is apparently compatible.
ENV GPRBUILD=gprbuild-24.0.0-6.94.x86_64.rpm
RUN wget https://download.opensuse.org/repositories/home:/vibondare:/devel:/languages:/Ada/openSUSE_Tumbleweed/x86_64/$GPRBUILD && \
zypper --no-refresh -n --no-gpg-checks install $GPRBUILD && \
rm $GPRBUILD
RUN cat /etc/os-release && \
gnat --version && \
gprbuild --version
# We purposely dont clean the zypper cache to avoid a lenghtly refresh during
# external detections, as even with --no-refresh, it will do a refresh if there
# is no cache at all.