infra/codestorage/hg-ssh

Paddy 2015-10-14 Parent:2f4a2a20ad6d Child:bf7b66df555f

3:bc0c83d5015d Go to Latest

infra/codestorage/hg-ssh/run.sh

Use the relative DNS address. Use the relative DNS address when digging for web frontends, which now works thanks to +search on dig. This allows us to transfer between namespaces without needing to change anything. Also makes this, in general, more flexible.

History
paddy@1 1 #!/bin/bash
paddy@1 2
paddy@1 3 # We need to reexecute these commands
paddy@1 4 # because Kubernetes doesn't use the
paddy@1 5 # VOLUME commands in the Dockerfiles
paddy@1 6 # when using volumes. So this makes
paddy@1 7 # things work on Kubernetes, but the
paddy@1 8 # Dockerfile makes things work when
paddy@1 9 # running locally.
paddy@1 10 mkdir -p /mounted/repos
paddy@1 11 chgrp -R committers /mounted
paddy@1 12 chmod -R 0770 /mounted
paddy@1 13
paddy@1 14 /bin/bash /usr/local/bin/helpers/pull.sh
paddy@1 15 /bin/bash /usr/local/bin/helpers/pullkeys.sh
paddy@1 16 /usr/sbin/sshd -D