Last active
January 13, 2022 16:32
-
-
Save jfuerth/f002f3dde9b54e5be67b43f0a85d59d7 to your computer and use it in GitHub Desktop.
Docker packaging for running the Cloud Foundry Java Buildpack Memory calculator on MacOS or Windows via Docker
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 alpine:3.15 | |
RUN echo "This Docker image exists so you can run the prebuilt memory calculator on MacOS and Windows.\n\ | |
There is no sense in using it on a Linux system.\n\ | |
You can find the Dockerfile at https://gist.github.com/jfuerth/f002f3dde9b54e5be67b43f0a85d59d7" \ | |
> /etc/motd | |
# Grab the pre-compiled release binary | |
RUN wget -O - https://github.com/cloudfoundry/java-buildpack-memory-calculator/releases/download/v4.1.0/memory-calculator-4.1.0.tgz \ | |
| tar zxv | |
# java-buildpack-memory-calculator is a Go program but it's not statically linked! | |
# Requires libc shared libraries on the system in order to start up | |
RUN apk add libc6-compat | |
CMD /java-buildpack-memory-calculator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment