Last active
October 28, 2017 11:24
-
-
Save gabriel-v/12fd96df45c5c22a4c00392be05ef706 to your computer and use it in GitHub Desktop.
Download Liquid Investigations development VMs
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
#!/bin/bash -ex | |
mkdir -pv factory/images/cloud-x86_64 | |
UBUNTU_CLOUD=https://jenkins.liquiddemo.org/job/liquidinvestigations/job/factory/job/master/lastSuccessfulBuild/artifact/cloud-x86_64-image.tar.xz | |
curl -L $UBUNTU_CLOUD | xzcat | tar -x -C factory/images/cloud-x86_64 | |
echo '{"login": {"username": "ubuntu", "password": "ubuntu"}}' > factory/images/cloud-x86_64/config.json |
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
#!/bin/bash -ex | |
FACTORY_REPO=https://github.com/liquidinvestigations/factory.git | |
LIQUID_CLOUD=https://jenkins.liquiddemo.org/job/liquidinvestigations/job/setup/view/change-requests/job/master/lastSuccessfulBuild/artifact/liquid-cloud-x86_64-raw.img.xz | |
# download factory | |
ls factory || git clone $FACTORY_REPO | |
# download the liquid vm | |
mkdir -pv factory/images/liquid-cloud-x86_64 | |
curl -L $LIQUID_CLOUD | xzcat > factory/images/liquid-cloud-x86_64/disk.img | |
echo '{"login": {"username": "liquid", "password": "liquid"}}' > factory/images/liquid-cloud-x86_64/config.json |
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
#!/bin/bash -ex | |
factory/factory --platform liquid-cloud-x86_64 login --smp 4 --memory 2048 --share .:/mnt/shared |
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
#!/bin/bash -ex | |
factory/factory --platform cloud-x86_64 login --smp 4 --memory 2048 --share .:/mnt/shared |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment