Skip to content

Commit

Permalink
chore: remove unused commands in ockam examples
Browse files Browse the repository at this point in the history
  • Loading branch information
metaclips committed Jun 25, 2024
1 parent 2e71aec commit 1c94a1f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ run() {
# Create a security group to allow:
# - TCP egress to the Internet
# - SSH ingress from the local machine
my_ip=$(curl -4 -s https://httpbin.org/ip | jq -r '.origin')
sg_id=$(aws ec2 create-security-group --group-name "${name}-sg" --vpc-id "$vpc_id" --query 'GroupId' \
--description "Allow TCP egress and Postgres ingress")
aws ec2 authorize-security-group-egress --group-id "$sg_id" --cidr 0.0.0.0/0 --protocol tcp --port 0-65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ run() {
# Create a security group to allow:
# - TCP egress to the Internet
# - Gitlab Access from local machine
my_ip=$(curl -4 -s https://httpbin.org/ip | jq -r '.origin')
sg_id=$(aws ec2 create-security-group --group-name "${name}-sg" --vpc-id "$vpc_id" --query 'GroupId' \
--description "Allow TCP egress and gitlab ingress")
aws ec2 authorize-security-group-egress --group-id "$sg_id" --cidr 0.0.0.0/0 --protocol tcp --port 0-65535
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ run() {
aws ec2 authorize-security-group-ingress --group-id "$sg_id" --cidr 10.0.0.0/24 --protocol tcp --port 8086

# Allow SSH from the machine where this script is running, so we can provision instances.
my_ip=$(curl -s https://checkip.amazonaws.com)
aws ec2 authorize-security-group-ingress --group-id "$sg_id" --cidr "0.0.0.0/0" --protocol tcp --port 22

# ----------------------------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
# Read bank_corp/run_ockam.sh and analysis_corp/run_ockam.sh to understand
# how each node is set up.

FROM ghcr.io/build-trust/ockam as builder
ARG OCKAM_VERSION=latest

FROM ghcr.io/build-trust/ockam:${OCKAM_VERSION} as builder

FROM cgr.dev/chainguard/bash
COPY --from=builder /ockam /usr/local/bin/ockam
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ set -ex
export OCKAM_VERSION="$OCKAM_VERSION"
curl --proto '=https' --tlsv1.2 -sSfL https://install.command.ockam.io | bash
source "$HOME/.ockam/env"
ockam --version
# Run `ockam project enroll ...`
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ export OCKAM_VERSION="$OCKAM_VERSION"
curl --proto '=https' --tlsv1.2 -sSfL https://install.command.ockam.io | bash
source "$HOME/.ockam/env"
ockam --version
# Run `ockam project enroll ...`
#
# The `project enroll` command creates a new vault and generates a cryptographic identity with
Expand Down Expand Up @@ -41,8 +39,7 @@ cat << EOF > outlet.yaml
tcp-outlet:
to: "$POSTGRES_ADDRESS:5432"
allow: '(= subject.postgres-inlet "true")'
relay: postgres
relay: postgres
EOF
ockam node create outlet.yaml
Expand Down

0 comments on commit 1c94a1f

Please sign in to comment.