Skip to content

Commit eafcbc1

Browse files
committed
update docker compose to handle relative Dockerfile location
1 parent ee34441 commit eafcbc1

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ services:
1010
- ORACLE_PASSWORD=password
1111
ports:
1212
- "1521:1521"
13+
healthcheck:
14+
test: [ "CMD-SHELL", "echo 'SELECT 1 FROM dual;' | sqlplus -s sys/${ORACLE_PASSWORD}@localhost/FREEPDB1 as sysdba | grep -q '1'" ]
15+
interval: 10s
16+
timeout: 5s
17+
retries: 30
18+
start_period: 60s
19+
1320
schema:
1421
build:
15-
context: ./schema
22+
context: .
1623
container_name: cwms-dev-schema
1724
environment:
1825
- DB_HOST_PORT=cwms-dev-db:1521
@@ -25,6 +32,6 @@ services:
2532
- OFFICE_EROC=S0
2633
# With installonce set to 0 the schema will be removed (equivalent to ant clean build) each time this runs.
2734
- INSTALLONCE=0
28-
- QUIET=0
35+
- QUIET=0
2936
volumes:
3037
cwms-dev-oracle:

0 commit comments

Comments
 (0)