{"id":13416485,"url":"https://github.com/komljen/dockerfile-examples","last_synced_at":"2025-04-04T16:12:55.107Z","repository":{"id":12007106,"uuid":"14587428","full_name":"komljen/dockerfile-examples","owner":"komljen","description":"Dockerfile examples","archived":false,"fork":false,"pushed_at":"2016-09-09T08:02:24.000Z","size":119,"stargazers_count":570,"open_issues_count":0,"forks_count":468,"subscribers_count":33,"default_branch":"master","last_synced_at":"2024-07-31T21:56:55.845Z","etag":null,"topics":["docker","dockerfile","dockerfile-examples"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/komljen.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}},"created_at":"2013-11-21T12:51:15.000Z","updated_at":"2024-07-31T17:18:48.000Z","dependencies_parsed_at":"2022-07-16T05:30:35.043Z","dependency_job_id":null,"html_url":"https://github.com/komljen/dockerfile-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdockerfile-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdockerfile-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdockerfile-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/komljen%2Fdockerfile-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/komljen","download_url":"https://codeload.github.com/komljen/dockerfile-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208139,"owners_count":20901570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","dockerfile","dockerfile-examples"],"created_at":"2024-07-30T21:00:59.483Z","updated_at":"2025-04-04T16:12:55.091Z","avatar_url":"https://github.com/komljen.png","language":"Shell","readme":"Dockerfile examples\n======\n\nScript env.sh reads config.yaml, so you don't need to update this script if you want to change something or to add new Docker image. Usage info:\n\n    USAGE: ./env.sh option key\n\n    Options:\n        start\n        stop\n        restart\n        build\n        rebuild\n        kill\n        rm\n        rmi\n\n    Keys from config.yaml:\n        wp\n        jenkins\n        redis\n        mongo\n        rails\n        ssg\n        ghost\n        hipache\n        abh-jmeter\n\n**NOTE:**\nImages values in config.yaml needs to match directory name where Dockerfile is located.\n\nTrusted images\n======\n\nInsted of building images on your machine you can get them from trusted image repository on public docker index:\nhttps://index.docker.io/u/komljen/\n\nIf you skip build part with env.sh script, images will be automatically pulled from docker index.\n\nImage layers\n======\n\n    |-- ubuntu:precise\n\t    |-- komljen/ubuntu\n\t        |-- komljen/redis\n\t        |-- komljen/apache\n\t        |   |-- komljen/php-apache\n\t        |       |-- komljen/wordpress\n\t        |-- komljen/nodejs\n\t        |   |-- komljen/ghost\n\t        |   |-- komljen/hipache\n\t        |-- komljen/postgres\n\t        |-- komljen/mysql\n\t        |-- komljen/mongo\n\t        |-- komljen/jdk-oracle\n\t        |   |-- komljen/tomcat\n\t        |   |-- komljen/jenkins\n\t        |   |-- komljen/maven\n\t        |       |-- komljen/jmeter-abh\n\t        |-- komljen/ruby\n\t        |   |-- komljen/ruby-rails\n\t        |       |-- komljen/ssg\n\t        |       |-- komljen/rails-sample-app\n\nDependencies\n======\n\nDocker 1.3 and above. Installation on Ubuntu 14.04:\n\n    wget -qO- https://get.docker.io/gpg | apt-key add -\n    echo \"deb http://get.docker.io/ubuntu docker main\" \u003e /etc/apt/sources.list.d/docker.list\n    apt-get update\n    apt-get -y install lxc-docker\n\nShyaml shell yaml parser:\n\n    apt-get -y install python-pip \u0026\u0026 pip install shyaml\n\nWhen all is ready clone this git repository:\n\n    git clone https://github.com/komljen/dockerfile-examples.git \u0026\u0026 cd dockerfile-examples\n\nMac OSX\n======\n\nRequirements to run docker on Mac OSX:\n\n- VirtualBox\n- brew\n\nInstall and run boot2docker:\n\n    brew install boot2docker\n    boot2docker init\n    boot2docker up\n\nExport DOCKER_HOST variable and test if docker client is connected to server:\n\n    docker ps\n    \nTools required for my env.sh script:\n\n    brew install python\n    brew install libyaml\n    pip install shyaml\n\nPort forwarding example from localhost:8080 to port 80 inside boot2docker-vm:\n    \n    VBoxManage controlvm boot2docker-vm natpf1 \"web,tcp,127.0.0.1,8080,,80\"\n\nWhen all is ready clone this git repository:\n\n    git clone https://github.com/komljen/dockerfile-examples.git \u0026\u0026 cd dockerfile-examples\n\nWordPress example\n======\n\nTo build WordPress images run ( https://github.com/komljen/dockerfile-examples#trusted-images ):\n\n    ./env.sh build wp\n\nThis command will build all images from config.yaml (wp.images) needed by WordPress.\n\n\nTo start WordPress:\n\n    ./env.sh start wp\n\nThis command will search for dependencies (wp.links) and start them first if they are present. Then it will run new container which will be linked to dependencies. Also it will read port (wp.service.port) and name (wp.service.name).\n\nWordPress installation will be available at: http://localhost\n\nAlso thanks to Docker VOLUMES you can access to Apache root directory (/var/www) or to MySQL from new container:\n\n    docker run -i -t --volumes-from wordpress --link mysql:mysql komljen/wordpress /bin/bash\n\nTo access to MySQL database from container:\n\n    mysql -h $MYSQL_PORT_3306_TCP_ADDR -u $WP_USER -p$WP_PASS\n\nHipache example\n======\n\nTo build Hipache images run ( https://github.com/komljen/dockerfile-examples#trusted-images ):\n\n    ./env.sh build hipache\n\nTo start Hipache:\n\n    ./env.sh start hipache\n\nUpdating redis configuration from new container:\n\n    docker run -t -rm --link redis:redis komljen/redis /bin/bash -c \\\n           'redis-cli -h $REDIS_PORT_6379_TCP_ADDR rpush frontend:www.dotcloud.com mywebsite'\n\nGhost example\n======\n\nTo build Ghost images run ( https://github.com/komljen/dockerfile-examples#trusted-images ):\n\n    ./env.sh build ghost\n\nTo start Ghost:\n\n    ./env.sh start ghost\n","funding_links":[],"categories":["Docker Images","Dockerfile"],"sub_categories":["Dockerfile"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomljen%2Fdockerfile-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkomljen%2Fdockerfile-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkomljen%2Fdockerfile-examples/lists"}