Skip to content

armgit / core

Public Imported from GitHub
0

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

Time shouldn't move backwards

Christian Bauer4c314d0765a5
diff --git a/README.md b/README.md
index 9b81e7363..936edcacb 100644
--- a/README.md
+++ b/README.md
@@ -16,7 +16,9 @@ You'll need a Docker host to work on this project.
All Docker and Gradle commands should be executed in the project root directory.
-NOTE: For docker volume mapping to work correctly on Windows and OS X ensure that your working directory is located somewhere under your home directory
+NOTE: For Docker volume mapping to work correctly on Windows and OS X ensure that your working directory is located somewhere under your home directory
+
+NOTE: The Docker virtual machine's time will drift when you are using VirtualBox. Until this is [fixed](https://github.com/boot2docker/boot2docker/issues/69), periodically run `docker-machine ssh default 'sudo ntpclient -s -h pool.ntp.org'` to update the virtual machine's clock.
We are using the [Orion Context Broker](https://fiware-orion.readthedocs.org/en/develop/) with a MongoDB backend. For development, this is an instance with a non-persistent data store.
diff --git a/docker-compose-demo.yml b/docker-compose-demo.yml
index cf5bc312d..ac21072a5 100644
--- a/docker-compose-demo.yml
+++ b/docker-compose-demo.yml
@@ -7,6 +7,7 @@ services:
- orion
- keycloak
environment:
+ TZ: "Europe/Zurich"
DEV_MODE: 'false'
IMPORT_SAMPLE_DATA: 'true'
WEBSERVER_LISTEN_HOST: 0.0.0.0
@@ -22,14 +23,19 @@ services:
keycloak:
image: openremote/keycloak:latest
environment:
+ TZ: "Europe/Zurich"
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_LOGLEVEL: DEBUG
mongo:
image: mongo:2.6
command: --smallfiles
+ environment:
+ TZ: "Europe/Zurich"
orion:
image: fiware/orion:0.28
links:
- mongo
command: -dbhost mongo
+ environment:
+ TZ: "Europe/Zurich"
diff --git a/docker-compose.yml b/docker-compose.yml
index f5b96e73b..5d74b5459 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,6 +8,7 @@ services:
volumes:
- ./keycloak/theme:/opt/jboss/keycloak/themes/openremote
environment:
+ TZ: "Europe/Zurich"
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_LOGLEVEL: DEBUG
@@ -16,6 +17,8 @@ services:
mongo:
image: mongo:2.6
command: --smallfiles
+ environment:
+ TZ: "Europe/Zurich"
orion:
image: fiware/orion:0.28
links:
@@ -23,3 +26,5 @@ services:
ports:
- "8082:1026"
command: -dbhost mongo
+ environment:
+ TZ: "Europe/Zurich"