Migrated blog to run inside a container

Today, I migrated my Ghost blog to a Docker container running on CentOS 7. The config and content data for the blog has been pushed to https://github.com/rtnpro/rtnpro.com. The setup was pretty simple. git clone https://github.com/rtnpro/rtnpro.com cd rtnpro.com # Allow sharing this directory with a Docker container sudo chcon -Rt svirt_sandbox_file_t ./ # Allow nginx access port 2368 expose from Docker container sudo semanage port -a -t http_port_t -p tcp 2368 # Run container sudo docker run -d -ti -p 2368:2368 \ --name rtnpro_com_ghost \ -v $(pwd):/var/lib/ghost \ -v $(pwd)/themes:/usr/src/ghost/content/themes \ -e NODE_ENV=production \ ptimof/ghost cp nginx....

June 18, 2016 · Ratnadeep Debnath

Nuleculize your Docker application

It’s easier to explain things with an example. So, I will take up centos/postgresql docker image and nuleculize it for Docker and Kubernetes as providers. This post assumes that you have setup an Atomic environment on CentOS7/Fedora. If you have not done so, you can follow the instructions here. First, we’ll create scaffolding for our Nulecule PostgreSQL application. mkdir -p nulecule-postgresql/artifacts/{docker,kubernetes} touch nulecule-postgresql/{Dockerfile,LICENSE,Nulecule,README.md} touch nulecule-postgresql/docker/postgresql-app-pod_run touch nulecule-postgresql/kubernetes/{postgresql-pod,postgresql-service}.yaml Second, we’ll edit nulecule-postgresql/Nulecule file as below:...

September 7, 2015 · Ratnadeep Debnath

Setting up Atomic on CentOS 7

This post will run you through how to setup an environment Atomic apps on CentOS 7, by hand. For quickstart, you can just run the Vagrantfile at here. Setup Install dependencies # yum install docker atomic kubernetes etcd Configure docker storage pool Assuming that you have a new volume: /dev/vdb attached to your machine, configure /etc/sysconfig/docker-storage-setup as below: # cat <<EOF > /etc/sysconfig/docker-storage-setup DEVS=/dev/vdb VG=docker-vg EOF Start and enable Docker # systemctl start docker # systemctl enable docker You can run # docker info to check the new specs for docker storage pool....

August 29, 2015 · Ratnadeep Debnath