Dockerfile: no default output directory

Just let the user provide this if wanted

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2019-09-26 13:03:12 -04:00
parent 9726e11de5
commit a358531460
3 changed files with 2 additions and 6 deletions

View file

@ -4,8 +4,4 @@ RUN dnf install -y jq skopeo findutils file 'dnf-command(download)'
COPY ./BuildSourceImage.sh /usr/local/bin/BuildSourceImage.sh 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/"] ENTRYPOINT ["/usr/local/bin/BuildSourceImage.sh", "-b", "/tmp/"]

View file

@ -7,7 +7,7 @@ load helpers
d=$(mktemp -d) d=$(mktemp -d)
echo "temporary directory: ${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 ] [ "$status" -eq 0 ]
[[ ${lines[0]} =~ "[SrcImg][INFO] calling source collection drivers" ]] [[ ${lines[0]} =~ "[SrcImg][INFO] calling source collection drivers" ]]
# get the number of the last line # get the number of the last line

View file

@ -8,7 +8,7 @@ load helpers
echo "temporary directory: ${d}" echo "temporary directory: ${d}"
ref="registry.fedoraproject.org/fedora-minimal" 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 ] [ "$status" -eq 0 ]
#echo ${lines[@]} #echo ${lines[@]}
[[ ${lines[0]} =~ "Getting image source signatures" ]] [[ ${lines[0]} =~ "Getting image source signatures" ]]