{"id":21010620,"url":"https://github.com/geoffdutton/docker-nginx-hhvm-mongo-example","last_synced_at":"2025-03-13T15:41:00.833Z","repository":{"id":34479452,"uuid":"38417697","full_name":"geoffdutton/docker-nginx-hhvm-mongo-example","owner":"geoffdutton","description":"A docker container with nginx, hhvm, and the hhvm mongofill extension.","archived":false,"fork":false,"pushed_at":"2015-07-02T07:28:53.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T11:13:00.447Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geoffdutton.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-02T07:21:51.000Z","updated_at":"2015-07-02T07:22:11.000Z","dependencies_parsed_at":"2022-08-24T13:00:17.804Z","dependency_job_id":null,"html_url":"https://github.com/geoffdutton/docker-nginx-hhvm-mongo-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffdutton%2Fdocker-nginx-hhvm-mongo-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffdutton%2Fdocker-nginx-hhvm-mongo-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffdutton%2Fdocker-nginx-hhvm-mongo-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geoffdutton%2Fdocker-nginx-hhvm-mongo-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geoffdutton","download_url":"https://codeload.github.com/geoffdutton/docker-nginx-hhvm-mongo-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243437517,"owners_count":20290857,"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":[],"created_at":"2024-11-19T09:21:45.434Z","updated_at":"2025-03-13T15:41:00.811Z","avatar_url":"https://github.com/geoffdutton.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @todo: Learn markdown\n\n# docker-nginx-hhvm-mongo-example\nA docker container with nginx, hhvm, and the hhvm mongofill extension.\n\n###########################################################################################\n#\n# If you're not on a Mac, this may or may not apply.\n# Grab a beer and/or a bowl... this could be a bit\n#\n###########################################################################################\n\n\n# We'll be using HHVM because it's fast as balls\n# http://hhvm.com/\n\n# download and install Boot2Docker: https://github.com/boot2docker/osx-installer/releases\n\n# you need to install VirtualBox first: http://download.virtualbox.org/virtualbox/4.3.28/VirtualBox-4.3.28-100309-OSX.dmg\n# Using boot2docker https://github.com/boot2docker/osx-installer/releases/download/v1.7.0/Boot2Docker-1.7.0.pkg\n\n# Here's the Docker docs that you won't read right now: https://docs.docker.com/\n\nboot2docker up\n\n# you'll see it has some output like below\n\n# Waiting for VM and Docker daemon to start...\n# .............ooo\n# Started.\n# Writing ~/.boot2docker/certs/boot2docker-vm/ca.pem\n# Writing ~/.boot2docker/certs/boot2docker-vm/cert.pem\n# Writing ~/.boot2docker/certs/boot2docker-vm/key.pem\n# Your environment variables are already set correctly.\n\n# When you open a new shell/terminal window, you'll need to initialize\n# the boot2docker environment variables, so I made an alias\n\n# fill in your .aliases \necho \"alias initb2d='eval $(boot2docker shellinit)'\" \u003e ~/.aliases \u0026\u0026 source ~/.aliases\n\n###########################################################################################\n#\n# Time to build, buckle up\n#\n###########################################################################################\n\n# Let's make sure we have our environment variables set, otherwise you'll see this crap:\n# $ docker ps\n# Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?\n\ninitb2d\ncd ~/Projects/docker-nginx-hhvm-example\n\n# build that bitch\n# the -t means what we're calling/tagging this image as\ndocker build -t nginx-hhvm-mongo-example .\n\n# you'll see a bunch of output, hopefully it actually works\n\n# if you see \"Do you want to continue? [Y/n] Abort\", followed by \"The command 'bin/sh -c sudo...'\"\n# it generally means you for the add the -y argument to the sudo apt-upgrade and/or\n# sudo apt-get install in the Dockerfile\n\n# you should see \"Successfully built...\"\n# you'll see it listed if you run\ndocker images\n\n# Now let's fire it up\n\n# -t=false        : Allocate a pseudo-tty\n# -i=false        : Keep STDIN open even if not attached\n# --rm            : Will remove the container when we're done running, just do it\n# -p              : The port that the docker virtual image will listen, i.e.\n#                     the one we will connect to\n\ndocker run -it --rm --name our_first_run -p 9669:80 nginx-hhvm-mongo-example\n\n# it will be running in the foreground, so open another terminal and type:\ninitb2d \u0026\u0026 docker ps\n\n# you should see 'our_first_run'\n\n# Now let's browser to it...\n# 'boot2docker ip' gives you the IP of the virtual machine that's \"hosting\"\n# the docker container we are running\nopen http://$(boot2docker ip):9669\n\n\n# when we're satisfied, let's remove all open containers (there should be only one,\n# but this comes in handy when you start really getting into it)\n\n# docker ps : Lists the current running containers, the -a lists all of the containers\n# Think of a container as a virtual machine instance that you can start and stop\n# while a docker image is a \"let's start from scratch and build it from the ground up\"\n\ndocker stop $(docker ps -a -q)\ndocker rm $(docker ps -a -q)\n\n# Finally, let's tag it with a version numbers to sort finalize the build\ndocker build -t nginx-hhvm-mongo-example:1.0.0 .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoffdutton%2Fdocker-nginx-hhvm-mongo-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeoffdutton%2Fdocker-nginx-hhvm-mongo-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeoffdutton%2Fdocker-nginx-hhvm-mongo-example/lists"}