UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
G
GrammaTech
CodeSonar
codesonar-hub
Commits
f72ea09c
Commit
f72ea09c
authored
Nov 14, 2020
by
Mark Hermeling
Browse files
Update Dockerfile
parent
4baa5e54
Pipeline
#75855
failed with stages
in 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
7 deletions
+20
-7
Dockerfile
Dockerfile
+20
-7
No files found.
Dockerfile
View file @
f72ea09c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment