y12studio / y12io

online service evaluation
Apache License 2.0
4 stars 0 forks source link

CoreOS Docker Vagrant Deis Dokku Flynn #3

Closed y12studio closed 10 years ago

y12studio commented 10 years ago

DIY Platform as a Service PaaS

ref

> vagrant -v
Vagrant 1.5.4
> git clone https://github.com/coreos/coreos-vagrant.git
> cd coreos-vagrant
> vagrant up
> vagrant status
Current machine states:
core-01                   running (virtualbox)

load ssh key to PuttyGen and save to putty's format. username core

$ git --version
git version 1.8.3.2
$ docker version
Client version: 0.10.0
Client API version: 1.10
Go version (client): go1.2
Git commit (client): dc9c28f
Server version: 0.10.0
Server API version: 1.10
Git commit (server): dc9c28f
Go version (server): go1.2
core@core-01 ~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           17G   30M   16G   1% /
devtmpfs        489M     0  489M   0% /dev
tmpfs           500M     0  500M   0% /dev/shm
tmpfs           500M  220K  499M   1% /run
tmpfs           500M     0  500M   0% /sys/fs/cgroup
/dev/sda9        17G   30M   16G   1% /
/dev/sda3      1008M  280M  729M  28% /usr
tmpfs           500M     0  500M   0% /tmp
tmpfs           500M     0  500M   0% /media
/dev/sda6       108M   60K   99M   1% /usr/share/oem
/dev/sda9        17G   30M   16G   1% /var/lib/docker
 $ ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.42.1  netmask 255.255.0.0  broadcast 0.0.0.0
        inet6 fe80::5484:7aff:fefe:9799  prefixlen 64  scopeid 0x20<link>
        ether 56:84:7a:fe:97:99  txqueuelen 0  (Ethernet)
        RX packets 9  bytes 612 (612.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8  bytes 648 (648.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255
        inet6 fe80::a00:27ff:fe35:69b4  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:35:69:b4  txqueuelen 1000  (Ethernet)
        RX packets 2405  bytes 1419294 (1.3 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1256  bytes 150237 (146.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp0s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::a00:27ff:fe41:c005  prefixlen 64  scopeid 0x20<link>
        ether 08:00:27:41:c0:05  txqueuelen 1000  (Ethernet)
        RX packets 307  bytes 34669 (33.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56  bytes 15432 (15.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 56  bytes 14744 (14.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 56  bytes 14744 (14.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ref

y12studio commented 10 years ago

[Failed] Deis at Windows7/Vagrant

> git clone https://github.com/deis/deis
> cd deis
> vagrant up
[...]
deis: /home/core/share => E:/vagrant/deis
Failed to mount folders in Linux guest. This is usually because
the "vboxsf" file system is not available. Please verify that
the guest additions are properly installed in the guest and
can work properly. The command attempted was:

mount -t vboxsf -o uid=`id -u core`,gid=`getent group core | cut -d: -f3`,nolock
,vers=3,udp /home/core/share /home/core/share
mount -t vboxsf -o uid=`id -u core`,gid=`id -g core`,nolock,vers=3,udp /home/cor
e/share /home/core/share
y12studio commented 10 years ago

CoreOS at Ubunut 14.04/Vagrant

boot coreos first

$ sudo apt-get install virtualbox
$ sudo apt-get install vagrant
$ git clone https://github.com/coreos/coreos-vagrant.git
$ cd coreos-vagrant
$ vagrant up
$ vagrant status
Current machine states:
core-01                   running (virtualbox)
The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.
$ vagrant ssh
// in coreos
$ docker version
Client version: 0.10.0
Client API version: 1.10
Go version (client): go1.2
Git commit (client): dc9c28f
Server version: 0.10.0
Server API version: 1.10
Git commit (server): dc9c28f
Go version (server): go1.2
$ exit