Last active
June 6, 2020 02:33
-
-
Save mattstep/750fb6ce54250c0855371253c03a0203 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
Smith, TJ's branch, includes support for type: container : https://github.com/tjfontaine/smith | |
docker commands: | |
docker save $OUTPUT_IMAGE:latest | gzip -c > $BUILD_DIR/fullsize.tgz | |
docker pull tjfontaine/smith:latest | |
docker run --rm -v $BUILD_DIR:/write -v tmp:/tmp tjfontaine/smith:latest --verbose --docker -i /write/smithsize.tgz -t $OUTPUT_IMAGE:latest | |
docker load -i $BUILD_DIR/smithsize.tgz | |
smith.yaml: | |
type: container | |
package: fullsize.tgz | |
root: true | |
env: ["PATH=/bin:/usr/bin"] | |
#Things to include | |
paths: | |
- /bin/cat | |
- /bin/curl | |
- /bin/ls | |
- /bin/sh | |
#Things to drop, in this case, everything in /var/tmp/ and /tmp, but keep /var/tmp and /tmp as a directories. | |
excludes: | |
- /var/tmp/* | |
- /tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment