Last active
May 15, 2017 18:06
-
-
Save miabbott/2436081e6d13f98ead5f0d74ea78950e to your computer and use it in GitHub Desktop.
Setup for testing atomic from source
This file contains hidden or 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 | |
| set -xeou pipefail | |
| dnf -y upgrade | |
| dnf -y builddep atomic | |
| dnf -y install git python python-docker-py libselinux-python redhat-rpm-config python-devel libffi-devel python-gobject-base python2-rpm docker skopeo runc | |
| git config --global user.email "atomic@projectatomic.io" | |
| git config --global user.name "Atomic User" | |
| if [ -d atomic ]; then | |
| cd atomic | |
| git reset --hard HEAD | |
| git checkout master | |
| git pull origin master | |
| else | |
| git clone https://github.com/projectatomic/atomic && cd atomic | |
| fi | |
| pip install -r requirements.txt | |
| if [ ! -f /etc/atomic.conf ]; then | |
| cp atomic.conf /etc/atomic.conf | |
| fi | |
| if [ ! -d /etc/atomic.d ]; then | |
| cp -a atomic.d /etc/atomic.d/ | |
| fi | |
| systemctl enable docker --now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment