Nuke OpenRC from docker image, update readme's

This commit is contained in:
Edvard
2019-02-11 11:27:33 +01:00
parent 0bf8bd4183
commit 9b986c4c14
10 changed files with 12 additions and 48 deletions
+4 -4
View File
@@ -19,14 +19,14 @@ e`
* `CONTRACT_ABI_[CONTRACT NAME]="ABI STRING"`
* `CONTRACT_DEPLOYMENT-BLOCK_[CONTRACT NAME]=0` (doesn't really matter on a short chain, just avoids long unnecessary searching)
6. Start the `lightSync` and `continuousLogSync` services:
* `rc-service lightSync start`
* `rc-service continuousLogSync start`
* `./vulcanizedb lightSync --config environments/staging.toml`
* `./vulcanizedb continuousLogSync --config environments/staging.toml`
### Automated
The steps above have been rolled into a script: `/app/startup_script.sh`, which just assumes the DB env variables have been set, and defaults the rest to Kovan according to `environments/staging.toml`. This can be called with something like:
`docker run -d -e DATABASE_NAME=vulcanize_public -e DATABASE_HOSTNAME=localhost -e DATABASE_PORT=5432 -e DATABASE_USER=vulcanize -e DATABASE_PASSWORD=vulcanize [container name] ./startup_script.sh`
`docker run -d -e DATABASE_NAME=vulcanize_public -e DATABASE_HOSTNAME=localhost -e DATABASE_PORT=5432 -e DATABASE_USER=vulcanize -e DATABASE_PASSWORD=vulcanize m0ar/images:vDB`
### Logging
When running, vDB services log to `/vulcanizedb.log`.
When running, vDB services log to `/app/vulcanizedb.log`.
-6
View File
@@ -1,6 +0,0 @@
#!/sbin/openrc-run
command=/app/vulcanizedb
command_args="continuousLogSync --config /app/environments/staging.toml &"
pidfile=
name="continuousLogSync"
description="runs vDB in continuousLogSync mode using staging.toml"
-6
View File
@@ -1,6 +0,0 @@
#!/sbin/openrc-run
command=/app/vulcanizedb
command_args="lightSync --config /app/environments/staging.toml &"
pidfile=
name="lightSync"
description="runs vDB in lightSync mode using staging.toml"
+3 -3
View File
@@ -21,9 +21,9 @@ set +e
./goose postgres "$CONNECT_STRING" up
if [ $? -eq 0 ]; then
# Fire up the services
rc-service lightSync start
rc-service continuousLogSync start
./vulcanizedb lightSync --config environments/staging.toml &
./vulcanizedb continuousLogSync --config environments/staging.toml &
else
echo "Could not run migrations. Are the database details correct?"
fi
wait