run_tcp_proxy_in_docker

package
v0.81.0-dev-3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "run-tcp-proxy-in-docker <external_port> <internal_port>",
	Short:   "Run slu tcp proxy in Docker",
	Args:    cobra.ExactArgs(2),
	Aliases: []string{"run-proxy"},
	Run: func(c *cobra.Command, args []string) {
		e := args[0]
		i := args[1]
		exec_utils.ExecOut(
			"docker", "run", "-d", "--name", "slu-tcp-proxy-"+e+"-"+i,
			"--network", "host", "sikalabs/slu:v0.60.0",
			"slu", "proxy", "tcp", "-l", ":"+e, "-r", "127.0.0.1:"+i,
		)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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