Adding uid and gid for for user and group 89/85089/3 2.1.0
authoredepaul <paul.p.dennehy@est.tech>
Thu, 11 Apr 2019 16:14:52 +0000 (16:14 +0000)
committerPaul Dennehy <paul.p.dennehy@est.tech>
Thu, 11 Apr 2019 16:43:25 +0000 (16:43 +0000)
Change-Id: Iac2bb2dffc2759595387aa5113855a64c162b346
Issue-ID: DMAAP-1137
Signed-off-by: edepaul <paul.p.dennehy@est.tech>
datarouter-node/src/main/resources/docker/Dockerfile
datarouter-prov/src/main/resources/docker/Dockerfile
datarouter-subscriber/src/main/resources/docker/Dockerfile

index d57fbef..b07b3ef 100644 (file)
@@ -33,8 +33,8 @@ WORKDIR /opt
 RUN chmod 0700 startup.sh
 ENTRYPOINT ["sh", "startup.sh"]
 
-RUN addgroup -S onap \
-    && adduser -S datarouter -G onap \
+RUN addgroup -S -g 1001 onap \
+    && adduser -S -u 1000 datarouter -G onap \
     && chown -R datarouter:onap /opt/
 
 USER datarouter
\ No newline at end of file
index fb512a4..115dc7c 100644 (file)
@@ -33,8 +33,8 @@ RUN chmod 0700 startup.sh
 
 ENTRYPOINT ["sh", "startup.sh"]
 
-RUN addgroup -S onap \
-    && adduser -S datarouter -G onap \
+RUN addgroup -S -g 1001 onap \
+    && adduser -S -u 1000 datarouter -G onap \
     && chown -R datarouter:onap /opt/
 
 USER datarouter
index 7892ff7..6c3536c 100644 (file)
@@ -30,8 +30,8 @@ WORKDIR /opt
 RUN chmod 0700 startup.sh
 ENTRYPOINT ["sh", "startup.sh"]
 
-RUN addgroup -S onap \
-    && adduser -S datarouter -G onap \
+RUN addgroup -S -g 1001 onap \
+    && adduser -S -u 1000 datarouter -G onap \
     && chown -R datarouter:onap /opt/
 
 USER datarouter
\ No newline at end of file

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use