Skip to content

Commit 6b805f7

Browse files
asaezpercodebot
authored andcommitted
ci,builders: refactor debian to reduce layers
1 parent 5288ccd commit 6b805f7

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

.gitlab/ci/builders/debian/Dockerfile

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,25 @@ ARG VERSION=22.04
1010
ARG OS_NAME=ubuntu
1111
FROM $OS_NAME:$VERSION
1212

13-
ADD install_dependencies.sh /usr/local/bin
14-
RUN chmod +x /usr/local/bin/install_dependencies.sh
15-
16-
RUN TZ=Europe/Madrid && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
17-
RUN install_dependencies.sh && apt-get install -y --no-install-recommends \
18-
git git-lfs \
19-
clang llvm \
20-
ccache gcovr valgrind \
21-
python3-dev python3-venv \
22-
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && git lfs install
23-
24-
RUN (DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends libclang-rt-dev || true) \
25-
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
26-
27-
ADD builder.sh /usr/local/bin
28-
RUN chmod +x /usr/local/bin/builder.sh
29-
30-
RUN python3 -m venv /usr/local/builder_tools
31-
RUN /usr/local/builder_tools/bin/pip install "pandas<3" "psutil"
32-
ADD changed_tests.py /usr/local/bin
33-
RUN chmod +x /usr/local/bin/changed_tests.py
34-
ADD ram_reporter.py /usr/local/bin
35-
RUN chmod +x /usr/local/bin/ram_reporter.py
13+
RUN TZ=Europe/Madrid && \
14+
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
15+
echo $TZ > /etc/timezone && \
16+
apt-get update && \
17+
apt-get install -y --no-install-recommends \
18+
git git-lfs \
19+
clang llvm \
20+
ccache gcovr valgrind \
21+
python3-dev python3-venv && \
22+
(apt-get install -y --no-install-recommends libclang-rt-dev || true) && \
23+
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && \
24+
git lfs install
25+
26+
ADD install_dependencies.sh builder.sh changed_tests.py ram_reporter.py /usr/local/bin/
27+
RUN chmod +x /usr/local/bin/install_dependencies.sh /usr/local/bin/builder.sh /usr/local/bin/changed_tests.py /usr/local/bin/ram_reporter.py && \
28+
/usr/local/bin/install_dependencies.sh && \
29+
apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* && \
30+
python3 -m venv /usr/local/builder_tools && \
31+
/usr/local/builder_tools/bin/pip install "pandas<3" "psutil"
3632

3733
ADD uhd /opt/uhd
3834
ADD dpdk /opt/dpdk

.gitlab/ci/e2e/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SRSGNB_REGISTRY_URI=registry.gitlab.com/softwareradiosystems/srsgnb
22
RETINA_REGISTRY_PREFIX=registry.gitlab.com/softwareradiosystems/ci/retina
3-
RETINA_VERSION=0.42.1
3+
RETINA_VERSION=0.42.2
44
AMARISOFT_VERSION=2023-03-17
55
SRSUE_VERSION=23.11
66
OPEN5GS_VERSION=2.6.1

0 commit comments

Comments
 (0)