Deploy a set of consumers in a wrapped container using this example Dockerfile.
FROM dcshock/forklift:1.1
# Add jar'd binks projects to the deployment directory
ADD my.jar $FORKLIFT_CONSUMER_HOME/my.jar
# See boot.sh file below
ADD boot.sh /opt/boot.sh
CMD ["/opt/boot.sh"]
Create a boot.sh file to start the server with your parameters.
#!/bin/bash
cd /usr/local/forklift
forklift-server tcp://127.0.0.1:61616 /usr/local/forklift/consumers
Note that forklift server starts with 2 parameters.
ENV FORKLIFT_HOME /usr/local/forklift
ENV FORKLIFT_CONSUMER_HOME /usr/local/forklift/consumers
Content type
Image
Digest
Size
113.5 MB
Last updated
about 9 years ago
docker pull dcshock/forklift:2.1