docker容器服务器 - centos atomic host

https://blog.inovex.de/docker-a-comparison-of-minimalistic-operating-systems

1. CoreOS
2. Project Atomic
3. Ubuntu Snappy
4. RancherOS
5. Photon
centos atomic host 7

/opt/opmgmt/install/pxelinux.cfg/01-78-2b-cb-69-10-f3

default menu.c32
prompt 0
timeout 50

label CentOS Atomic Host 7
    MENU DEFAULT
    MENU LABEL CentOS Atomic Host 7 [01:78:2b:cb:69:10:f3]
    KERNEL centos-atomic-host-7/vmlinuz
    APPEND initrd=centos-atomic-host-7/initrd.img ip=dhcp BOOTIF=78:2b:cb:69:10:f3 inst.ks=http://install.localhost/kickstart/78-2b-cb-69-10-f3 ramdisk_size=102400 console=tty1 console=ttyS1,115200

https://github.com/CentOS/sig-atomic-buildscripts
https://github.com/CentOS/Community-Kickstarts
https://access.redhat.com/blogs/1169563/posts/1318283
http://developerblog.redhat.com/2015/01/08/creating-custom-atomic-trees-images-and-installers-part-1
http://developerblog.redhat.com/2015/01/15/creating-custom-atomic-trees-images-and-installers-part-2

/opt/opmgmt/install/kickstart/78-2b-cb-69-10-f3

#python -c 'import crypt; print(crypt.crypt("MyPassword", "$6$MySalt"))'
rootpw --iscrypted $6$MySalt$e0fnxWlZ3UCN4HnSSx6U7zQGgzX7AlGBfZ75msCser0B2ZPRHBmwZjOVW6Cai/1Ba5f7B5uTsucedaHsEd8W6/
auth --enableshadow --passalgo=sha512

keyboard us
timezone Asia/Shanghai --isUtc
lang en_US.UTF-8

install
url --url='http://install.localhost/centos-atomic-host-7'

bootloader --location=mbr --boot-drive=sda
clearpart --all --initlabel --drives=sda
part / --fstype='xfs' --ondisk=sda --size=50000
#part swap --fstype='swap' --ondisk=sda --size=8000
part /opt --fstype='xfs' --ondisk=sda --grow

network --bootproto=static --device=78:2b:cb:69:10:f3 --gateway=192.168.48.1 --ip=192.168.48.122 --nameserver=192.168.48.116 --netmask=255.255.255.0 --ipv6=yes --onboot=yes --activate
network --hostname=bjyh-48-122

ostreesetup --nogpg --osname='centos-atomic-host' --remote='centos-atomic-host' --url='http://yum.localhost/centos/7/atomic/x86_64/repo' --ref='centos-atomic-host/7/x86_64/standard'

firewall --disabled
selinux --disabled
firstboot --disabled

services --disabled='NetworkManager,cloud-init,cloud-config,cloud-final,cloud-init-local'
services --enabled='network'

reboot

%pre
#/usr/sbin/parted -s /dev/sda mklabel gpt
%end

%post #--interpreter=/usr/bin/python
#ostree remote delete centos-atomic-host
#ostree remote add --set=gpg-verify=false centos-atomic-host 'http://yum.localhost/centos/7/atomic/x86_64/repo'
%end

你可能感兴趣的:(docker容器服务器 - centos atomic host)