infra/codestorage/hg-ssh
infra/codestorage/hg-ssh/run.sh
Set trust settings to avoid annoying message. Update the hgrc to trust the .hgrc files of everyone in the committers group, because I got tired of seeing the "not trusting file /mounted/repos/blah-blah/.hg/hgrc from untrusted user root, group committers" message every time I pushed.
| 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 |