mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 05:06:14 +09:00
M #-: fix minor bug in DockerDownloader (#1265)
(cherry picked from commit 25841b817b)
This commit is contained in:
1 parent
6a4417c4a7
commit
af82cd518b
1 file changed
+6
-1
@@ -223,13 +223,18 @@ if [ $export_from == "dockerhub" ]; then
|
||||
entrypoint=$(docker inspect "$docker_hub" | jq -r '.[0].Config.Entrypoint')
|
||||
env=$(docker inspect "$docker_hub" | jq -r '.[0].Config.Env')
|
||||
else
|
||||
tmp_dockerfile_template=$dockerfile_template
|
||||
tmp_dockerfile_template=${tmp_dockerfile_template/\%ONE_ENTRYPOINT\%/''}
|
||||
|
||||
echo "$tmp_dockerfile_template" > "$dockerfile"
|
||||
|
||||
# Build the image with user Dockerfile to be able to inspect it
|
||||
docker build -t one"$sid" -f "$dockerfile" "$dockerdir" > /dev/null 2>&1
|
||||
|
||||
image_id=$(docker images -q one"$sid")
|
||||
|
||||
cmd=$(docker inspect "$docker_hub" | jq -r '.[0].Config.Cmd[] |= "\"" + . + "\"" | .[0].Config.Cmd')
|
||||
entrypoint=$(docker inspect "$image_id" | jq -r '.[0].Config.Entrypoint |')
|
||||
entrypoint=$(docker inspect "$image_id" | jq -r '.[0].Config.Entrypoint')
|
||||
env=$(docker inspect "$image_id" | jq -r '.[0].Config.Env')
|
||||
|
||||
# Delete this image as it will need to be build after
|
||||
|
||||
Reference in new issue
Block a user