-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NASA-AMMOS/slim#127: Documentation stack and Docker tooling. ...
- Loading branch information
1 parent
a73898e
commit fcfcc64
Showing
3 changed files
with
395 additions
and
0 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,30 @@ | ||
# docker image rm slim:mavenbuilddeploy ; docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --network=host --tag "slim:mavenbuilddeploy" --force-rm --no-cache --file ".ci/Dockerfile.buildDeploy" . | ||
# docker run --rm -it -v ${PWD}:${PWD} -v ${HOME}/.m2:$PWD/.m2 -v ${HOME}/.m2:/home/jenkins/.m2 -w ${PWD} --user "${UID_GID}" slim:mavenbuilddeploy | ||
FROM maven:3.6.3-openjdk-11 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG GID=500 | ||
ARG UID=500 | ||
ARG USR=jenkins | ||
ARG WORKSPACE="/home/${USR}" | ||
|
||
ENV CONTAINERIZED="true" | ||
ENV HOME="${WORKSPACE}" | ||
ENV PATH="${PATH}:." | ||
|
||
# https://issues.jenkins-ci.org/browse/JENKINS-47026 | ||
RUN { getent group ${GID} || groupadd -f -g ${GID} ${USR} ; } && \ | ||
{ getent passwd ${UID} || useradd -u ${UID} -s /bin/sh -d ${HOME} -g ${GID} ${USR} ; } | ||
|
||
# basic user environment -- includes jq, python and testrail reporter | ||
RUN mkdir -p ${HOME} && chmod 777 ${HOME} && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
jq \ | ||
python3-wheel \ | ||
python3-dev \ | ||
python3-setuptools \ | ||
python3-pip && \ | ||
python3 -m pip install behave-testrail-reporter>=0.4.0 | ||
|
||
ENTRYPOINT /bin/bash |
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,3 @@ | ||
# Citation | ||
|
||
If you use any of these algorithms in your work, please directly cite this repository. |
Oops, something went wrong.