1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-10-01 14:51:15 +02:00
nfpm/acceptance/testdata/lzma.rpm.compression.dockerfile
Adrian Wennberg c17636c028 feat: Add option for RPM compression type (#63)
* feat: Add option for RPM compression type

See #62

* test: acceptance test for rpm compression types
2019-08-23 10:49:04 -03:00

11 lines
348 B
Docker

FROM fedora
ARG package
COPY ${package} /tmp/foo.rpm
RUN test "lzma" = "$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}' /tmp/foo.rpm)"
RUN rpm -ivh /tmp/foo.rpm
RUN test -e /usr/local/bin/fake
RUN test -f /etc/foo/whatever.conf
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