1
0
mirror of https://github.com/fspc/ybdb.git synced 2025-02-28 18:43:23 -05:00

Create README.md

This commit is contained in:
Jonathan Rosenbaum 2014-12-11 14:55:12 -05:00
parent 6de6702485
commit f307798f73

35
README.md Normal file
View File

@ -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}} <container_name_or_ID>)
sudo nsenter --target $PID --mount --uts --ipc --net --pid
```