An open API service indexing awesome lists of open source software.

https://github.com/konstruktoid/container-debian-build

Debian Docker base image
https://github.com/konstruktoid/container-debian-build

Last synced: 6 months ago
JSON representation

Debian Docker base image

Awesome Lists containing this project

README

          

= Debian and Ubuntu base image generator

If you're not using Docker, run `sudo sh buildeb.sh` to generate a Debian or Ubuntu base image on a Debian or Ubuntu host. +
It will use `debootstrap`, create a tar-file, generate the `Dockerfile` and add a SHA256 checksum of the created tar-file to a `ENV` in the `Dockerfile`. +
`buildeb.sh` will also add `.git` and any previously generated tar-files to `.dockerignore`.

== Build and verify
`sudo sh buildeb.sh ` +

For example:
```sh
$ sudo sh buildeb.sh buster http://deb.debian.org/debian "$(pwd)/buildarea"
$ docker build -t konstruktoid/debian -f Dockerfile.buster .
$ docker run -t -i konstruktoid/debian cat /etc/debian_version
```

== Using Docker
```sh
docker build --no-cache -t konstruktoid/debianbuild -f Dockerfile .
docker run --privileged -v "$(pwd)":/opt/buildarea konstruktoid/debianbuild buster http://deb.debian.org/debian
```

== Autobuild
```sh
docker run --privileged -v "$(pwd)":/opt/buildarea konstruktoid/debianbuild buster http://deb.debian.org/debian
```

== Recommended reading
https://securityblog.redhat.com/2014/12/18/before-you-initiate-a-docker-pull/[Before you initiate a “docker pull”] +
https://github.com/konstruktoid/Docker/blob/master/Security/CheatSheet.adoc[Docker Security Cheat Sheet] +
http://www.infoq.com/news/2015/05/Docker-Image-Vulnerabilities[Security Vulnerabilities in Docker Hub Images] +
https://joeyh.name/blog/entry/docker_run_debian/[what does docker.io run -it debian sh run?]