ports

command module
v0.0.0-...-b19803f Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: MIT Imports: 1 Imported by: 0

README

ports

##Usage: To get the next available host ports on localhost docker.

Often docker compose files will be broken down into multiple files for different services. When developing a new service I had to go through multiple files and look for the next available port to use. This CLI application will receive a path and find all docker compose files in that path. It will find all the available ports and print them to stdout.

It can also filter ports based on --port flag. for example:

if you are cloning this repo:

go run main.go grab --directory ${your_directory} --port=8xxx

if you are using the binary:

./ports grab --directory ${your_directory} --port 80xx

above command will return the next set of available ports matching 8xxx pattern ( e.g. 8901)

--port is optional and --directory will default to "."

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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