Skip to content

azukiapp/docker-ngrok

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base docker image to run ngrok tunnel in azk

Versions (tags)

- [`latest`](https://github.com/azukiapp/docker-ngrok/blob/master/latest/Dockerfile)

Image content:

  • Ubuntu 14.04
  • ngrok

For more detailed instructions of ngrok.

Usage with azk

Example of using that image with the azk:

/**
 * Documentation: http://docs.azk.io/Azkfile.js
 */
 
// Adds the systems that shape your system
systems({
  "app": {
    export_envs: {
      APP_URL: "http://#{system.name}.#{azk.default_domain}:#{net.port.http}"
    }
  },
  ngrok: {
    // Dependent systems
    depends: [ "app" ],
    image : { docker: "azukiapp/ngrok" },
    scalable: { default: 0,  limit: 1 }, // disable auto start
    wait: {"retry": 20, "timeout": 1000},
    http      : {
      domains: [ "#{manifest.dir}-#{system.name}.#{azk.default_domain}" ],
    },
    ports     : {
      http : "4040"
    },
    envs      : {
      // NGROK_SUBDOMAIN : "#{manifest.dir}",
      // NGROK_AUTH      : "",
    }
  }
});

Note: protocol will be recognized and used based on your APP_URL.

Usage with docker

To create the image azukiapp/ngrok, execute the following command on the ngrok folder:

$ docker build -t azukiapp/ngrok .

To run the image and bind to port 4040:

# exporting as http
$ docker run --rm --name ngrok-run -p 4040:4040 -v "$PWD":/myapp -w /myapp -e "APP_URL=http://app.dev.azk.io:80" azukiapp/ngrok
# exporting as tcp
$ docker run --rm --name ngrok-run -p 4040:4040 -v "$PWD":/myapp -w /myapp -e "APP_URL=tcp://app.dev.azk.io:27015" -e "NGROK_AUTH_TOKEN=12345" azukiapp/ngrok

Note: protocol will be recognized and used based on your APP_URL.

Logs

# with azk
$ azk logs ngrok

# with docker
$ docker logs ngrok-run

License

Azuki Dockerfiles distributed under the Apache License.

About

ngrok Dockerfile for trusted automated Docker builds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published