-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shift a couple of stages from Jenkinsfile into Dockerfile
The Jenkins job on our new deployment is running Docker containers with the option `-u 1000:1000` instead of `-u 0:0` which results in permissions issues when doing administrative things such as using `apt-get` to install stuff. So this commit moves the install stages of the test run into a Dockerfile, so that the image which is all nicely configured can then be used to run the tests. Relates to NGC-1447.
- Loading branch information
1 parent
1d88c3f
commit 890d049
Showing
2 changed files
with
42 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# syntax = docker/dockerfile:1 | ||
|
||
################################################################################ | ||
# Copyright (c) 2024, National Research Foundation (SARAO) | ||
# | ||
# | ||
# This program is free software: you can redistribute it and/or modify it under | ||
# the terms of the GNU Lesser General Public License as published by the Free | ||
# Software Foundation, either version 3 of the License, or (at your option) any | ||
# later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | ||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more | ||
# details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
################################################################################ | ||
|
||
FROM ubuntu:24.04 | ||
|
||
WORKDIR /tmp/spead2 | ||
COPY . . | ||
|
||
# Install dependencies | ||
# jq and iproute2 are used to find the interface IPv4 address | ||
RUN apt-get update && apt-get -y --no-install-recommends install libpython3-dev python3-venv jq iproute2 | ||
RUN python3 -m venv /venv | ||
RUN .ci/install-sys-pkgs.sh | ||
RUN PATH="/venv/bin:$PATH" .ci/py-requirements.sh | ||
|
||
# Install Python package | ||
RUN PATH="/venv/bin:$PATH" pip install -v \ | ||
--config-settings=setup-args=--native-file=ci.ini \ | ||
--config-settings=setup-args=-Dibv=enabled \ | ||
--config-settings=setup-args=-Dibv_hw_rate_limit=enabled \ | ||
--config-settings=setup-args=-Dmlx5dv=enabled \ | ||
. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters