-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image
Description
My project directory looks like:
.
├── Dockerfile
├── docker-entrypoint-initdb.d
│ └── init-user-db.sh
└── test.sh
However the for f in /docker-entrypoint-initdb.d/*; do step in the docker-entrypoint.sh file seems to be incorrectly iterating over the contents of docker-entrypoint-initdb.d.
I ran a little test script:
# This works
for f in docker-entrypoint-initdb.d/*; do
echo "$f"
done
echo "---"
# This is in docker-entrypoint.sh
for f in /docker-entrypoint-initdb.d/*; do
echo "$f"
done
which gives me:
docker-entrypoint-initdb.d/init-user-db.sh
---
/docker-entrypoint-initdb.d/*
I'm not great with bash scripts, anyone know whats going on here or is this a bug?
Metadata
Metadata
Assignees
Labels
questionUsability question, not directly related to an error with the imageUsability question, not directly related to an error with the image