Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker support #5

Merged
merged 3 commits into from
Jun 1, 2017
Merged

Add Docker support #5

merged 3 commits into from
Jun 1, 2017

Conversation

pataquets
Copy link
Contributor

I've also set up an example automated build at https://registry.hub.docker.com/u/pataquets/phpmongodb/ .
You can do a quick test by running this:

$ docker run --rm -it --net=host mongo # start a localhost-bound MongoDB node

$ docker run --rm -it --net=host -p 80:80 pataquets/phpmongodb # start a localhost-bound PHPMongoDB container

Navigate to http://localhost . Hit CTRL+C on each terminal to stop the respective container.
PM will see MongoDB because its container shares localhost network stack. To implement Docker best practices, more customizable connection options should be added (e.g. environ vars).

@pataquets
Copy link
Contributor Author

Bump

@phpmongodb
Copy link
Owner

I am going to change phpmongodb version are you want publish docker facility in first version

@pataquets
Copy link
Contributor Author

Fetched upstream changes and image rebuid triggered. Everything is working as before.

@pataquets
Copy link
Contributor Author

Note: remember to docker pull the newest image if old was already downloaded before.

@pataquets
Copy link
Contributor Author

@phpmongodb : ping

@phpmongodb phpmongodb merged commit 7bff855 into phpmongodb:master Jun 1, 2017
@phpmongodb
Copy link
Owner

@pataquets 👍

@pataquets
Copy link
Contributor Author

@phpmongodb : How about an (official) Automated Build from source on Docker Hub as a packaging method? https://docs.docker.com/docker-hub/builds/
Just a free Docker Hub account and a quick setup would do. Ping me if you need help.

@pataquets
Copy link
Contributor Author

@phpmongodb : ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants