Last active
August 15, 2019 13:05
-
-
Save jkutner/870b8fc8c7c8fd69a94b8ac8144b1cf5 to your computer and use it in GitHub Desktop.
defence against the docker arts
This file contains hidden or 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
<configuration> | |
<from> | |
<image>gcr.io/distroless/java</image> | |
</from> | |
<container> | |
<appRoot>/workspace</appRoot> | |
<environment> | |
<JAVA_OPTS>-Xss512k</JAVA_OPTS> | |
</environment> | |
</container> | |
</configuration> |
This file contains hidden or 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
<project> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>com.google.cloud.tools</groupId> | |
<artifactId>jib-maven-plugin</artifactId> | |
<version>1.4.0</version> | |
<configuration> | |
<from> | |
<image>gcr.io/distroless/java</image> | |
</from> | |
<container> | |
<appRoot>/workspace</appRoot> | |
<environment> | |
<JAVA_OPTS>-Xss512k</JAVA_OPTS> | |
</environment> | |
</container> | |
<to> | |
<image>myimage</image> | |
</to> | |
</configuration> | |
</plugin> | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment