Skip to content

Commit

Permalink
Merge pull request quattor#354 from jrha/dockerfile
Browse files Browse the repository at this point in the history
Dockerfile: Add rpm-build and don't set USER or CMD
  • Loading branch information
wpoely86 authored Sep 4, 2024
2 parents 1e5f7fe + b34f91f commit 086adf6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ RUN dnf install -y maven which rpm-build panc ncm-lib-blockdevices \
perl-Net-OpenStack-Client perl-NetAddr-IP perl-REST-Client \
perl-Set-Scalar perl-Text-Glob cpanminus gcc wget \
perl-Git-Repository perl-Data-Structure-Util \
perl-Test-Quattor aii-ks procps-ng
perl-Test-Quattor aii-ks procps-ng rpm-build

# quattor tests should not be run as root
RUN useradd --user-group --create-home --no-log-init --home-dir /quattor_test quattortest
USER quattortest
WORKDIR /quattor_test

# Default action on running the container is to run all tests
CMD . /usr/bin/mvn_test.sh && mvn_test
CMD sudo -iu quattortest

0 comments on commit 086adf6

Please sign in to comment.