Pages

Tuesday, December 17, 2013

Fedora Dockerfiles

***********************************
These repos will not be updated any longer.   See:

http://www.colliernotes.com/2014/01/ok-so-playing-with-git-to-mirror-my.html

For the new repo.
***********************************


So I've been playing with Docker a bit lately. I have taken some of the dockerfiles that I have seen for Ubuntu and ported those over to Fedora.

To get started, just install Docker on Fedora:

http://goldmann.pl/blog/2013/12/03/even-more-docker-fedora-news/

Once you have Docker installed, you can build several ways. Have a look below. Just replace _username_ with your name. Be sure to check out the README for each container. Feedback is welcomed.
MongoDB:

docker build -rm -t _username_/mongo git://github.com/scollier/dockerfiles-fedora-mongodb.git

https://github.com/scollier/dockerfiles-fedora-mongodb/blob/master/README.md

Wordpress:

docker build -rm -t _username_/wordpress git://github.com/scollier/dockerfiles-fedora-wordpress.git

https://github.com/scollier/dockerfiles-fedora-wordpress/blob/master/README.md

SSH:

docker build -rm -t _username_/ssh git://github.com/scollier/dockerfiles-fedora-ssh.git

https://github.com/scollier/dockerfiles-fedora-ssh/blob/master/README.md

CouchDB:

docker build -rm -t _username_/couchdb git://github.com/scollier/dockerfiles-fedora-couchdb.git

https://github.com/scollier/dockerfiles-fedora-couchdb/blob/master/README.md

Memcached:

docker build -rm -t _username_/memcached git://github.com/scollier/dockerfiles-fedora-memcached.git

https://github.com/scollier/dockerfiles-fedora-memcached/blob/master/README.md

rabbitmq:

docker build -rm -t _username_/rabbitmq git://github.com/scollier/dockerfiles-fedora-rabbitmq.git

https://github.com/scollier/dockerfiles-fedora-rabbitmq/blob/master/README.md

nginx:

docker build -rm -t _username_/nginx git://github.com/scollier/dockerfiles-fedora-nginx.git

https://github.com/scollier/dockerfiles-fedora-nginx/blob/master/README.md

Apache:

docker build -rm -t _username_/apache git://github.com/scollier/dockerfiles-fedora-apache.git

https://github.com/scollier/dockerfiles-fedora-apache/blob/master/README.md


These were all tested with Docker 0.7.0.



Tuesday, June 18, 2013

Cleaning up DNS records

Identify the CNAME records that I need to remove:

for i in $(grep CNAME slaves/osop.cloud.lab.x.x.x.com | awk '{ print $1 }'); \ do echo "update delete $i.osop.cloud.lab.x.x.x.com CNAME" >> \ /pub/projects/openshift/ddns_configuration/zone_update.txt; \ done

Do a bit of cleanup:
vi /pub/projects/openshift/ddns_configuration/zone_update.txt 

nsupdate -k /var/named/Kosop.cloud.lab.x.x.x.com.+157+06745.key -v \
/pub/projects/openshift/ddns_configuration/zone_update.txt 

rndc freeze; rndc thaw; service named restart 

vi slaves/osop.cloud.lab.x.x.x.com 

for i in $(grep TXT slaves/osop.cloud.lab.x.x.x.com | awk '{ print $1 }'); \
  do echo "update delete $i.osop.cloud.lab.x.x.x.com TXT" >> file1;  \
done 

cat file1 >> /pub/projects/openshift/ddns_configuration/zone_update.txt 

vi /pub/projects/openshift/ddns_configuration/zone_update.txt