21 lines
473 B
Plaintext
21 lines
473 B
Plaintext
# Create a VM for testing Ansible provisioning.
|
|
|
|
FROM opensuse/tumbleweed
|
|
|
|
ARG PACKAGES
|
|
ENV PACKAGES="$PACKAGES"
|
|
ARG EXTRA_OPENSUSE
|
|
ENV EXTRA_OPENSUSE="$EXTRA_OPENSUSE"
|
|
|
|
# Use the image as it comes, do not upgrade it, so that it stays reproducible.
|
|
#RUN zypper -n refresh && zypper -n dist-upgrade -y
|
|
|
|
RUN zypper -n refresh && zypper -n install -y $PACKAGES $EXTRA_OPENSUSE
|
|
|
|
COPY bin/main.sh /root/main.sh
|
|
RUN chmod +x /root/main.sh
|
|
|
|
WORKDIR /root/
|
|
USER root
|
|
CMD ./main.sh
|