ctf-tools/.docker/apt-get-install
Michael Rodler ec75e3d081 Updated Dockerfiles, added script to quickly run manage-tools in a container for testing
* Dockerfile updates
    * Ubuntus now use apt-get-install wrapper to not leave package lists in the container
    * Copy uncommited manage-tools, etc. scripts into container, which
      is good for manual testing.
    * Remove dependency on virtualenvwrapper for Ubuntus and Fedora
* `ctf-tools-test-action` to quickly test something for another distribution in a docker container, e.g.
  `ctf-tools-test-action -d fedora -s -v reinstall qemu`
2018-04-20 11:12:52 -07:00

13 lines
525 B
Bash
Executable file

#!/bin/sh -e
export DEBIAN_FRONTEND="noninteractive"
# update the package lists etc.
apt-get -q update
# this is actually against docker recommendations... But we'll do it anyway in
# case our base image was not yet updated.
apt-get dist-upgrade -y --no-install-recommends --auto-remove
# finally install the package
apt-get install -y --no-install-recommends --auto-remove "$@"
# remove the package lists and apt-get metadata, such that the docker image
# layer stays small
apt-get -q clean
rm -rf /var/lib/apt/lists/*