images/ipa-downloader-image/Dockerfile
saibattina 250e01b208 Add ipa-downloader-image
Change-Id: I5302a362509fac88f6b86921161dc8e0bdb72b19
Signed-off-by: Pete Birley <pete@port.direct>
2020-03-31 15:24:16 -05:00

17 lines
468 B
Docker

FROM ubuntu:18.04 as downloader
ARG IPA_BASEURI=https://images.rdoproject.org/master/rdo_trunk/current-tripleo/ironic-python-agent.tar
RUN set -ex ;\
apt-get update ;\
apt-get install curl -y
RUN set -ex ;\
curl -sSL -o /tmp/ironic-python-agent.tar $IPA_BASEURI ;\
mkdir -p /tmp/ironic-python-agent ;\
tar -xf /tmp/ironic-python-agent.tar -C /tmp/ironic-python-agent
FROM ubuntu:18.04 as dist
COPY --from=downloader /tmp/ironic-python-agent /