Simply bind mount the template directory you want compiled as /usr/src/template and run it. For example:
$ docker run -v $PWD/Zenoss.core zenoss/service-compiler:5.0.0 > zenoss.core.json
.
FROM ubuntu:trusty
MAINTAINER Zenoss, Inc. <[email protected]>
RUN apt-get update && \
apt-get -y install curl rpm2cpio && \
cd /tmp && \
curl -s http://artifacts.zenoss.loc/europa/serviced/2113/serviced-1.0.0_2113-1.x86_64.rpm | rpm2cpio | cpio -div && \
mv opt/serviced/bin/serviced /usr/local/bin/serviced && \
apt-get clean autoclean && \
apt-get autoremove -y && \
rm -rf /var/lib/{apt,dpkg,cache,log}/ && \
cd / && rm -rf /tmp/*
CMD ["/usr/local/bin/serviced", "template", "compile", "/usr/src/template"]
Content type
Image
Digest
sha256:8b74ca8da…
Size
94.5 MB
Last updated
about 11 years ago
docker pull zenoss/service-compiler:5.0.0