Skip to content

Commit 028fdd1

Browse files
committed
Fix build errors
1 parent f6b2590 commit 028fdd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/start-docker-and-wait.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ set -e
55
DISTRO_DIR="${1:-../target/distro}"
66

77
echo "🚀 Starting OpenMRS in Docker from $DISTRO_DIR..."
8-
docker-compose -f "$DISTRO_DIR/docker-compose.yml" up -d web
8+
# Fix the auto-generated Dockerfile base image tag (nightly-amazoncorretto-11 was removed from Docker Hub)
9+
sed -i.bak 's|openmrs/openmrs-core:nightly-amazoncorretto-11|openmrs/openmrs-core:2.8.x|g' "$DISTRO_DIR/web/Dockerfile" && rm -f "$DISTRO_DIR/web/Dockerfile.bak"
10+
docker-compose -f "$DISTRO_DIR/docker-compose.yml" up -d --build web
911

1012
# Wait for OpenMRS to start (max 180 seconds)
1113
echo "⏳ Waiting for OpenMRS to initialize..."
1214
START_TIME=$(date +%s)
13-
TIMEOUT=180
15+
TIMEOUT=600
1416

1517
while true; do
1618
if command -v curl &> /dev/null; then

0 commit comments

Comments
 (0)