100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
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.ymlindex 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 dockersudo gpasswd -a ubuntu dockersudo snap install docker+ # Install openremote-cli tool+ sudo apt install python3-pip+ sudo pip3 install -U openremote-cli# Prepare deployment filescd /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.shif [ ${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.shecho a $DOMAINNAME $IDENTITY_NETWORK_HOSTelif [ ${DomainName} ]then- export DOMAINNAME=${DomainName}- export IDENTITY_NETWORK_HOST=$DOMAINNAME+ echo export DOMAINNAME=${DomainName} >> deploy.sh+ echo export IDENTITY_NETWORK_HOST=$DOMAINNAME >> deploy.shecho b $DOMAINNAME $IDENTITY_NETWORK_HOSTelif [ ${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.shecho c $DOMAINNAME $IDENTITY_NETWORK_HOSTelse- 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.shecho d $DOMAINNAME $IDENTITY_NETWORK_HOSTfi- export SETUP_ADMIN_PASSWORD=${OpenRemotePassword}- export [email protected]- 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.shInstanceSecurityGroup:Type: AWS::EC2::SecurityGroupProperties:@@ -140,4 +145,4 @@ Resources:- IpProtocol: icmpFromPort: '8'ToPort: '-1'- CidrIp: 0.0.0.0/0\ No newline at end of file+ CidrIp: 0.0.0.0/0