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
Demo with keycloak on amr64
Michal Rutka07c3fb6b9402
diff --git a/gitlab-ci/aws-cloudformation.template.arm64.yml b/gitlab-ci/aws-cloudformation.template.arm64.ymlindex 7c15e1e59..c38adabaa 100644--- a/gitlab-ci/aws-cloudformation.template.arm64.yml+++ b/gitlab-ci/aws-cloudformation.template.arm64.yml@@ -101,7 +101,7 @@ Resources:# Prepare deployment filescd /home/ubuntu # we need this because on arm docker-compose cannot read /wget -nc https://github.com/openremote/openremote/raw/master/profile/deploy-no-build.yml- wget -nc https://github.com/openremote/openremote/raw/master/profile/demo-basic-no-build.yml+ wget -nc https://github.com/openremote/openremote/raw/master/profile/demo-no-build.ymlif [ ${HostName} ] && [ ${DomainName} ]thenecho export DOMAINNAME=${HostName}.${DomainName} >> deploy.sh@@ -125,7 +125,7 @@ Resources:echo 'docker-compose -f demo-basic-no-build.yml -p openremote up -d' >> deploy.shecho sleep 10 >> deploy.sh # give time to fetch CERT from letsencryptecho 'docker-compose -f demo-basic-no-build.yml -p openremote down' >> deploy.sh- echo or deploy -v >> deploy.sh+ echo openremote-cli deploy -v >> deploy.shchmod +x deploy.shchown --recursive 1000:1000 *./deploy.shdiff --git a/profile/demo-no-build.yml b/profile/demo-no-build.ymlnew file mode 100644index 000000000..9e11903c1--- /dev/null+++ b/profile/demo-no-build.yml@@ -0,0 +1,112 @@+# OpenRemote v3+#+# By default running this profile installs the stack on https://localhost using a+# self-signed SSL certificate, with username 'admin' and password 'secret'.+#+# Install Docker Community edition (https://docker.com/) on Windows, macOS, or Linux.+#+# Start a demo stack in the project root directory with:+#+# docker-compose up+#+# For full documentation, see deploy.yml+#+# Steps to create a permanent installation:+#+# 1. DO NOT FORGET TO CHANGE SETUP_ADMIN_PASSWORD!+#+# 2. Consider setting a custom DOMAINNAME, LE_EMAIL, and IDENTITY_NETWORK_HOST, see deploy.yml+#+# 3. Understand how bind mounts and volume mappings work, see below and read:+# https://docs.docker.com/engine/admin/volumes/bind-mounts/+# https://docs.docker.com/engine/admin/volumes/volumes/#choose-the--v-or-mount-flag+# Survival guide: docker volume ls|rm|prune+#+# 4. Execute once:+#+# SETUP_WIPE_CLEAN_INSTALL=true \+# SETUP_ADMIN_PASSWORD=secret \+# docker-compose up+#+# This creates the initial database and optionally imports some examples. Inspect the+# running installation and ensure it's working. You should now stop the stack and remove+# all containers. It is important that you recreate the containers and start again WITHOUT+# the SETUP_WIPE_CLEAN_INSTALL setting! Passwords can be changed in the application.+#+# Database schemas will be upgraded to new versions of the services automatically, you do+# not have to wipe all data to install a new version of OpenRemote.+#+# Your extension JAR files should be in the deployment/manager/extensions/ directory.+#+version: '2.4'++# If you enable volume mappings in services, you need this. Otherwise, remove the volumes+volumes:+ proxy-data:+ deployment-data:+ postgresql-data:++services:++ # This service will only populate an empty volume on startup and then exit.+ # If the volume already contains data, it exits immediately.+ deployment:+ image: openremote/deployment:${DATE_TAG:-latest}+ volumes:+ - deployment-data:/deployment++ # This configuration does not store SSL certificate data and allow changes to the+ # proxy configuration, it is only configured for deployment on localhost. You can+ # map a Docker volume or host directory to access/store proxy configuration files+ # and SSL certificates.+ proxy:+ extends:+ file: deploy-no-build.yml+ service: proxy+ depends_on:+ manager:+ condition: service_healthy+ volumes:+ - proxy-data:/deployment+ # Override the haproxy.cfg with custom file+ # -${MY_PROXY_CONFIG_FILE}:/etc/haproxy/haproxy.cfg+ environment:+ DOMAINNAME: demo.openremote.io++ # This configuration uses the manager's deployment-specific data such as map tiles,+ # console application static resources (HTML, JS, CSS), extensions, and other+ # configuration files which were baked into the managers image.+ manager:+ extends:+ file: deploy-no-build.yml+ service: manager+ depends_on:+ keycloak:+ condition: service_healthy+ volumes:+ - deployment-data:/deployment+ - /deployment.local/manager:/deployment.local+ environment:+ MAP_TILES_PATH: '/deployment.local/map/mapdata.mbtiles'+ IDENTITY_NETWORK_HOST: demo.openremote.io+ FIREBASE_CONFIG_FILE: '/fcm.json'++ keycloak:+ extends:+ file: deploy-no-build.yml+ service: keycloak+ depends_on:+ postgresql:+ condition: service_healthy+ volumes:+ - deployment-data:/deployment++ # This configuration stores postgresql data in a Docker volume. You manage this volume+ # independently from your stack with with 'docker volume ls', 'docker volume rm', etc.+ # Alternatively, you can store postgresql data in a directory on your host.+ postgresql:+ extends:+ file: deploy-no-build.yml+ service: postgresql+ volumes:+ - postgresql-data:/var/lib/postgresql/datadiff --git a/profile/deploy-no-build.yml b/profile/deploy-no-build.ymlindex 5d32e6857..33241740a 100644--- a/profile/deploy-no-build.yml+++ b/profile/deploy-no-build.yml@@ -106,10 +106,10 @@ services:# SETUP_WIPE_CLEAN_INSTALL: # Allow override on CLI# Configure SMTP smart host, to send password reset emails etc.- #SETUP_EMAIL_HOST: smtp-host.demo.tld- #SETUP_EMAIL_USER: 'smtp-user'- #SETUP_EMAIL_PASSWORD: 'smtp-password'- #SETUP_EMAIL_PORT: 25+ SETUP_EMAIL_HOST: ${SETUP_EMAIL_HOST:-smtp-host.demo.tld}+ SETUP_EMAIL_USER: ${SETUP_EMAIL_USER:-smtp-user}+ SETUP_EMAIL_PASSWORD: ${SETUP_EMAIL_PASSWORD:-smtp-password}+ SETUP_EMAIL_PORT: ${SETUP_EMAIL_PORT:-25}#SETUP_EMAIL_TLS: 'true'#SETUP_EMAIL_FROM_KEYCLOAK: '[email protected]'#SETUP_EMAIL_FROM_DEFAULT: '[email protected]'