All Projects → trishnaguha → build-atomic-host

trishnaguha / build-atomic-host

Licence: GPL-3.0 license
Ansible Playbook to automate building own Atomic Host with Customized Packages

Projects that are alternatives of or similar to build-atomic-host

Kotlinx.atomicfu
The idiomatic way to use atomic operations in Kotlin
Stars: ✭ 381 (+2440%)
Mutual labels:  atomic
Quark
Quark.js is a microscopic atomic CSS polyfill in JS just 140 bytes
Stars: ✭ 97 (+546.67%)
Mutual labels:  atomic
Node Proper Lockfile
An inter-process and inter-machine lockfile utility that works on a local or network file system.
Stars: ✭ 139 (+826.67%)
Mutual labels:  atomic
Concurrency
Java 并发编程知识梳理以及常见处理模式 features and patterns
Stars: ✭ 495 (+3200%)
Mutual labels:  atomic
Ring Buffer
simple C++11 ring buffer implementation, allocated and evaluated at compile time
Stars: ✭ 80 (+433.33%)
Mutual labels:  atomic
Gkvdb
[mirror] Go语言开发的基于DRH(Deep-Re-Hash)深度哈希分区算法的高性能高可用Key-Value嵌入式事务数据库。基于纯Go语言实现,具有优异的跨平台性,良好的高可用及文件IO复用设计,高效的底层数据库文件操作性能,支持原子操作、批量操作、事务操作、多表操作、多表事务、随机遍历等特性。
Stars: ✭ 109 (+626.67%)
Mutual labels:  atomic
Atomic queue
C++ lockless queue.
Stars: ✭ 373 (+2386.67%)
Mutual labels:  atomic
Abool
💡 Atomic Boolean library for cleaner Go code, optimized for performance yet simple to use.
Stars: ✭ 225 (+1400%)
Mutual labels:  atomic
Gemma
A lightweight CSS library.
Stars: ✭ 94 (+526.67%)
Mutual labels:  atomic
Multicurrencywallet
Bitcoin, Ethereum, ERC20 crypto wallets with Atomic Swap exchange. Release announce: https://twitter.com/SwapOnlineTeam/status/1321844352369500160
Stars: ✭ 136 (+806.67%)
Mutual labels:  atomic
Swiftcoroutine
Swift coroutines for iOS, macOS and Linux.
Stars: ✭ 690 (+4500%)
Mutual labels:  atomic
Mcmd
Monte Carlo and Molecular Dynamics Simulation Package
Stars: ✭ 52 (+246.67%)
Mutual labels:  atomic
Onering
A collection of concurrent ring buffers
Stars: ✭ 114 (+660%)
Mutual labels:  atomic
Portable Snippets
Collection of miscellaneous portable C snippets.
Stars: ✭ 397 (+2546.67%)
Mutual labels:  atomic
2019 12
🎟 급증하는 트래픽에도 안정적인 예약 서비스, Atomic Pattern을 적용한 재사용 가능한 컴포넌트, 실용적인 Testing을 주제로 하는 이벤트 서비스
Stars: ✭ 169 (+1026.67%)
Mutual labels:  atomic
Sharedhashfile
Share Hash Tables With Stable Key Hints Stored In Memory Mapped Files Between Arbitrary Processes
Stars: ✭ 380 (+2433.33%)
Mutual labels:  atomic
Confluo
Real-time Monitoring and Analysis of Data Streams
Stars: ✭ 1,428 (+9420%)
Mutual labels:  atomic
Steno
Specialized fast async file writer
Stars: ✭ 236 (+1473.33%)
Mutual labels:  atomic
Holy Grail Markup
All CSS methodologies compared examples at one place.
Stars: ✭ 197 (+1213.33%)
Mutual labels:  atomic
Write Files Atomic
Write many files atomically
Stars: ✭ 126 (+740%)
Mutual labels:  atomic

Build Your Own Atomic Host

Automation of Building your own Atomic-Host. To know about Atomic-Host, please visit http://www.projectatomic.io.

Steps

Clone Source

$ git clone https://github.com/trishnaguha/build-atomic-host.git
$ cd build-atomic-host

Install Ansible

Please Make sure Ansible is intalled in your system.

$ sudo dnf install ansible   # Install python2-dnf if you are using Fedora Linux Distribution

Download Atomic QCOW2 Image

Download Fedora Atomic QCOW2 Image: https://getfedora.org/en/atomic. You can also download CentOS Atomic QCOW2 Image.

SetUp Environment

Install Requirements - Start HTTP Server. After running the following playbook you may use ip addr to check the IP Address of your HTTP server.

$ ansible-playbook setup.yml --ask-sudo-pass

Variables

Replace the Variables in vars/atomic.yml with your httpserver IP Address, OSTree name, Basehost.

If you wish to use CentOS Atomic modify the variables accordingly.

---
# Variables for Atomic host
atomicname: my-atomic
basehost: fedora-atomic/25/x86_64/docker-host
httpserver: 192.168.122.1

Add the additional Packages you would like to have in the OSTree in vars/buildrepo.yml.

If you wish to use CentOS Atomic modify the variables accordingly.

---
# Variables for Atomic repository/OSTree packages
repo: https://pagure.io/fedora-atomic.git
branch: f25
repodir: fedora-atomic
abs_path: /workspace                                  # The absolute path to the git repo.
custommanifest: customized-atomic-docker-host.json    # The manifest that goes into the custom host(ostree) content that we are going to build.
sourcemanifest: fedora-atomic-docker-host.json        # The manifest that goes into the actual Base Fedora host(ostree) content.
packages: '"vim-enhanced", "git"'                     # Packages you want to have in your Atomic host.

You can add packages like above in double-qoutes separated by comma.

Replace Variables for Creating VM from QCOW2 Image. If you wish to use CentOS Atomic modify the variables accordingly.

# Variables for Creating VM

domain: atomic-node
image: Fedora-Atomic-25-20170228.0.x86_64
cpu: 1
mem: 1536
os:
  variant: fedora23
path: /tmp

Main Playbook

Run the main Playbook which will create VM from QCOW2 image, compose OSTree and perform SSH-Setup and Rebase on OSTree:

$ ansible-playbook main.yml --ask-sudo-pass

user-name: atomic-user, password: atomic for the instance.

Reboot the Host

Now SSH to the Atomic Host and Perform a Reboot which will reboot in to your OSTree:

$ sudo systemctl reboot

Verify: SSH to the Atomic Host:

$ ssh [email protected]
[atomic-user@atomic-node ~]$ sudo rpm-ostree status
State: idle
Deployments:
● my-atomic:fedora-atomic/25/x86_64/docker-host
       Version: 25.1 (2017-02-07 05:34:46)
        Commit: 15b70198b8ec7fd54271f9672578544ff03d1f61df8d7f0fa262ff7519438eb6
        OSName: fedora-atomic

  fedora-atomic:fedora-atomic/25/x86_64/docker-host
       Version: 25.51 (2017-01-30 20:09:59)
        Commit: f294635a1dc62d9ae52151a5fa897085cac8eaa601c52e9a4bc376e9ecee11dd
        OSName: fedora-atomic

Shout-Out for the following folks:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].