mirror of
https://github.com/goreleaser/nfpm
synced 2024-11-19 03:25:08 +01:00
27 lines
884 B
Docker
27 lines
884 B
Docker
FROM fedora
|
|
ARG package
|
|
COPY ${package} /tmp/foo.rpm
|
|
RUN rpm -ivh /tmp/foo.rpm
|
|
RUN test -e /usr/local/bin/fake
|
|
RUN test -f /etc/foo/whatever.conf
|
|
RUN test -d /usr/share/whatever/folder
|
|
RUN test -f /usr/share/whatever/folder/file1
|
|
RUN test -f /usr/share/whatever/folder/file2
|
|
RUN test -d /usr/share/whatever/folder/folder2
|
|
RUN test -f /usr/share/whatever/folder/folder2/file1
|
|
RUN test -f /usr/share/whatever/folder/folder2/file2
|
|
RUN test -d /var/log/whatever
|
|
RUN test -d /usr/share/foo
|
|
RUN test -f /tmp/preinstall-proof
|
|
RUN test -f /tmp/postinstall-proof
|
|
RUN test ! -f /tmp/preremove-proof
|
|
RUN test ! -f /tmp/postremove-proof
|
|
RUN echo wat >> /etc/foo/whatever.conf
|
|
RUN rpm -e foo
|
|
RUN test -f /etc/foo/whatever.conf.rpmsave
|
|
RUN test ! -f /usr/local/bin/fake
|
|
RUN test -f /tmp/preremove-proof
|
|
RUN test -f /tmp/postremove-proof
|
|
RUN test ! -d /var/log/whatever
|
|
RUN test ! -d /usr/share/foo
|