Skip to content

Commit

Permalink
checkpoint commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmwample committed Sep 21, 2023
1 parent 52c2026 commit a51f911
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
10 changes: 5 additions & 5 deletions cmd/cli/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Gotapdance CLI version
# Conjure Client Test CLI

# Build
After [downloading Golang, TD and dependencies:](../README.md)

```sh
cd ${GOPATH:-~/go}/src/github.com/refraction-networking/gotapdance/cli # works even if GOPATH is not set
cd conjure/cmd/cli # works even if GOPATH is not set
go build -a .
```

Expand All @@ -13,7 +13,7 @@ After [downloading Golang, TD and dependencies:](../README.md)
Simply run

```sh
./cli
./cli -connect-addr="<host:port>"
```

to listen to local connections on default 10500 port.
Expand Down Expand Up @@ -73,10 +73,10 @@ To build the docker environemnt use:

```sh
# run from repo root
docker build -t gotapdance/cli -f cli/cli.dockerfile .
docker build -t conjure/cli -f cmd/cli/cli.dockerfile cmd/cli/
```

The environemnt can then be attached to using a `docker exec` or using telnet
The environment can then be attached to using a `docker exec` or using telnet
in the case of gns3. See the [wiki page](https://docs.gns3.com/docs/emulators/create-a-docker-container-for-gns3)
for local docker image builds in gns3 for more details on setting up local
docker appliances in gns3.
12 changes: 4 additions & 8 deletions cmd/cli/cli.dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
FROM golang:1.20
FROM golang:latest

RUN apt-get update
RUN apt-get install -y -f libzmq3-dev

WORKDIR /go/src/github/refracction-networking/gotapdance
COPY . .
WORKDIR /go/src/github/refracction-networking/conjure
COPY cmd/cli /cli

# RUN go get -d -v ./...
RUN go mod download
RUN go mod tidy
RUN go install ./cli

# no run / entrypoint specified. this containter is meant to be run w/
# gns3 and connected to using terminal or telnet.
RUN go install ./cmd/cli
2 changes: 1 addition & 1 deletion dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (d *Dialer) Dial(network, address string) (net.Conn, error) {
}

// DialContext connects to the address on the named network using the provided context.
// Long deadline is strongly advised, since tapdance will try multiple decoys.
// Long deadline is advised, since conjure may try multiple registration strategies.
//
// The only supported network at this time: "tcp".
// The address has the form "host:port".
Expand Down

0 comments on commit a51f911

Please sign in to comment.