diff --git a/Dockerfile b/Dockerfile index a50044c..0714352 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,4 @@ RUN dnf install -y jq skopeo findutils file 'dnf-command(download)' COPY ./BuildSourceImage.sh /usr/local/bin/BuildSourceImage.sh -RUN mkdir -p /output -ENV OUTPUT_DIR=/output -VOLUME /output - ENTRYPOINT ["/usr/local/bin/BuildSourceImage.sh", "-b", "/tmp/"] diff --git a/test/01-from_rpms.bats b/test/01-from_rpms.bats index 07aa5d3..df9660e 100644 --- a/test/01-from_rpms.bats +++ b/test/01-from_rpms.bats @@ -7,7 +7,7 @@ load helpers d=$(mktemp -d) echo "temporary directory: ${d}" - run_ctr -v $(pwd)/.testprep/srpms/:/src:ro --mount type=bind,source=${d},destination=/output $CTR_IMAGE -s /src + run_ctr -v $(pwd)/.testprep/srpms/:/src:ro --mount type=bind,source=${d},destination=/output $CTR_IMAGE -s /src -o /output [ "$status" -eq 0 ] [[ ${lines[0]} =~ "[SrcImg][INFO] calling source collection drivers" ]] # get the number of the last line diff --git a/test/02-from_image_ref.bats b/test/02-from_image_ref.bats index 38ce66c..74595d2 100644 --- a/test/02-from_image_ref.bats +++ b/test/02-from_image_ref.bats @@ -8,7 +8,7 @@ load helpers echo "temporary directory: ${d}" ref="registry.fedoraproject.org/fedora-minimal" - run_ctr --mount type=bind,source=${d},destination=/output $CTR_IMAGE -i "${ref}" + run_ctr --mount type=bind,source=${d},destination=/output $CTR_IMAGE -i "${ref}" -o /output [ "$status" -eq 0 ] #echo ${lines[@]} [[ ${lines[0]} =~ "Getting image source signatures" ]]