Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Simple Web Service Example Illustrating Image Editing Capabilities of DockerSlim

The example shows how to add/remove extra lebels, env variables, and volumes while slimming an image.

Commands:

make                             # run example (semi-automatic)

make fat-build                   # build the "fat" version of the image
make fat-run                     # run the web service using the "fat" image
make fat-validate                # send a request to the running web service
make fat-stop                    # stop the running web service

make slim-build                  # turn the "fat" image into a "slim" one
make slim-run                    # run the web service using the "slim" image
make slim-validate               # send a request to the running web service
make slim-stop                   # stop the running web service

make slim-build-from-dockerfile  # build the "slim" version of the image using the "fat" Dockerfile

make debug-sidecar               # run a debug sidecar container with an interactive shell

make test-e2e                    # run the acceptance test suite
make clean                       # remove all artifacts created by this example

See also:

  • _docker-slim.env - example params (image name, container name, docker-slim flags, etc.)
  • _macos/ - additional .command wrappers to make the main actions clickable on macOS.