Skip to content

Instantly share code, notes, and snippets.

@zehicle
Last active January 21, 2021 17:56
Show Gist options
  • Save zehicle/6f90a1b57a3413b3ce92060c84880664 to your computer and use it in GitHub Desktop.
Save zehicle/6f90a1b57a3413b3ce92060c84880664 to your computer and use it in GitHub Desktop.
Digital Rebar 4.5 Load Context Images
#!/usr/bin/env bash
# RackN Copyright 2019
# Install Contexts
drpcli contexts create '{
"Name": "runner",
"Description": "drpcli-runner",
"Documentation": "Very minimal container to run the DRPCLI as a starting or idle point for Machines. This provides a very low overhead system to start or complete workflows so that tasks can continue to execute even if the target machine is not available (or never exists).",
"Engine": "docker-context",
"Image": "digitalrebar-context-runner",
"Meta": {
"icon": "cube",
"color": "red",
"copyright": "RackN 2020",
"Dockerpull": "digitalrebar/context-runner"
}
}'
drpcli files upload http://get.rebar.digital/containers/20210121/runner.tar as "contexts/docker-context/digitalrebar-context-runner"
drpcli files upload http://get.rebar.digital/containers/20200210/ansible.tar as "contexts/docker-context/digitalrebar-context-ansible"
drpcli files upload http://get.rebar.digital/containers/20200210/terraform.tar as "contexts/docker-context/digitalrebar-context-terraform"
drpcli plugins runaction docker-context restartProvider
drpcli plugins runaction docker-context imageExists context/image-name digitalrebar-context-runner
drpcli plugins runaction docker-context imageExists context/image-name digitalrebar-context-ansible
drpcli plugins runaction docker-context imageExists context/image-name digitalrebar-context-terraform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment