Skip to content

Commit

Permalink
NAPSSPO-1033 - Install TSSC from source in tssc-base (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
dwinchell authored Sep 30, 2020
1 parent 244ae02 commit fa75aee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tssc-base/Dockerfile.ubi8
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ARG TSSC_USER_NAME=tssc
ARG TSSC_USER_UID=1001
ARG TSSC_USER_GID=0
ARG TSSC_HOME_DIR=/home/tssc
ARG TSSC_SOURCE=git+https://github.com/rhtconsulting/tssc-python-package.git@main

##############################################
# Stage 1 : Retrieive oc cli
Expand All @@ -17,6 +18,7 @@ ARG TSSC_USER_NAME
ARG TSSC_USER_UID
ARG TSSC_USER_GID
ARG TSSC_HOME_DIR
ARG TSSC_SOURCE
COPY --from=origin-cli /usr/bin/oc /usr/bin/oc
COPY --from=origin-cli /usr/bin/kubectl /usr/bin/kubectl

Expand Down Expand Up @@ -52,7 +54,10 @@ RUN INSTALL_PKGS="gettext git rsync tar unzip which zip bzip2 python36 python3-p

# Configure Python
RUN alternatives --set python /usr/bin/python3 && \
python -m pip install --upgrade pip
python -m pip install --no-cache-dir --upgrade pip

# Install TSSC python library
RUN pip install --no-cache-dir --upgrade ${TSSC_SOURCE}

# Configure tssc user
RUN useradd tssc --uid $TSSC_USER_UID --gid $TSSC_USER_GID --home-dir ${TSSC_HOME_DIR} --create-home --shell /sbin/nologin && \
Expand Down

0 comments on commit fa75aee

Please sign in to comment.