From f307798f7345c5564aad3afba4e9a71e495afd33 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Thu, 11 Dec 2014 14:55:12 -0500 Subject: [PATCH] Create README.md --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..afbdd43 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +#YBDB + +**BikeBike Docker Container Image for Yellow Bike Dabtabase** + +Yellow Bike [Project's](http://austinyellowbike.org) Hours and Transaction [Database](http://austinyellowbike.org/about/special-projects/yellow-bike-hours-and-transaction-database/). + +##Pull the repository + +``` +docker pull bikebike/ybdb +``` + +##Run the docker container + +Publish the container's port to the host: + +>format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort + + +``` +docker run -d -p 81:80 --name="ybdb" bikebike/ybdb +``` + +###Status + +Needs to have the database populated. + +##How to test/develop inside the running container process + +This method uses [nsenter](http://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/). Check out [jpetazzo/nsenter](https://github.com/jpetazzo/nsenter) on GitHub. + +``` +sudo PID=$(docker inspect --format {{.State.Pid}} ) +sudo nsenter --target $PID --mount --uts --ipc --net --pid +```