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

Back to archive index

Kenji Okimoto null+****@clear*****
Thu Jun 15 10:28:45 JST 2017


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

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

  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...
Download 



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