File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -158,4 +158,4 @@ jobs:
158
158
- name : Upload Trivy scan results to GitHub Security tab
159
159
uses :
github/codeql-action/[email protected]
160
160
with :
161
- sarif_file : ' trivy-image-results.sarif'
161
+ sarif_file : ' trivy-image-results.sarif'
Original file line number Diff line number Diff line change @@ -50,6 +50,15 @@ COPY atlas-hub/pre-conf/atlas-auth/ /opt/apache-atlas/conf/
50
50
RUN mkdir /opt/apache-atlas/libext
51
51
RUN curl https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.6.2/jolokia-jvm-1.6.2-agent.jar -o /opt/apache-atlas/libext/jolokia-jvm-agent.jar
52
52
53
+ # Create a non-root user for running Atlas
54
+ RUN groupadd -r atlas && useradd -r -g atlas -d /opt/apache-atlas -s /bin/bash atlas
55
+
56
+ # Set ownership of the atlas directory to the atlas user
57
+ RUN chown -R atlas:atlas /opt/apache-atlas
58
+
59
+ # Switch to the non-root user
60
+ USER atlas
61
+
53
62
RUN cd /opt/apache-atlas/bin \
54
63
&& ./atlas_start.py -setup || true
55
64
You can’t perform that action at this time.
0 commit comments