Created
November 11, 2016 12:23
-
-
Save melo/9b148de1772f1ddee52df9ebe76aa4c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
carton install | |
rm -f tarball.tgz | |
tar zcvf tarball.tgz cpanfile* x.pl | |
docker build -t t . | |
docker run -it --rm t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requires 'JSON::XS'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM perl | |
WORKDIR /perl | |
ENTRYPOINT ["carton", "exec"] | |
RUN cpanm -n Carton | |
COPY tarball.tgz /perl | |
RUN cd /perl && tar zxf tarball.tgz && carton install --deployment | |
CMD ["./x.pl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use JSON::XS; | |
print "we are ok\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment