Giter Club home page Giter Club logo

changes-lxc-wrapper's Introduction

Changes LXC Wrapper

Handles automating launching containers for running Changes builds.

Run Changes Build

Provision and use ubuntu minimal install:

$ changes-lxc-wrapper --project foo --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Use a snapshot rather than bootstrapping a fresh container, add --snapshot:

$ changes-lxc-wrapper --project foo --snapshot 0001 --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Or if you want to use a snapshot from another project, use --variant instead:

$ changes-lxc-wrapper --project foo --variant bar-1000 --api-url changes.example.com/api/0 --jobstep-id 46a8ed3da0174eb0ba5522aab8595d89

Creating a snapshot

This will create a meta.tar.xz and a rootfs.tar.xz:

$ changes-lxc-wrapper --project foo --variant 0002 --save-snapshot

To rebuild the cached Ubuntu minimal install base rootfs, pass --flush-cache

Run Command

Simply launch a container and run a command:

$ changes-lxc-wrapper --project foo -- echo "hello world"

changes-lxc-wrapper's People

Contributors

dctrwatson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.