Skip to content

Instantly share code, notes, and snippets.

@gabriel-v
Last active October 28, 2017 11:24
Show Gist options
  • Save gabriel-v/12fd96df45c5c22a4c00392be05ef706 to your computer and use it in GitHub Desktop.
Save gabriel-v/12fd96df45c5c22a4c00392be05ef706 to your computer and use it in GitHub Desktop.
Download Liquid Investigations development VMs
#!/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
#!/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
#!/bin/bash -ex
factory/factory --platform liquid-cloud-x86_64 login --smp 4 --memory 2048 --share .:/mnt/shared
#!/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