Skip to content

Commit c467cfd

Browse files
krivarddshemetov
authored andcommitted
Apply suggestions from code review
1 parent 4468b44 commit c467cfd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dev/local/epidata-refresh.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ docker images -f "dangling=true" -q | xargs docker rmi >/dev/null 2>&1
5050
docker network ls | grep delphi-net || docker network create --driver bridge delphi-net
5151

5252
LOGS=../driver-logs
53-
NOW=`date "+%Y-%m-%d`
53+
NOW=`date "+%Y-%m-%d"`
5454

5555
if [ "$1" == "database" ]; then
5656
shift
@@ -60,7 +60,9 @@ if [ "$1" == "database" ]; then
6060
docker images delphi_database | grep delphi || \
6161
docker build -t delphi_database -f repos/delphi/operations/dev/docker/database/Dockerfile . || exit 1
6262
docker build -t delphi_database_epidata -f repos/delphi/delphi-epidata/dev/docker/database/epidata/Dockerfile . || exit 1
63-
docker run --rm -p 127.0.0.1:13306:3306 --network delphi-net --name delphi_database_epidata delphi_database_epidata \
63+
docker run --rm -p 127.0.0.1:13306:3306 --network delphi-net --name delphi_database_epidata \
64+
--mount type=bind,source="$(pwd)"/repos/delphi/delphi-epidata,target=/usr/src/app/repos/delphi/delphi-epidata,readonly \
65+
delphi_database_epidata \
6466
>${LOGFILE} 2>&1 &
6567
while true; do
6668
sed -n '/Temporary server stopped/,/mysqld: ready for connections/p' ${LOGFILE} | grep "ready for connections" && break

dev/local/install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
mkdir -p driver/repos/delphi driver-logs
3+
mkdir -p driver/repos/delphi driver-logs/delphi_database_epidata driver-logs/delphi_web_epidata
44
cd driver/repos/delphi
55
git clone https://github.com/cmu-delphi/operations
66
git clone https://github.com/cmu-delphi/delphi-epidata

0 commit comments

Comments
 (0)