Skip to content

Commit

Permalink
NASA-AMMOS/slim#127: Documentation stack and Docker tooling. ...
Browse files Browse the repository at this point in the history
  • Loading branch information
jpl-jengelke committed Dec 14, 2023
1 parent a73898e commit fcfcc64
Show file tree
Hide file tree
Showing 3 changed files with 395 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .ci/Dockerfile.buildDeploy
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
3 changes: 3 additions & 0 deletions CITATION.md
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.
Loading

0 comments on commit fcfcc64

Please sign in to comment.