An open API service indexing awesome lists of open source software.

https://github.com/just1689/chui

Declarative containerized chisel for punching holes through networks
https://github.com/just1689/chui

chisel declarative docker golang tcp tunnel

Last synced: about 1 month ago
JSON representation

Declarative containerized chisel for punching holes through networks

Awesome Lists containing this project

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
```bash
# 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
```json
{
"server": "http://chiselserver:port",
"remotes": [
"localhost:8000:api:8000",
"localhost:5432:db:5432"
]
}
```

## Run locally
```bash
# 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
```bash
# 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