automation/build: update stretch-i386 dockerfile
authorWei Liu <wei.liu2@citrix.com>
Fri, 13 Jul 2018 07:05:54 +0000 (08:05 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 13 Jul 2018 07:08:12 +0000 (08:08 +0100)
We don't need to specify /bin/bash in the entry point rune, otherwise
non-interactive invocation of the container would fail with something
like:

+ C=debian:stretch-i386
+ export CONTAINER=registry.gitlab.com/xen-project/xen/debian:stretch-i386
+ CONTAINER=registry.gitlab.com/xen-project/xen/debian:stretch-i386
+ cd /local/work/COMMITTER/xen-32.git
+ git fetch origin
+ con git reset --hard origin/staging
*** Ensuring registry.gitlab.com/xen-project/xen/debian:stretch-i386 is up to date
*** Launching container ...
/usr/bin/git: /usr/bin/git: cannot execute binary file

While at it, use shorthand "linux32".

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
automation/build/debian/stretch-i386.dockerfile

index ec37a5fbf87fdd0bfbd8fa1143bef2db4a929348..65247a474ef404da6d4714ee068ce19c073ef6e8 100644 (file)
@@ -8,7 +8,7 @@ ENV USER root
 RUN mkdir /build
 WORKDIR /build
 
-ENTRYPOINT ["/usr/bin/setarch", "i686", "/bin/bash"]
+ENTRYPOINT ["linux32"]
 
 # build depends
 RUN apt-get update && \