infra/codestorage/hg-repo-sync
2015-08-17
Child:cc08c8ed2128
infra/codestorage/hg-repo-sync/Dockerfile
First commit. This contains the basic implementation of hg-repo-sync, which is only useful when you want to do a constant two-way sync every few minutes to Google Cloud Storage. It also hardcodes more than it should. But it's running on code.secondbit.org without issue, so it should probably be preserved.
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Dockerfile Mon Aug 17 18:56:19 2015 -0400 1.3 @@ -0,0 +1,27 @@ 1.4 +FROM ubuntu:14.04 1.5 +MAINTAINER Paddy <paddy@secondbit.org> 1.6 + 1.7 +RUN apt-get update && apt-get install -y Mercurial wget unzip 1.8 +RUN adduser --disabled-password --gecos "" -uid 2000 hg 1.9 + 1.10 +RUN mkdir -p /scratch 1.11 +RUN mkdir -p /current 1.12 + 1.13 +VOLUME /current 1.14 +VOLUME /scratch 1.15 + 1.16 +ADD run.sh /etc/run.sh 1.17 +RUN chmod +x /etc/run.sh 1.18 + 1.19 +ADD hgrc /etc/mercurial/hgrc 1.20 +RUN wget https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip && unzip google-cloud-sdk.zip && rm google-cloud-sdk.zip 1.21 + 1.22 +ENV CLOUDSDK_PYTHON_SITEPACKAGES 1 1.23 +RUN google-cloud-sdk/install.sh --usage-reporting=false --path-update=true --bash-completion=false --rc-path=/.bashrc --disable-installation-options 1.24 +RUN google-cloud-sdk/bin/gcloud --quiet components update pkg-go pkg-python pkg-java preview alpha beta app 1.25 +RUN google-cloud-sdk/bin/gcloud --quiet config set component_manager/disable_update_check true 1.26 +RUN mkdir /.ssh 1.27 +ENV PATH /google-cloud-sdk/bin:$PATH 1.28 +ENV HOME / 1.29 + 1.30 +ENTRYPOINT ["/etc/run.sh"]