Skip to content

Commit

Permalink
Update linux/just_files/just_docker_functions.bsh
Browse files Browse the repository at this point in the history
  • Loading branch information
andyneff authored Feb 21, 2024
1 parent 199036a commit afd37a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/just_files/just_docker_functions.bsh
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ function docker_defaultify()
# docker-compose service. $1 - service name (required) $2 - docker context, defaults to "."
# This is not a perfect parser. Won't handle yaml strings that aren't the same syntax as bash strings
local compose_config=$(docker-compose config | yarp)
# This shouldn't be blank, because docker-compose will report "Dockerfile" even if it's absent in the compose file```
# This shouldn't be blank because docker-compose will report "Dockerfile" even if it's absent in the compose file```
local dockerfile=$(sed -nE 's|^services\.'"$1"'\.build\.dockerfile = "?(.*[^"])"?|\1|p' <<< "${compose_config}")
if [ -z "${dockerfile}" ]; then
echo "Dockerfile is empty, either you forgot to specify a service name or specified the wrong service" >&2
Expand Down

0 comments on commit afd37a1

Please sign in to comment.