diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-29 09:46:14 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-29 09:46:14 +0200 |
| commit | 6c78d011f735d14ac45f7eae9ab0d56fd17cc55e (patch) | |
| tree | 022731a2260f9fca3b570f70a0a9c4562356bf5e /Dockerfile | |
| parent | 681718e6e59d7b2e14fd7428daebe15647a12097 (diff) | |
Rename persistence unit to opendc-simulator
Also changes the environment variables of the run-command to reflect the
standard followed in the rest of the OpenDC codebase.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,4 +13,4 @@ USER gradle WORKDIR /simulator/opendc-integration-jpa # Run the application -CMD ["/bin/sh", "-c", "gradle run -Ppersistence.url=$PERSISTENCE_URL -Ppersistence.user=$PERSISTENCE_USER -Ppersistence.password=$PERSISTENCE_PASSWORD"] +CMD ["/bin/sh", "-c", "gradle run -Ppersistence.url=$(echo \"jdbc:mysql://mariadb:3306/\"$MYSQL_DATABASE) -Ppersistence.user=$MYSQL_USER -Ppersistence.password=$MYSQL_PASSWORD"] |
