Skip to content

Instantly share code, notes, and snippets.

View miabbott's full-sized avatar

Micah Abbott miabbott

View GitHub Profile
@miabbott
miabbott / setup_atomic_cli.sh
Created February 7, 2017 18:03 — forked from baude/setup_atomic_cli.sh
Setup an Atomic CLI test environment
#/bin/bash
# Allows user to setup a fresh atomic CLI environment on an atomic
# or cloud system.
# Usage:
# Pull projectatomic/atomic master and install it
# $ sh setup_atomic_cli.sh
# Pull a user's branch
# $ BRANCH=<branch> GIT_USER=<user> sh setup_atomic_cli.sh
Setting up:
1. ostree remote add --set=gpg-verify=false centos-atomic-continuous https://ci.centos.org/artifacts/sig-atomic/rdgo/centos-continuous/ostree/repo/
2. ostree pull centos-atomic-continuous:centos-atomic-host/7/x86_64/devel/continuous
3. ostree commit -b my-test-branch --tree=ref=centos-atomic-continuous:centos-atomic-host/7/x86_64/devel/continuous
(if your ostree has `refs --create`, then this can be shortened to: ostree refs centos-atomic-host/7/x86_64/devel/continuous --create=my-test-branch)
4. ostree admin deploy my-test-branch
5. reboot
Synthesizing an update: