Created
November 6, 2017 04:08
-
-
Save anonymous/6c90e4070823d42ae2acac419df25a46 to your computer and use it in GitHub Desktop.
make-musl-image.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e -u | |
export GENTOO_PORTAGE_CLEANUP=True | |
export DIB_INSTALLTYPE_pip_and_virtualenv=package | |
export DIB_INSTALLTYPE_simple_init=repo | |
export GENTOO_PYTHON_TARGETS="python2_7 python3_4" | |
export GENTOO_PYTHON_ACTIVE_VERSION="python3.4" | |
DATE="$(date +%Y%m%d)" | |
export GENTOO_OVERLAYS="musl" | |
export GENTOO_PROFILE=hardened/linux/musl/amd64 | |
disk-image-create -a amd64 -t qcow2 --image-size 3 -o gentoo-openstack-amd64-hardened-musl-"${DATE}" gentoo simple-init growroot vm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment