-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified docker usage. Added docker-compose upgrade to circle ci. F…
…ixed eventuate-tram#25, eventuate-tram#26.
- Loading branch information
Showing
20 changed files
with
94 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#! /bin/bash -e | ||
|
||
docker-compose version | ||
docker version | ||
curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` > ~/docker-compose | ||
chmod +x ~/docker-compose | ||
sudo mv ~/docker-compose /usr/local/bin/docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,6 @@ set -e | |
|
||
export DATABASE=postgres | ||
|
||
export SPRING_PROFILES_ACTIVE=postgres | ||
|
||
./_build-and-test-all.sh |
4 changes: 4 additions & 0 deletions
4
customer-service/src/main/resources/application-postgres.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spring.datasource.url=jdbc:postgresql://localhost/eventuate | ||
spring.datasource.username=eventuate | ||
spring.datasource.password=eventuate | ||
spring.datasource.driver-class-name=org.postgresql.Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eventuatelocal.kafka.bootstrap.servers=localhost:9092 | ||
eventuatelocal.zookeeper.connection.string=localhost:2181 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
integration-tests/src/test/resources/application-postgres.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spring.datasource.url=jdbc:postgresql://localhost/eventuate | ||
spring.datasource.username=eventuate | ||
spring.datasource.password=eventuate | ||
spring.datasource.driver-class-name=org.postgresql.Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
spring.main.allow-bean-definition-overriding=true | ||
spring.jpa.generate-ddl=true | ||
spring.jpa.generate-ddl=true | ||
|
||
eventuatelocal.kafka.bootstrap.servers=localhost:9092 | ||
eventuatelocal.zookeeper.connection.string=localhost:2181 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#! /bin/bash -e | ||
|
||
docker run $* \ | ||
--name mysqlterm --rm \ | ||
-e MYSQL_HOST=$DOCKER_HOST_IP \ | ||
--name mysqlterm --network=${PWD##*/}_default --rm \ | ||
-e MYSQL_HOST=mysql \ | ||
mysql:5.7.13 \ | ||
sh -c 'exec mysql -h"$MYSQL_HOST" -uroot -prootpassword -o eventuate' |
4 changes: 4 additions & 0 deletions
4
order-service/src/main/resources/application-postgres.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spring.datasource.url=jdbc:postgresql://localhost/eventuate | ||
spring.datasource.username=eventuate | ||
spring.datasource.password=eventuate | ||
spring.datasource.driver-class-name=org.postgresql.Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
eventuatelocal.kafka.bootstrap.servers=localhost:9092 | ||
eventuatelocal.zookeeper.connection.string=localhost:2181 | ||
|
||
spring.datasource.url=jdbc:mysql://localhost/eventuate | ||
spring.datasource.username=mysqluser | ||
spring.datasource.password=mysqlpw | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#! /bin/bash -e | ||
|
||
docker run $* \ | ||
--name postgresterm \ | ||
-e POSTGRES_HOST=$DOCKER_HOST_IP \ | ||
--name postgresterm --network=${PWD##*/}_default \ | ||
-e POSTGRES_HOST=postgres \ | ||
--rm postgres:9.6.5 \ | ||
sh -c 'export PGPASSWORD=eventuate; exec psql -h "$POSTGRES_HOST" -U eventuate' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.