-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix for api test files being owned by root on linux
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 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 |
---|---|---|
@@ -1,11 +1,18 @@ | ||
|
||
FROM maven:3.8-jdk-11 | ||
|
||
ARG USERNAME=apitester | ||
ARG USER_UID=1000 | ||
ARG USER_GID=$USER_UID | ||
|
||
RUN groupadd --gid $USER_GID $USERNAME \ | ||
&& useradd --create-home --no-log-init --uid $USER_UID --gid $USER_GID -m $USERNAME | ||
|
||
ADD . /opt/apitester | ||
RUN cd /opt/apitester && mvn clean package | ||
RUN chown -R apitester:apitester /opt/apitester | ||
|
||
RUN cd /opt/apitester && mvn clean package | ||
RUN find opt/apitester | ||
|
||
|
||
|
||
|
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