docker internal Jan 01, 0001

docker-base

Abstract

本文在现有文档的基础上总结了以下几点内容

  1. docker的介绍,包括由来、适用场景等

  2. docker背后的一系列技术 - namespace, cgroup, lxc, aufs等

  3. docker在利用LXC的同时提供了哪些创新

    ...
git commit修改前一次提交的方法 Jan 01, 0001

方法一:用–amend选项

#修改需要修改的地方。
git add .
git commit –amend

注:这种方式可以比较方便的保持原有的Change-Id,推荐使用。

方法二:先reset,再修改

这是可以完全控制上一次提交内容的方法。但在与Gerrit配合使用时,需特别注意保持同一个commit的多次提交的Change-Id是不变的。为了保持提交到Gerrit的Change不变,需要复制对应的Change-Id到commit msg的最后,可以到Gerrit上对应的Change去复制.

...
Going Native with OpenStack Centric Applications: Murano Jan 01, 0001

Following on our previous discussion surveying the projects supporting applications within OpenStack, let’s continue our review with an in-depth look at the OpenStack-native Application Catalog: Murano, currently an incubation status project, having seen its functionality and core services integration advanced over the past few OpenStack releases.

What is it?

An application catalog developed by Mirantis, HP and others (now including Cisco), that allows application developers and cloud administrators to publish applications in a categorized catalog to be perused and deployed by application consumers. The selection of applications available within the catalog is intended to be that of released versions (ready-state) of applications (cloud-native or enterprise-architected), not application versions that are mid-development. Ideally, these are applications ready to be consumed and run by application users.

...
Hello World Jan 01, 0001

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

How enable OpenStack allinone vm to access external network Jan 01, 0001

首先需要为OpenStack添加一个公网网络,假设All-in-one环境建的公网网段为10.10.10.0/24,公网网关为10.10.10.1。这样为虚拟机绑定公网IP后,由于网关是不存在的,虚拟机无法访问外网。那虚拟机如果想访问外网怎么办呢?

...
How to disable ubuntu services Jan 01, 0001

To toggle a service from starting or stopping permanently you would need to:

echo manual | sudo tee /etc/init/SERVICE.override

where the stanza manual will stop Upstart from automatically loading the service on next boot. Any service with the .override ending will take precedence over the original service file. You will only be able to start the service manually afterwards. If you do not want this then simply delete the .override. For example:

...
How to use docker compose to deploy a flask app Jan 01, 0001

The flask app is very simple, you have an index page where your can write and read comments.

To start

So what we need ?

In my case a Digital Ocean droplet (I’m using Fedora 21).

So, first of all we connect to our vm with ssh.

$ ssh root@yourvmip

Now that we are inside we need to install git, Docker and docker-compose.

$ yum -y install git docker python-pip
$ pip install docker-compose==1.1.0-rc2
$ systemctl start docker
$ systemctl enable docker

That’s all we need to play with Docker.

...
Hypernetes The multi tenant Kubernetes distribution Jan 01, 0001

The Caas Revolution”. This is what we believe is happening today in the Cloud ecosystem. This revolution has been started by the now famous project (and company) Docker, and embraced by Cloud providers like Google and AWS.

However, most multi-tenant CaaS solutions today run on a public IaaS, and use fully isolated virtual machine clusters to schedule containers. This is in contrast to the solely container-based implementation provided in private CaaS deployments. The public “hybrid” VM/container isolation approach is a direct result from the shared kernel architecture in container technology.

...
Hypernetes wechat share Jan 01, 0001

今天给大家介绍下最近在Hypernetes上做的工作。

Hypernetes是一个真正多租户的Kubernetes Distro。

Hypernetes在Kubernetes基础上增加了多租户认证授权、容器SDN网络、基于Hyper的容器执行引擎以及基于Cinder的持久化存储等。

...
Installing nova docker on OpenStack Juno Jan 01, 0001

This post comes about indirectly by a request on IRC in #rdo for help getting nova-docker installed on Fedora 21. I ran through the process from start to finish and decided to write everything down for posterity.

Getting started I started with the Fedora 21 Cloud Image, because I’m installing onto OpenStack and the cloud images include some features that are useful in this environment.

We’ll be using OpenStack packages from the RDO Juno repository. Because there is often some skew between the RDO packages and the current Fedora selinux policy, we’re going to start by putting SELinux into permissive mode (sorry, Dan):

...