mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-13 14:32:34 +00:00
ec75e3d081
* 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`
13 lines
525 B
Bash
Executable file
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/*
|