Skip to content

Instantly share code, notes, and snippets.

@ArthurN
Created May 17, 2023 15:47
Show Gist options
  • Save ArthurN/b67146e2d23b958704261dc71a8c8cd8 to your computer and use it in GitHub Desktop.
Save ArthurN/b67146e2d23b958704261dc71a8c8cd8 to your computer and use it in GitHub Desktop.
Long-running ContainerFit POC

Long-running ContainerFit session

Install screen (if not already installed)

On Ubuntu/Debian: sudo apt install screen

On Red Hat: sudo yum install screen

Kick off ContainerFit

  1. Start a screen session (named "ContainerFit", for convenience):

    screen -S ContainerFit

  2. Start ContainerFit in interactive mode w/ all of the necessary parameters:

    ~/fitstack/ContainerFit -m myapp:latest -n

  3. At ContainerFit's interactive shell prompt, press CTRL-a and then d to detach the screen session.

  4. Run the desired tests (e.g. over the course of hours or days). While the tests are running, feel free to logout of the shell, as the screen session will keep ContainerFit running while you're logged out.

  5. When testing is complete, reattach the screen session:

    screen -r ContainerFit

  6. Exit the ContainerFit interactive shell. The debloating process will kick off, and a new results HTML file as well as a debloated image will be generated.

  7. Once ContainerFit completes, simply exit the screen shell to exit screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment