Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Update aws-cloudformation.template.arm64.yml

Michał Rutka1d4d1229044c
diff --git a/gitlab-ci/aws-cloudformation.template.arm64.yml b/gitlab-ci/aws-cloudformation.template.arm64.yml
index 8ac3587cd..8206c77f3 100644
--- a/gitlab-ci/aws-cloudformation.template.arm64.yml
+++ b/gitlab-ci/aws-cloudformation.template.arm64.yml
@@ -93,33 +93,38 @@ Resources:
sudo groupadd docker
sudo gpasswd -a ubuntu docker
sudo snap install docker
+ # Install openremote-cli tool
+ sudo apt install python3-pip
+ sudo pip3 install -U openremote-cli
# Prepare deployment files
cd /home/ubuntu # we need this because on arm docker-compose cannot read /
- wget https://github.com/openremote/openremote/raw/master/profile/deploy-no-build.yml
- wget https://github.com/openremote/openremote/raw/master/profile/demo-basic-no-build.yml
+ echo wget https://github.com/openremote/openremote/raw/master/profile/deploy-no-build.yml > deploy.sh
+ echo wget https://github.com/openremote/openremote/raw/master/profile/demo-basic-no-build.yml >> deploy.sh
if [ ${HostName} ] && [ ${DomainName} ]
then
- export DOMAINNAME=${HostName}.${DomainName}
- export IDENTITY_NETWORK_HOST=$DOMAINNAME
+ echo export DOMAINNAME=${HostName}.${DomainName} >> deploy.sh
+ echo export IDENTITY_NETWORK_HOST=$DOMAINNAME >> deploy.sh
echo a $DOMAINNAME $IDENTITY_NETWORK_HOST
elif [ ${DomainName} ]
then
- export DOMAINNAME=${DomainName}
- export IDENTITY_NETWORK_HOST=$DOMAINNAME
+ echo export DOMAINNAME=${DomainName} >> deploy.sh
+ echo export IDENTITY_NETWORK_HOST=$DOMAINNAME >> deploy.sh
echo b $DOMAINNAME $IDENTITY_NETWORK_HOST
elif [ ${HostName} ]
then
- export DOMAINNAME=${HostName}
- export IDENTITY_NETWORK_HOST=$(curl http://169.254.169.254/latest/meta-data/public-ipv4)
+ echo export DOMAINNAME=${HostName} >> deploy.sh
+ echo export IDENTITY_NETWORK_HOST=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) >> deploy.sh
echo c $DOMAINNAME $IDENTITY_NETWORK_HOST
else
- export DOMAINNAME=localhost
- export IDENTITY_NETWORK_HOST=$(curl http://169.254.169.254/latest/meta-data/public-ipv4)
+ echo export DOMAINNAME=localhost >> deploy.sh
+ echo export IDENTITY_NETWORK_HOST=$(curl http://169.254.169.254/latest/meta-data/public-ipv4) >> deploy.sh
echo d $DOMAINNAME $IDENTITY_NETWORK_HOST
fi
- export SETUP_ADMIN_PASSWORD=${OpenRemotePassword}
- docker-compose -f demo-basic-no-build.yml -p openremote up -d
+ echo export SETUP_ADMIN_PASSWORD=${OpenRemotePassword} >> deploy.sh
+ echo export [email protected] >> deploy.sh
+ echo docker-compose -f demo-basic-no-build.yml -p openremote up -d >> deploy.sh
+ chmod +x deploy.sh
+ ./deploy.sh
InstanceSecurityGroup:
Type: AWS::EC2::SecurityGroup
Properties:
@@ -140,4 +145,4 @@ Resources:
- IpProtocol: icmp
FromPort: '8'
ToPort: '-1'
- CidrIp: 0.0.0.0/0
\ No newline at end of file
+ CidrIp: 0.0.0.0/0