Skip to content

Commit

Permalink
docs(rust): update tcp-inlet create usages on command examples
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbenavides committed Mar 20, 2024
1 parent 4c933ed commit 7b23c1c
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ ockam project enroll "$ENROLLMENT_TICKET"
# This makes the remote AI API available on all localhost IPs at - 0.0.0.0:3000
ockam node create
ockam policy create --resource tcp-inlet --expression '(= subject.ai-outlet "true")'
ockam tcp-inlet create --from 0.0.0.0:3000 --to ai
ockam tcp-inlet create --from 0.0.0.0:3000 --via ai
EOS
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ ockam project enroll "$ENROLLMENT_TICKET"
# This makes the remote postgres available on all localhost IPs at - 0.0.0.0:3000
ockam node create
ockam policy create --resource tcp-inlet --expression '(= subject.monitoring-api-outlet "true")'
ockam tcp-inlet create --from 0.0.0.0:3000 --to monitoring-api
ockam tcp-inlet create --from 0.0.0.0:3000 --via monitoring-api
EOS
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ ockam project enroll "$ENROLLMENT_TICKET"
# This makes the remote postgres available on all localhost IPs at - 0.0.0.0:15432
ockam node create
ockam policy create --resource tcp-inlet --expression '(= subject.postgres-outlet "true")'
ockam tcp-inlet create --from 0.0.0.0:15432 --to postgres
ockam tcp-inlet create --from 0.0.0.0:15432 --via postgres
EOS
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ ockam project enroll "$ENROLLMENT_TICKET"
# This makes the remote postgres available on all localhost IPs at - 0.0.0.0:15432
ockam node create
ockam policy create --resource tcp-inlet --expression '(= subject.postgres-outlet "true")'
ockam tcp-inlet create --from 0.0.0.0:15432 --to postgres
ockam tcp-inlet create --from 0.0.0.0:15432 --via postgres
EOS
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ockam project enroll "$ENROLLMENT_TICKET"
# This makes the remote postgres available on all localhost IPs at - 0.0.0.0:15432
ockam node create
ockam policy create --resource tcp-inlet --expression '(= subject.postgres-outlet "true")'
until ockam tcp-inlet create --from 0.0.0.0:15432 --to postgres; do sleep 10; done
ockam tcp-inlet create --from 0.0.0.0:15432 --via postgres

# Run the container forever.
tail -f /dev/null
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ockam project enroll /etc/ockam/enrollment/ticket
# This makes the remote postgres available on localhost:15432
ockam node create
ockam policy create --resource tcp-inlet --expression '(= subject.postgres-outlet "true")'
until ockam tcp-inlet create --from 0.0.0.0:15432 --to postgres; do sleep 10; done
ockam tcp-inlet create --from 0.0.0.0:15432 --via postgres

# Run the container forever.
tail -f /dev/null
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# To create a new TCP Outlet to the TCP server, using the default node
$ ockam tcp-outlet create --to 127.0.0.1:5000

# To create a new TCP Outlet at the given address, to the TCP server, with given alias
$ ockam tcp-outlet create --to 127.0.0.1:5000 --alias my-outlet --from payroll-db-outlet
# To create a new TCP Outlet at the given address, to the TCP server
$ ockam tcp-outlet create --to 127.0.0.1:5000 --from payroll-db-outlet

# To create a new TCP Outlet to the TCP server, using a specific node
$ ockam tcp-outlet create --at n1 --to 127.0.0.1:5000
Expand Down

0 comments on commit 7b23c1c

Please sign in to comment.