[milter-manager-commit] milter-manager/milter-manager at 104cbfe [docker-for-ci] travis: Run containers by non-root user

Back to archive index

Kenji Okimoto null+****@clear*****
Thu Apr 6 14:00:15 JST 2017


Kenji Okimoto	2017-04-06 14:00:15 +0900 (Thu, 06 Apr 2017)

  New Revision: 104cbfe637c4e70c706d994fc8fc439de5e88535
  https://github.com/milter-manager/milter-manager/commit/104cbfe637c4e70c706d994fc8fc439de5e88535

  Message:
    travis: Run containers by non-root user

  Modified files:
    dockerfiles/Dockerfile-debian-jessie
    dockerfiles/Dockerfile-debian-sid
    dockerfiles/Dockerfile-debian-stretch

  Modified: dockerfiles/Dockerfile-debian-jessie (+5 -2)
===================================================================
--- dockerfiles/Dockerfile-debian-jessie    2017-04-06 13:57:17 +0900 (8f64e54)
+++ dockerfiles/Dockerfile-debian-jessie    2017-04-06 14:00:15 +0900 (32efa87)
@@ -7,7 +7,10 @@ RUN apt-get update && \
       intltool lcov git libtool sudo lsb-release apt-transport-https && \
     curl -L https://raw.github.com/clear-code/cutter/master/data/travis/setup.sh | sh && \
     gem install --no-rdoc --no-ri coveralls-lcov && \
-    gem install --no-rdoc --no-ri pkg-config
+    gem install --no-rdoc --no-ri pkg-config && \
+    useradd -m --user-group --shell /bin/bash milter-manager
 
-WORKDIR /app
+WORKDIR /home/milter-manager/milter-manager
 COPY . .
+RUN chown -R milter-manager:milter-manager .
+USER milter-manager

  Modified: dockerfiles/Dockerfile-debian-sid (+5 -2)
===================================================================
--- dockerfiles/Dockerfile-debian-sid    2017-04-06 13:57:17 +0900 (a08ac11)
+++ dockerfiles/Dockerfile-debian-sid    2017-04-06 14:00:15 +0900 (4976f8e)
@@ -7,7 +7,10 @@ RUN apt-get update && \
       intltool lcov git libtool sudo lsb-release apt-transport-https && \
     curl -L https://raw.github.com/clear-code/cutter/master/data/travis/setup.sh | sh && \
     gem install --no-rdoc --no-ri coveralls-lcov && \
-    gem install --no-rdoc --no-ri pkg-config
+    gem install --no-rdoc --no-ri pkg-config && \
+    useradd -m --user-group --shell /bin/bash milter-manager
 
-WORKDIR /app
+WORKDIR /home/milter-manager/milter-manager
 COPY . .
+RUN chown -R milter-manager:milter-manager .
+USER milter-manager

  Modified: dockerfiles/Dockerfile-debian-stretch (+5 -2)
===================================================================
--- dockerfiles/Dockerfile-debian-stretch    2017-04-06 13:57:17 +0900 (a08ac11)
+++ dockerfiles/Dockerfile-debian-stretch    2017-04-06 14:00:15 +0900 (4976f8e)
@@ -7,7 +7,10 @@ RUN apt-get update && \
       intltool lcov git libtool sudo lsb-release apt-transport-https && \
     curl -L https://raw.github.com/clear-code/cutter/master/data/travis/setup.sh | sh && \
     gem install --no-rdoc --no-ri coveralls-lcov && \
-    gem install --no-rdoc --no-ri pkg-config
+    gem install --no-rdoc --no-ri pkg-config && \
+    useradd -m --user-group --shell /bin/bash milter-manager
 
-WORKDIR /app
+WORKDIR /home/milter-manager/milter-manager
 COPY . .
+RUN chown -R milter-manager:milter-manager .
+USER milter-manager
-------------- next part --------------
An HTML attachment was scrubbed...
下载 



More information about the milter-manager-commit mailing list
Back to archive index