directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r1770333 - in /directory/buildtools/docker/studio-build: Dockerfile entrypoint.sh krb5.conf
Date Fri, 18 Nov 2016 08:44:52 GMT
Author: seelmann
Date: Fri Nov 18 08:44:51 2016
New Revision: 1770333

URL: http://svn.apache.org/viewvc?rev=1770333&view=rev
Log:
Add kerberos client and config to obtain TGT

Modified:
    directory/buildtools/docker/studio-build/Dockerfile
    directory/buildtools/docker/studio-build/entrypoint.sh
    directory/buildtools/docker/studio-build/krb5.conf

Modified: directory/buildtools/docker/studio-build/Dockerfile
URL: http://svn.apache.org/viewvc/directory/buildtools/docker/studio-build/Dockerfile?rev=1770333&r1=1770332&r2=1770333&view=diff
==============================================================================
--- directory/buildtools/docker/studio-build/Dockerfile (original)
+++ directory/buildtools/docker/studio-build/Dockerfile Fri Nov 18 08:44:51 2016
@@ -19,8 +19,10 @@
 
 FROM maven
 
+ENV DEBIAN_FRONTEND=noninteractive
 RUN apt-get update
 RUN apt-get install -y --no-install-recommends xvfb
+RUN apt-get install -y --no-install-recommends krb5-config krb5-user
 
 RUN mkdir /home/studio && chmod 777 /home/studio
 WORKDIR /home/studio
@@ -33,6 +35,9 @@ RUN chmod 755 /usr/local/bin/mvn
 
 ADD krb5.conf /etc/
 
+# Make /etc/passwd writeable to be able to inject username
+RUN chmod 666 /etc/passwd
+
 ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
 CMD "/bin/bash"
 

Modified: directory/buildtools/docker/studio-build/entrypoint.sh
URL: http://svn.apache.org/viewvc/directory/buildtools/docker/studio-build/entrypoint.sh?rev=1770333&r1=1770332&r2=1770333&view=diff
==============================================================================
--- directory/buildtools/docker/studio-build/entrypoint.sh (original)
+++ directory/buildtools/docker/studio-build/entrypoint.sh Fri Nov 18 08:44:51 2016
@@ -4,6 +4,7 @@ set -e
 export DISPLAY=:99
 Xvfb :99 -screen 0 1024x768x16 &
 
-cd $HOME/src
+echo "hnelson:x:$(id -u):$(id -g)::/home/studio:/bin/bash" >> /etc/passwd
+
 exec "$@"
 

Modified: directory/buildtools/docker/studio-build/krb5.conf
URL: http://svn.apache.org/viewvc/directory/buildtools/docker/studio-build/krb5.conf?rev=1770333&r1=1770332&r2=1770333&view=diff
==============================================================================
--- directory/buildtools/docker/studio-build/krb5.conf (original)
+++ directory/buildtools/docker/studio-build/krb5.conf Fri Nov 18 08:44:51 2016
@@ -1,3 +1,8 @@
 [libdefaults]
     default_realm = EXAMPLE.COM
 
+[realms]
+    EXAMPLE.COM = {
+        kdc = localhost:60088
+    }
+



Mime
View raw message