[ARVADOS] updated: 7671ee342c26503984616eb6a864b44070b8f6d9

git at public.curoverse.com git at public.curoverse.com
Wed Aug 12 16:19:18 EDT 2015


Summary of changes:
 sdk/pam/Dockerfile | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

       via  7671ee342c26503984616eb6a864b44070b8f6d9 (commit)
      from  c249e92657d76221cf3977145a8dfbd79e8f6d9a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 7671ee342c26503984616eb6a864b44070b8f6d9
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed Aug 12 15:59:37 2015 -0400

    6934: Fix Dockerfile instructions. Use default test port. Use arvados/foo tag convention.

diff --git a/sdk/pam/Dockerfile b/sdk/pam/Dockerfile
index 76b08b9..24b50ab 100644
--- a/sdk/pam/Dockerfile
+++ b/sdk/pam/Dockerfile
@@ -1,10 +1,23 @@
+# These tests assume you have a real API server running on the docker host.
+#
+# Build the test container:
+#   First, replace 3000 below with your api server's port number if necessary.
+#   host$ python setup.py sdist rotate --keep=1 --match .tar.gz
+#   host$ docker build --tag=arvados/pam_test .
+#
+# Automated integration test:
+#   host$ docker run -it --add-host zzzzz.arvadosapi.com:"$(hostname -I |awk '{print $1}')" arvados/pam_test
+# You should see "=== OK ===", followed by a Perl stack trace due to a
+# yet-unidentified pam_python.so bug.
+#
 # Manual integration test:
-# 0. python setup.py sdist rotate --keep=1 --match .tar.gz
-# 1. replace 53015 below with your api server's port number
-# 2. docker build -name arvados:pam_test .
-# 3. docker run -it --add-host zzzzz.arvadosapi.com:"$(hostname -I |awk '{print $1}')" arvados:pam_test
-# 4. container# useradd testusername
-# 5. container# login                  # enter username and token
+#   host$ docker run -it --add-host zzzzz.arvadosapi.com:"$(hostname -I |awk '{print $1}')" arvados/pam_test bash -c 'rsyslogd & tail -F /var/log/auth.log & sleep 1 & bash'
+#   container# login
+#   login: active
+#   Arvados API token: 3kg6k6lzmp9kj5cpkcoxie963cmvjahbt2fod9zru30k1jqdmi
+# You should now be logged in to the "active" shell account in the
+# container. You should also see arvados_pam log entries in
+# /var/log/auth.log (and in your terminal, thanks to "tail -F").
 
 FROM debian:wheezy
 RUN apt-get update
@@ -22,7 +35,7 @@ ADD dist /dist
 RUN pip install /dist/arvados-pam-*.tar.gz
 
 # Configure and enable the module (hopefully vendor packages will offer a neater way)
-RUN perl -pi -e 's{api.example}{zzzzz.arvadosapi.com:53015}; s{shell\.example}{testvm2.shell insecure};' /usr/share/pam-configs/arvados
+RUN perl -pi -e 's{api.example}{zzzzz.arvadosapi.com:3000}; s{shell\.example}{testvm2.shell insecure};' /usr/share/pam-configs/arvados
 RUN DEBIAN_FRONTEND=noninteractive pam-auth-update arvados --remove unix
 
 # Add a user account matching the fixture

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list