Skip to content

Commit 560d3c8

Browse files
committed
using docker-compose for both inner and outer
1 parent fc794b3 commit 560d3c8

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

lib/allora/lib/allora-stack.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,12 @@ export class AlloraStack extends cdk.Stack {
128128
const securityGroup = new ec2.SecurityGroup(this, `${resourceNamePrefix}SecurityGroup`, {
129129
vpc,
130130
allowAllOutbound: true,
131-
description: 'Allow inbound TCP 9010',
131+
description: 'Allow inbound TCP 9010, 26657, 8000, 8888',
132132
});
133133
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(9010), 'Allow inbound TCP 9010');
134+
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(26657), 'Allow inbound TCP 26657 (wallet rpc)');
135+
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8000), 'Allow inbound TCP 8000 (inference)');
136+
securityGroup.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8888), 'Allow inbound TCP 8888 (reputer)');
134137

135138

136139

lib/allora/lib/assets/user-data/node.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,16 @@ echo $MODEL_REPO
120120
cd ~/node-repo/adapter/api
121121
rm -rf source
122122
git clone $MODEL_REPO source
123-
cd ~/node-repo
124123

124+
#build node
125+
echo 'Building inner node'
126+
cd source
127+
docker-compose up --build
128+
129+
130+
#build main worker
131+
echo 'building main worker'
132+
cd ~/node-repo
125133
docker-compose up --build
126134

127135
echo "----------------------------------------------"

0 commit comments

Comments
 (0)