Skip to content

yangboz/2017-2018-computing-thinking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2017-2018-computing-thinking

Docker Pulls Docker Stars Docker Layers

Quick Docker DEMOs

Ubuntu+Python+Flask+Wgo.js

1.docker pull smartkit/godpaper-go-flask

2.docker run -p 8080:80 smartkit/godpaper-go-flask

3.http://localhost:8080/demo

Ubuntu+NodeJS+Tenuki.js

1.docker pull smartkit/godpaper-go-nodejs

2.docker run -p 3000:3000 smartkit/godpaper-go-nodejs

3.http://localhost:3000/client.html

Ubuntu16.04+Python3.5+Tensorflow1.1+MuGo

1.docker pull smartkit/godpaper-tensorflow-mugo

2.docker run -it smartkit/godpaper-tensorflow-mugo-201706 bash

3.pip install -r requirements.txt

4.https://github.com/brilee/MuGo

Ubuntu16.04+Python3.5+Tensorflow1.1+AI

1.docker pull smartkit/godpaper-go-ai-tensorflow

2.docker run -p 6000:6000 smartkit/godpaper-go-ai-tensorflow

Ubuntu16.04+Python3.5+Tensorflow1.1+WeiQi

Ubuntu16.04+Python3.5+Tensorflow1.1+WeiQi

1.docker pull smartkit/godpaper-tensorflow-weiqi

2.docker run -p 8080:8080 smartkit/godpaper-tensorflow-weiqi

source activate python35

pip install -r requirements

cd WeiQi & python server.py

4.http://127.0.0.1:8080/

Ubuntu16.04+PHP+Wordpress+WeiQi

@see: https://github.com/yangboz/bitnami-docker-wordpress

Ubuntu+Minikube

Inside VirtualBox

VirtualBox does not support nested virtualization, so the guest VM will not support VMX or SVM even though the host machine does. You can't run a VM inside a VM

If you really need to run Kubernetes in a VM, VMware Workstation and Player seem to support nested virtualization.

Inside VMware

Outside VirtualBox

1.minikube start

2.minikube dashboard

3.kubectl/minikube

Ubuntu+MultiChain

1.git clone https://github.com/yangboz/docker-multichain && cd docker-multichain

2.sudo docker-compose up

3.http://127.0.0.1:2750/

References

MutiChain:

http://www.multichain.com/getting-started/

http://allcoinsnews.com/2015/11/27/with-multichain-create-a-private-blockchain-in-90-seconds/

https://labs.kunstmaan.be/blog/hands-on-with-multichain

Docker:

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04

Kubernates:

https://kubernetes.io/docs/tutorials/kubernetes-basics/

Minikube:

Ubuntu(apt-get):https://gist.github.com/osowski/adce22b01fadd6e2bc3331c066d7d612

Ubuntu(deb):https://gist.github.com/stephenmw/517bc4b37508b51e070e1260e194526a

MacOSX:https://gist.github.com/kevin-smets/b91a34cea662d0c523968472a81788f7

Docker Compose to Kubernate:

https://github.com/kelseyhightower/compose2kube

Wgo.js Wordpress plugin: http://guzumi.de/wgo-plugin/

Troubleshots

1.Issue:# -- coding: utf-8 -- '0x1' issue on Python2.7. 1.Fix:upgrade to Python3.5;

2.Ubuntu 16.4 virtualization problem- MIniKub: kubernetes/minikube#1507

3.Virtualbox+Vagrant problem: Starting local Kubernetes v1.6.4 cluster...

"Starting VM... E0607 15:29:14.273063 2855 start.go:127] Error starting host: Error getting state for host: unexpected EOF."

4.Client not finding Socket.IO serve inside Docker miguelgrinberg/python-socketio#55