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
Fixed demo installation
Christian Bauerda054a3cef35
diff --git a/README.md b/README.mdindex aeda45588..9661117d7 100644--- a/README.md+++ b/README.md@@ -4,13 +4,29 @@## Getting started with OpenRemote-We are currently working on v3 of the OpenRemote platform. *No installable released versions are available at this time.*+We are currently working on v3 of the OpenRemote platform.++*No installable released versions are available at this time.*If you want to try OpenRemote v2, [read the OpenRemote v2 documentation](https://github.com/openremote/Documentation/wiki).## Contributing to OpenRemote-We work with Java, Groovy, Gradle, Docker, and wide range of APIs and protocol implementations. Clone or checkout this project and send us pull requests. For more information and how to set up a development environment, see the [Developer Guide](https://github.com/openremote/openremote/wiki).+We work with Java, Groovy, Gradle, Docker, and wide range of APIs and protocol implementations. Clone or checkout this project and send us pull requests.++A demo preview can be started with Docker Compose:++```+docker-compose -p openremote \+ -f profile/dependencies/postgresql.yml \+ -f profile/dependencies/keycloak.yml \+ -f profile/manager.yml \+ up+```++Access the manager UI and API on http://192.168.99.100:8080/ with username `admin` and password `CHANGE_ME_ADMIN_PASSWORD`.++For more information and how to set up a development environment, see the [Developer Guide](https://github.com/openremote/openremote/wiki).## Discuss OpenRemotediff --git a/functions.gradle b/functions.gradleindex 9a281da1d..e09107f3b 100644--- a/functions.gradle+++ b/functions.gradle@@ -9,7 +9,7 @@ def resolveProject(String path) {* Prefix path with ":openremote" if this project is running as a subproject.*/def resolveTask(String path) {- task(findProject(":openremote") != null ? ":openremote" + path : path)+ tasks.getByPath(findProject(":openremote") != null ? ":openremote" + path : path)}ext {diff --git a/manager/server/build.gradle b/manager/server/build.gradleindex 9c7f505eb..86058fec4 100644--- a/manager/server/build.gradle+++ b/manager/server/build.gradle@@ -1,7 +1,7 @@apply plugin: "java"apply plugin: "application"-mainClassName = "org.openremote.manager.server.Server"+mainClassName = "org.openremote.manager.server.Main"dependencies {diff --git a/profile/dependencies/keycloak.yml b/profile/dependencies/keycloak.ymlindex f00225964..268f669e2 100644--- a/profile/dependencies/keycloak.yml+++ b/profile/dependencies/keycloak.yml@@ -5,15 +5,21 @@ version: '2'services:keycloak:- build:- context: ../../keycloak+ image: openremote/keycloak:latest+ links:+ - postgresqlenvironment:TZ: "Europe/Zurich"++ KEYCLOAK_LOGLEVEL: INFO+KEYCLOAK_USER: admin+ # Change the admin root password if you make this application publicly accessible! Note+ # that imported demo data uses the admin account and also creates a 'test' user with+ # password 'test'. This should not be imported in production.KEYCLOAK_PASSWORD: CHANGE_ME_ADMIN_PASSWORD- KEYCLOAK_LOGLEVEL: INFO++ # Configure how Keycloak connects to the databasePOSTGRES_DATABASE: openremotePOSTGRES_USER: openremotePOSTGRES_PASSWORD: CHANGE_ME_DB_USER_PASSWORD- links:- - postgresql\ No newline at end of filediff --git a/profile/dependencies/postgresql.yml b/profile/dependencies/postgresql.ymlindex f6b8cef48..a57f5c5f2 100644--- a/profile/dependencies/postgresql.yml+++ b/profile/dependencies/postgresql.yml@@ -5,13 +5,15 @@ version: '2'services:postgresql:- build:- context: ../../postgresql+ image: openremote/postgresql:latestenvironment:TZ: "Europe/Zurich"- # This is the database superuser+ # This is the DBMS superuser and password. You should change this, especially if you+ # expose the DBMS port and make it accessible externally!+ POSTGRES_USER: postgresPOSTGRES_PASSWORD: CHANGE_ME_DB_SUPERUSER_PASSWORD- # Create default database when started (see scripts)++ # The database and service connection user, passwords should be changed in production!POSTGRES_DB: openremoteOPENREMOTE_USERNAME: openremoteOPENREMOTE_PASSWORD: CHANGE_ME_DB_USER_PASSWORDdiff --git a/profile/TODO-demo.yml b/profile/manager.ymlsimilarity index 53%rename from profile/TODO-demo.ymlrename to profile/manager.ymlindex a9975fdbc..ea0770661 100644--- a/profile/TODO-demo.yml+++ b/profile/manager.yml@@ -20,9 +20,8 @@ services:# This service needs access to other services on the Docker network.links:- - postgres+ - postgresql- keycloak- - controllerenvironment:@@ -42,13 +41,6 @@ services:# demo data.IMPORT_DEMO_DATA: 'true'- # The demo data contains an Agent configuration, this Agent uses the OpenRemote 2.x- # Controller Connector. These are the settings for the Agent, how it can reach the- # example/demo Controller. You should set it to the same value as- # IDENTITY_NETWORK_HOST if you are exposting the controller on that host.- DEMO_CONTROLLER_HOST: controller- DEMO_CONTROLLER_PORT: 8688-# The service-internal interface and port to listen on. This should not be changed.WEBSERVER_LISTEN_HOST: 0.0.0.0WEBSERVER_LISTEN_PORT: 8080@@ -64,11 +56,11 @@ services:IDENTITY_NETWORK_WEBSERVER_PORT: 8080# The service-internal JDBC connection URL for the database service.- DATABASE_CONNECTION_URL: jdbc:postgresql://postgres/openremote+ DATABASE_CONNECTION_URL: jdbc:postgresql://postgresql/openremote# The database connection settings, passwords should be changed in production!DATABASE_USERNAME: openremote- DATABASE_PASSWORD: secret+ DATABASE_PASSWORD: CHANGE_ME_DB_USER_PASSWORDDATABASE_MIN_POOL_SIZE: 5DATABASE_MAX_POOL_SIZE: 20DATABASE_CONNECTION_TIMEOUT_SECONDS: 300@@ -77,57 +69,7 @@ services:KEYCLOAK_HOST: keycloakKEYCLOAK_PORT: 8080- # The identity provider, we use OAuth2 and bearer tokens for all API access.- keycloak:- image: openremote/keycloak:latest- links:- - postgres:postgresql- environment:- TZ: "Europe/Zurich"- KEYCLOAK_USER: admin-- # Change the admin root password if you make this application publicly accessible! Note- # that imported demo data also creates a 'test' user with password 'test'. This should- # not be imported in production.- KEYCLOAK_PASSWORD: admin-- # Configure how Keycloak connects to the database- POSTGRES_DATABASE: openremote- POSTGRES_USER: openremote- POSTGRES_PASSWORD: secret-- # DBMS- postgres:- image: openremote/postgres:latest- environment:- TZ: "Europe/Zurich"- # This is the DBMS superuser and password. You should change this, especially if you- # expose the DBMS port and make it accessible externally!- POSTGRES_USER: postgres- POSTGRES_PASSWORD: secret-- # The database and service connection user, passwords should be changed in production!- POSTGRES_DB: openremote- OPENREMOTE_USERNAME: openremote- OPENREMOTE_PASSWORD: secret-- # The demo controller (device gateway)- controller:- image: openremote/demo-controller:latest- environment:- TZ: "Europe/Zurich"- BEEHIVE_REMOTE_SERVICE_URI: "urn:disabled"- # We expose the demo controller on the host network, so users can sync it with the- # OpenRemote Designer and access the Web Console. Do not expose this publicly in- # production (no credentials have been set)!- ports:- - "8688:8688"-- # The milestone 1 demo designer, which runs in the "RULES" tab as an iframe. This is- # alpha quality code and should not be enabled in production!- m1designer:- image: openremote/m1designer:latest- environment:- TZ: "Europe/Zurich"- ports:- - "8084:8080"+ # Configure logging of the container, see manager/server/conf/logging.properties+ logging:+ options:+ max-size: "10m"