chui

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 8 Imported by: 0

README

chui

A small wrapper around Chisel. The goal of this project is to make it easier to work with chisel in a declarative way.

Generate config file

    # Generate the file from the executable
    chui -g config.json
    # or if you have the project
    go run app.go -g config.json

Modify the config file

    {
      "server": "http://chiselserver:port",
      "remotes": [
        "localhost:8000:api:8000",
        "localhost:5432:db:5432"
      ]
    }

Run locally

    # Run the file from the executable
    chui -c config.json
    # or if you have the project
    go run app.go -c config.json

Run in Docker

    # Make sure you have generated the file
    # chui -g config.json

    # ... and edited also
    # vi config.json

    # Build the declarative container
    docker build -t image:tag --file Dockerfile.declarative .
    docker run -p port:port image:tag

Usage examples

  • Proxy a number of services on another network - in a container cluster for example.
  • Expose a service in one cluster to another cluster.
  • Development

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL