GithubHelp home page GithubHelp logo

j / docker-google-cloud-emulators Goto Github PK

View Code? Open in Web Editor NEW

This project forked from niallmccullagh/docker-google-cloud-emulators

0.0 0.0 0.0 5 KB

Google cloud pubsub and datastore emulators hosted in docker

License: The Unlicense

Dockerfile 100.00%

docker-google-cloud-emulators's Introduction

Google Cloud Emulators

Docker Automated build

A docker container that runs the pubsub emulator and the datastore emulator.

Pub / Sub

Running

docker run -t -p 8538:8538 niallmccullagh/docker-google-cloud-emulators /bin/bash -c "gcloud config set project emulator && gcloud beta emulators pubsub start --data-dir /mnt/data/pubsub --host-port 0.0.0.0:8538"

Running with the compose

Using the compose file in the repository the pubsub emulator can be started by running

docker-compose up pubsub

Configured local environment

The local environment must be updated to point to the emulator

export PUBSUB_EMULATOR_HOST=localhost:8590

Persistent Data

To persist data outside of the container mount a volume from the host to /mnt/data/pubsub

For an example see the persistent-pubsub service in the docker-compose file

Datastore

Running

docker run -t -p 8538:8538 niallmccullagh/docker-google-cloud-emulators /bin/bash -c "gcloud config set project emulator && gcloud beta emulators datastore start --data-dir /mnt/data/gcd --host-port 0.0.0.0:8538"

Running with compose

Using the compose file in the repository the datastore emulator can be started by running

docker-compose up datastore

Configured local environment

The local environment must be updated to point to the emulator

export DATASTORE_EMULATOR_HOST=localhost:8432
export DATASTORE_PROJECT_ID=emulator

Persistent Data

To persist data outside of the container mount a volume from the host to /mnt/data/gcd

For an example see the persistent-datastore service in the docker-compose file

docker-google-cloud-emulators's People

Contributors

marcosvidolin avatar niallmccullagh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.