Contains 50+ DockerHub repos with 340+ tags, many different versions of standard official open source software, see Full Inventory futher down
These docker images are tested by hundreds of tools and also used in the full functional test suites of various other GitHub repos.
See also the Kubernetes configs repo.
Overview - this repo contains:
These images are all available pre-built on My DockerHub - https://hub.docker.com/u/harisekhon/.
These are reusable tests that can anybody can implement and can be found in my DevOps Python Tools and DevOps Bash Tools repos as well as the Advanced Nagios Plugins Collection which contains hundreds of technology specific API-level test programs to ensure the docker images are functioning as intended.
Continuous Integration in run on this and adjacent repos that form a bi-directional validation between these docker images and several other repositories full of hundreds of programs. All of this is intended to keep the quality of this repo as high as possible.
Hari Sekhon
Cloud & Big Data Contractor, United Kingdom
(ex-Cloudera, former Hortonworks Consultant)
(you're welcome to connect with me on LinkedIn)
docker search harisekhon
docker run harisekhon/nagios-plugins
To see more than the 25 DockerHub repos limited by docker search
(docker issue 23055) I wrote dockerhub_search.py
using the DockerHub API, available in my DevOps Python Tools github repo and as a pre-built docker image:
docker run harisekhon/pytools dockerhub_search.py harisekhon
There are lots of tagged versions of official software in my repos to allow development testing across multiple versions, usually more versions than available from the official repos (and new version updates available on request, just raise a GitHub issue).
DockerHub tags are not shown by docker search
(docker issue 17238) so I wrote dockerhub_show_tags.py
available in my DevOps Python Tools github repo and as a pre-built docker image - eg. to see an organized list of all CentOS tags:
docker run harisekhon/pytools dockerhub_show_tags.py centos
For service technologies like Hadoop, HBase, ZooKeeper etc for which you'll also want port mappings, each directory in the GitHub project contains both a standard docker-compose
configuration as well as a make run
shortcut (which doesn't require docker-compose
to be installed) - either way you don't have to remember all the command line switches and port number specifics:
cd zookeeper
docker-compose up
or for technologies with interactive shells like Spark, ZooKeeper, HBase, Drill, Cassandra where you want to be dropped in to an interactive shell, use the make run
shortcut instead:
cd zookeeper
make run
which is much easier to type and remember than the equivalent bigger commands like:
docker run -ti -p 2181:2181 harisekhon/zookeeper
and avoid this for more complex services like Hadoop / HBase:
docker run -ti -p 2181:2181 -p 8080:8080 -p 8085:8085 -p 9090:9090 -p 9095:9095 -p 16000:16000 -p 16010:16010 -p 16201:16201 -p 16301:16301 harisekhon/hbase
docker run -ti -p 8020:8020 -p 8032:8032 -p 8088:8088 -p 9000:9000 -p 10020:10020 -p 19888:19888 -p 50010:50010 -p 50020:50020 -p 50070:50070 -p 50075:50075 -p 50090:50090 harisekhon/hadoop
More specific information can be found in the readme page under each respective directory in the Dockerfiles git repo.
Repos suffixed with -dev
are the official technologies + development & debugging tools + my github repos with all dependencies pre-built.
You might like this Dockerfile trick for busting the Docker cache to get the latest repo updates:
# Cache Bust upon new commits
ADD https://api.github.com/repos/HariSekhon/DevOps-Bash-tools/git/refs/heads/master /.git-hashref
harisekhon/tools
- DevOps Tools superset of the below images, containing hundreds of programs:
alpine
, centos
, debian
, fedora
and ubuntu
buildsArtist - Track
form by querying the Spotify API - readmeMy GitHub repo pre-built on major Linux distros with CLI programs located at /github/<project>
Available as both harisekhon/github:<distro>
and harisekhon/<distro>-github
for convenience, and to allow shorter use of :latest
by using just harisekhon/github
harisekhon/github:latest
is the same as harisekhon/github:ubuntu
Available as both harisekhon/<distro>-dev
and harisekhon/dev:<distro>
harisekhon/dev:latest
is the same as harisekhon/dev:ubuntu
All builds use OpenJDK with jre
and jdk
numbered tags. See this article below for why it might be illegal to bundle Oracle Java (and why no Linux distributions do this either):
https://www.javacodegeeks.com/2016/03/running-java-docker-youre-breaking-law.html
All images come pre-built on DockerHub but if you want to compile from source for any reason such as developing improvements, I've made this easy to do:
git clone https://github.com/HariSekhon/Dockerfiles
cd Dockerfiles
To build all Docker images, just run the make
command at the top level:
make
To build a specific Docker image, enter its directory and run make
:
cd nagios-plugins
make
You can also build a specific version by checking out the git branch for the version and running the build:
cd consul
git checkout consul-0.9
make
or build all versions of a given software project like so:
cd hadoop
make build-versions
See the top level Makefile
as well as the Makefile.in
which is sourced per project with any project specific overrides in the <project_directory>/Makefile
.
Please raise tickets for issues and improvements at https://github.com/HariSekhon/Dockerfiles/issues
The rest of my original source repos are here.
Pre-built Docker images are available on my DockerHub.