UNCLASSIFIED

Commit f72ea09c authored by Mark Hermeling's avatar Mark Hermeling
Browse files

Update Dockerfile

parent 4baa5e54
Pipeline #75855 failed with stages
in 18 seconds
......@@ -4,7 +4,7 @@ ARG BASE_TAG=8.2
FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
LABEL name="GrammaTech SAST Server" \
maintainer="jschaffer@grammatech.com" \
maintainer="mhermeling@grammatech.com" \
vendor="GrammaTech" \
version="5.4p0" \
release="1" \
......@@ -20,14 +20,27 @@ ARG CODESONAR_PACKAGE=codesonar-5.4p0.20200911-x86_64-pc-linux.tar.gz
COPY ["${CODESONAR_PACKAGE}", "/opt"]
RUN tar -zxvf /opt/${CODESONAR_PACKAGE} -C /opt
RUN rm -rf /opt/${CODESONAR_PACKAGE}
RUN mkdir /opt/codesonar-hubs
RUN useradd -ms /bin/bash codesonar &&\\
chown -R codesonar:codesonar "/opt/codesonar*"
RUN ln -s /opt/codesonar-5.4p0 /opt/codesonar
RUN useradd -ms /bin/bash codesonar
RUN mkdir /home/codesonar/hub
COPY scripts/* /opt/
RUN chmod +x /opt/codesonar-exec.sh && \
chmod +x /opt/codesonar-health-check.sh
VOLUME [ /home/codesonar ]
HEALTHCHECK --interval=30s --timeout=30s --start-period=180s --retries=3 CMD /opt/codesonar-health-check.sh
#adjust some options
RUN rm /opt/codesonar/UNACCEPTED_LICENSE.txt
RUN touch /opt/codesonar/TELEMETRY_DISABLED
# Sanity check that we didn't forget anything above--this will fail if we did.
RUN /opt/codesonar/codesonar/bin/codesonar activate
EXPOSE 7340
\ No newline at end of file
USER codesonar
WORKDIR /home/codesonar
EXPOSE 7340
CMD /opt/codesonar-exec.sh
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment