{"id":39960994,"url":"https://github.com/tpayne/docker-examples","last_synced_at":"2026-01-18T21:08:06.603Z","repository":{"id":85707478,"uuid":"239155256","full_name":"tpayne/docker-examples","owner":"tpayne","description":"Example Docker and Kubernetes scripts ","archived":false,"fork":false,"pushed_at":"2025-12-19T10:29:19.000Z","size":285,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-22T03:52:02.418Z","etag":null,"topics":["deployment","docker","docker-files","examples","kubernetes"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tpayne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-08T15:33:39.000Z","updated_at":"2025-06-10T00:28:39.000Z","dependencies_parsed_at":"2025-12-17T00:00:18.063Z","dependency_job_id":null,"html_url":"https://github.com/tpayne/docker-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tpayne/docker-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpayne%2Fdocker-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpayne%2Fdocker-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpayne%2Fdocker-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpayne%2Fdocker-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpayne","download_url":"https://codeload.github.com/tpayne/docker-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpayne%2Fdocker-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28550650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","docker","docker-files","examples","kubernetes"],"created_at":"2026-01-18T21:08:06.477Z","updated_at":"2026-01-18T21:08:06.597Z","avatar_url":"https://github.com/tpayne.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker/Kubernetes Examples Repo\n===============================\n\nThis repo contains various examples of Docker files that have been created to help people get started with Docker and\nKubernetes.\n\nStatus\n------\n````\nDocker Example Status: Ready for use\nKubernetes Example Status: Ready for use\n````\n\nBuild CI/Testing Status\n-----------------------\nThis repo is automatically verified with the `GitHub` build system. If you want to see an example of a build,\nclick on the button below.\n\n[![CI](https://github.com/tpayne/docker-examples/actions/workflows/main.yml/badge.svg)](https://github.com/tpayne/docker-examples/actions/workflows/main.yml)\n[![GitHub CR Build and Push](https://github.com/tpayne/docker-examples/actions/workflows/docker-build-push.yml/badge.svg)](https://github.com/tpayne/docker-examples/actions/workflows/docker-build-push.yml)\n\nKubernetes Examples\n===================\nThe examples contained in this repo run on GCP and standard Kubernetes. They are sequences of `kubectl` commands\nthat show what Kubernetes can do. \n\nThey can be found in the `samples/kubernetes` directory. You will need to install or have access to a Kubernetes \nor GKE system to run them. They also rely on the Docker images having been created.\n\nDocker Examples\n===============\nThe examples contained in this repo run on various flavours of Linux. The examples are driven by a set of simple makefiles.\n\nPre-requisites\n--------------\nBefore running these examples you will need to have installed `GNUMake` or other Make and `Docker`.\n\nDownloading the Repo\n--------------------\nFirst download the repo using git\n\n\t% git clone https://github.com/tpayne/docker-examples.git\n\t% cd docker-examples\n\nRunning the Demos\n-----------------\nTo run the examples simply do the following...\n\n\t% cd samples; gmake \n  \nThis will build all the examples.\n\nTo clean up, simply repeat with the clean target\n\n\t% cd samples; gmake clean\n  \nThe examples will run various Dockerfiles building containers for `Centos`, `OpenSuse` and `Busybox`.\n\nMore examples will be added at a later date.\n\nSo, what next?\n--------------\nTo show and run the containers you have just created, you can use the following commands...\n\n\t% docker images\n    REPOSITORY                TAG                 IMAGE ID            CREATED              SIZE\n    dockerfilesuse.img        latest              8eb7d429b10c        1 second ago         316MB\n    dockerfilepostgres.img    latest              78471a1dc2ff        About a minute ago   486MB\n    dockerfileminecraft.img   latest              e3aaa6b77dae        2 minutes ago        487MB\n    dockerfilemediawiki.img   latest              592aade42d4b        3 minutes ago        2.2GB\n    dockerfilejenkins.img     latest              412a063b5b4e        14 minutes ago       876MB\n    dockerfilemongodb.img     latest              2c9bf248cced        16 minutes ago       981MB\n    dockerfilewebserver.img   latest              4523f5f7003f        17 minutes ago       154MB\n    dockerfileubuntu.img      latest              9dd9893c98e2        18 minutes ago       476MB\n    dockerfilebasic.img       latest              ccd0b50f1482        19 minutes ago       387MB\n    dockerfiledevenvadv.img   latest              a010f42e17a4        19 minutes ago       1.21GB\n    dockerfiledevenv.img      latest              53b4edc3db85        20 minutes ago       1.17GB\n    dockerfilesimple.img      latest              cf3afa09e1a4        22 minutes ago       1.22MB\n    ubuntu                    latest              72300a873c2c        7 days ago           64.2MB\n    opensuse/leap             latest              38924343a351        2 weeks ago          103MB\n    centos                    latest              470671670cac        6 weeks ago          237MB\n    busybox                   latest              6d5fcfe5ff17        2 months ago         1.22MB\n\nThe `docker images` command lists all the images you have created. You can then run them via the `docker run` command\nas shown in the example below...\n\n\t% docker run -i -t dockerfiledevenv.img \n\t[root@21b717998a7c /]# df -H\n\tFilesystem      Size  Used Avail Use% Mounted on\n\toverlay          63G  5.6G   54G  10% /\n\ttmpfs            68M     0   68M   0% /dev\n\ttmpfs           1.1G     0  1.1G   0% /sys/fs/cgroup\n\t/dev/sda1        63G  5.6G   54G  10% /etc/hosts\n\tshm              68M     0   68M   0% /dev/shm\n\ttmpfs           1.1G     0  1.1G   0% /proc/acpi\n\ttmpfs           1.1G     0  1.1G   0% /sys/firmware\n\t[root@21b717998a7c /]# gcc --version\n\tgcc (GCC) 8.3.1 20190507 (Red Hat 8.3.1-4)\n\tCopyright (C) 2018 Free Software Foundation, Inc.\n\tThis is free software; see the source for copying conditions.  There is NO\n\twarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\t\n\t[root@21b717998a7c /]# lscpu\n\tArchitecture:        x86_64\n\tCPU op-mode(s):      32-bit, 64-bit\n\tByte Order:          Little Endian\n\tCPU(s):              4\n\tOn-line CPU(s) list: 0-3\n\tThread(s) per core:  1\n\tCore(s) per socket:  1\n\tSocket(s):           4\n\tVendor ID:           GenuineIntel\n\tCPU family:          6\n\tModel:               58\n\tModel name:          Intel(R) Core(TM) i7-3840QM CPU @ 2.80GHz\n\tStepping:            9\n\tCPU MHz:             2791.549\n\tBogoMIPS:            5583.09\n\tL1d cache:           32K\n\tL1i cache:           32K\n\tL2 cache:            256K\n\tL3 cache:            8192K\n\t[root@21b717998a7c /]# exit \n\nReplace `dockerfiledevenv.img` with the container name you wish to use.\n\nDocker Files\n------------\nThe following table contains the file descriptions.\n\n\u003e| Docker File | Description | \n\u003e| ----------- | ----------- |\n\u003e| `busybox/DockerFileSimple.docker` | Docker file to setup a Busybox container and run some commands on it |\n\u003e| `centos/DockerFileBasic.docker` | Docker file to setup a Centos container and install some packages on it |\n\u003e| `centos/DockerFileDevEnv.docker` | Docker file to setup a Centos container and install a dev environment on it |\n\u003e| `centos/DockerFileDevEnvAdv.docker` | Docker file to setup a Centos container, install a dev environment on it, then create some users plus groups |\n\u003e| `opensuse/DockerFileSuse.docker` | Docker file to setup an OpenSUSE container and install some packages on it |\n\u003e| `ubuntu/DockerFileJenkins.docker` | Docker file to setup an Ubuntu container and a Jenkins CI server in it |\n\u003e| `ubuntu/DockerFileKubernetes.docker` | Docker file to setup an Ubuntu container and Docker/Kubernetes into it |\n\u003e| `ubuntu/DockerFileMediaWiki.docker` | Docker file to setup an Ubuntu container and a MediaWiki server in it |\n\u003e| `ubuntu/DockerFileMinecraft.docker` | Docker file to setup an Ubuntu container and a Minecraft server in it |\n\u003e| `ubuntu/DockerFileMongoDB.docker` | Docker file to setup an Ubuntu container and a Mongo NoSQL DB server in it |\n\u003e| `ubuntu/DockerFilePostgres.docker` | Docker file to setup an Ubuntu container and a PostgreSQL DB server in it |\n\u003e| `ubuntu/DockerFileUbuntu.docker` | Docker file to setup an Ubuntu container and install some packages on it |\n\u003e| `ubuntu/DockerFileWebServer.docker` | Docker file to setup an Ubuntu container and a webserver in it |\n\nLiability Warning\n=================\nThe contents of this repository (documents and examples) are provided “as-is” with no warrantee implied \nor otherwise about the accuracy or functionality of the examples.\n\nYou use them at your own risk. If anything results to your machine or environment or anything else as a \nresult of ignoring this warning, then the fault is yours only and has nothing to do with me.\n\nNote - The docker files worked at time of creation, but I often find that Ubuntu repos often get \"screwed\", so\ndo not be surprised if the docker files need maintenance. I might do this sometimes, but only as I need to.\n\nLicensing\n=========\nThis software is licensed using the terms and provisions of the [MIT license](https://en.wikipedia.org/wiki/MIT_License).\n\nGoogle packages are release under their licensing - Apache 2.0\n\nNotes\n=====\n- Windows references - https://github.com/MicrosoftDocs/Virtualization-Documentation/tree/main/windows-container-samples\n- https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile#:~:text=%20Dockerfile%20on%20Windows%20%201%20Basic%20Syntax.,Dockerfile%20with%20the%20RUN%20operation.%20PowerShell%27s...%20More%20\n\nUseful Samples\n==============\n- https://github.com/oracle/docker-images/tree/main/OracleDatabase\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpayne%2Fdocker-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpayne%2Fdocker-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpayne%2Fdocker-examples/lists"}