| # Syndicate Metadata Server |
| # See also https://github.com/syndicate-storage/syndicate-docker |
| MAINTAINER Zack Williams <zdw@cs.arizona.edu> |
| ENV APT_KEY butler_opencloud_cs_arizona_edu_pub.gpg |
| ENV GAE_SDK google_appengine_1.9.35.zip |
| # Prep apt to be able to download over https |
| RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --force-yes\ |
| # copy over and trust https cert |
| COPY butler.crt /usr/local/share/ca-certificates |
| RUN update-ca-certificates |
| RUN apt-key add /tmp/$APT_KEY |
| RUN echo "deb https://butler.opencloud.cs.arizona.edu/repos/release/syndicate syndicate main" > /etc/apt/sources.list.d/butler.list |
| RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --force-yes\ |
| RUN groupadd -r syndicate && useradd -m -r -g syndicate syndicate |
| RUN wget -nv https://storage.googleapis.com/appengine-sdks/featured/$GAE_SDK |
| # Create a storage location |
| RUN mkdir $HOME/datastore |
| CMD $HOME/google_appengine/dev_appserver.py --admin_host=0.0.0.0 --host=0.0.0.0 --storage_path=$HOME/datastore --skip_sdk_update_check=true /usr/src/syndicate/ms |