build: add support for whonix in docker script.
This commit is contained in:
parent
c84af9e698
commit
5e93de2ec2
1 changed files with 3 additions and 2 deletions
|
|
@ -66,9 +66,10 @@ build_in_docker_makepkg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build_in_docker_dpkg() {
|
build_in_docker_dpkg() {
|
||||||
local dist="$1"
|
local dist="$1" target="$1"
|
||||||
local img="$PREFIX$dist"
|
local img="$PREFIX$dist"
|
||||||
|
|
||||||
|
[[ "$dist" == whonix ]] && dist=debian
|
||||||
if _exist "$img"; then
|
if _exist "$img"; then
|
||||||
if ! _is_running "$img"; then
|
if ! _is_running "$img"; then
|
||||||
_start "$img"
|
_start "$img"
|
||||||
|
|
@ -76,7 +77,7 @@ build_in_docker_dpkg() {
|
||||||
else
|
else
|
||||||
docker pull "$BASEIMAGE/$dist"
|
docker pull "$BASEIMAGE/$dist"
|
||||||
docker run -tid --name "$img" --volume "$VOLUME:$BUILDIR" \
|
docker run -tid --name "$img" --volume "$VOLUME:$BUILDIR" \
|
||||||
--env DEBIAN_FRONTEND=noninteractive --env DISTRIBUTION="$dist" \
|
--env DEBIAN_FRONTEND=noninteractive --env DISTRIBUTION="$target" \
|
||||||
"$BASEIMAGE/$dist"
|
"$BASEIMAGE/$dist"
|
||||||
docker exec "$img" sudo apt-get update -q
|
docker exec "$img" sudo apt-get update -q
|
||||||
docker exec "$img" sudo apt-get install -y config-package-dev rsync
|
docker exec "$img" sudo apt-get install -y config-package-dev rsync
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue