Giter Club home page Giter Club logo

getsandbox's Introduction

Dockerized Sandbox Runtime

This is a Dockerized version of the Sandbox runtime suitable for local testing. For more information on Sandbox, please visit the website at [https://getsandbox.com/].

RUNNING

The Sandbox server will start on port 8080 using the default main.js Sandbox API definition.

docker run --name sandbox \
           -p 8080:8080 \
           deardooley/getsandbox

You can access the api by directing your browser to http://<docker_host>/test.

DEVELOPMENT

In order to publish your own definition, mount your own definition file in the /sandbox directory.

The following command will start a sandbox container and serve the example/main.js mock api definition.

docker run --name sandbox \
           -p 8080:8080 \
           -v $(pwd)/example:/sandbox \
           deardooley/getsandbox

Note: To include external dependencies into your test suite, just include them in the mounted directory and reference them as relative paths to the /sandbox directory.

MICROSERVICE ORCHESTRATION

To maintain logical separation of your microservices yet, keep a logical cohesion to your development space, use a dynamic proxy to expose each API behind a single URL structure.

proxy:
  image: jwilder/nginx-proxy
  ports:
    - "80:80"
    - "443:443"
  volumes:
    - /var/run/docker.sock:/tmp/docker.sock:ro

users:
  image: deardooley/getsandbox
  environment:
    - "VIRTUAL_HOST=users.example.com"
  volumes:
    - ./example:/sandbox

test:
  image: deardooley/getsandbox
  environment:
    - "VIRTUAL_HOST=test.example.com"

getsandbox's People

Contributors

deardooley avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

getsandbox's Issues

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.