Skip to content

Commit 9152b1a

Browse files
committed
updating to use configurable model repo
1 parent 560d3c8 commit 9152b1a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

lib/allora/lib/allora-stack.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,9 @@ 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, 26657, 8000, 8888',
131+
description: 'Allow inbound TCP 9010',
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)');
137134

138135

139136

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ cd node-repo
8787
git checkout $ALLORA_ENV
8888

8989
cp config.cdk.json.template config.json
90-
90+
cd
9191
#wallet config str replace
9292
sed -i "s/_ALLORA_WALLET_ADDRESS_KEY_NAME_/$ALLORA_WALLET_ADDRESS_KEY_NAME/" config.json
9393
sed -i "s/_ALLORA_WALLET_ADDRESS_RESTORE_MNEMONIC_/$ALLORA_WALLET_ADDRESS_RESTORE_MNEMONIC/" config.json
@@ -124,12 +124,16 @@ git clone $MODEL_REPO source
124124
#build node
125125
echo 'Building inner node'
126126
cd source
127-
docker-compose up --build
127+
128+
cp ~/node-repo/config.json config.json
129+
cp .env.example .env
128130

129131

130132
#build main worker
131133
echo 'building main worker'
132134
cd ~/node-repo
135+
chmod +x init.config
136+
./init.config
133137
docker-compose up --build
134138

135139
echo "----------------------------------------------"

0 commit comments

Comments
 (0)