Public Repository

Last pushed: a year ago
Short Description
A python/java container that runs the gcloud datastore emulator development purposes.
Full Description
FROM java:7-jre

RUN apt-get update
RUN apt-get install -y python

ENV GCLOUD_OBJ=google-cloud-sdk-100.0.0-linux-x86_64.tar.gz
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/$GCLOUD_OBJ
RUN tar -xf $GCLOUD_OBJ -C /usr/local/
ENV PATH=/usr/local/google-cloud-sdk/bin:$PATH
RUN gcloud components install beta gcd-emulator

RUN mkdir -p /mnt/data/gcd
WORKDIR /mnt/data/gcd
ENV PORT=8080
ENV CONSISTENCY=0.9

CMD gcloud config set project $PROJ_ID; gcloud beta emulators datastore start --consistency=0.9 --data-dir /mnt/data/gcd --host-port 0.0.0.0:$PORT
Docker Pull Command
Owner
vantagesports

Comments (0)