Giter VIP home page Giter VIP logo

holepunch's Introduction

Codacy Badge Codacy Badge CircleCI

Holepunch

This is the code used to run api.holepunch.io
Visit holepunch.io to find out more

Setting Up

The holepunch nomad cluster requires a loopback alias in order to communicate with containers running on the MacOS version of docker.

If you are running on a Mac, you can create this loopback alias at 172.16.123.1 by running task setup_net

If you are running locally, you will need to set the sshendpoint in your .punch.toml file to this address as well.

This step is not necessary for running on Linux - but you will probably need to change the SEA_HOST environment variable to your local IP.

  1. You will need a dockerhub account to run the app.
  2. Create a virtualenv (using pyenv) called "holepunch" based on Python 3.7.0
  3. Install go-task via homebrew
  4. Run task setup_local setup_net
  5. Run the tests docker-compose run web pytest

Common Commands

Run Flask Shell

docker-compose run -e "FLASK_APP=app:create_app('development')" web python -m flask shell

Exec into a container

Most of the containers do not have bash so you'll need to use regular old sh.

docker ps -> note the container id docker exec -it <container_id> /bin/sh

Deploying Holepunch

Contributors and Holepunch Developers

  1. Spin up a pushbutton environment using Grid.
  2. Login to the Pushbutton VPN
  3. Cd into the deploy directory and create a holepunch workspace with the same name as your Pusbutton
  4. Push a release to Docker Hub - for development it will deploy a tag with your branch name. If you're on master, it will create a tag release.
  5. task deploy WORKSPACE=
  • If you are on master it will create new tags incremented by 0.0.1 and release those
  • You can specify a version using the VER variable.

holepunch's People

Contributors

andrewscibek avatar luongthomas avatar stephenprater avatar

Watchers

 avatar  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.