mirror of
https://github.com/fspc/freehub.git
synced 2025-02-28 11:33:25 -05:00
Update README.md
This commit is contained in:
parent
de1e09a0b3
commit
4a876fa826
30
README.md
30
README.md
@ -1,6 +1,32 @@
|
||||
##freehub
|
||||
#freehub
|
||||
|
||||
**BikeBike Docker Container Image for freehub**
|
||||
|
||||
Member and shop visit [application](https://github.com/asalant/freehub/wiki) implemented in Rails by the [San Francisco Bike Kitchen](http://bikekitchen.org/).
|
||||
Freehub is a member and shop visit [application](https://github.com/asalant/freehub/wiki) implemented in Rails by the [San Francisco Bike Kitchen](http://bikekitchen.org/).
|
||||
|
||||
##Pull the repository
|
||||
|
||||
```
|
||||
docker pull bikebike/bikebike
|
||||
```
|
||||
|
||||
|
||||
##Run the docker container
|
||||
|
||||
Publish the container's port to the host:
|
||||
|
||||
>format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort
|
||||
|
||||
|
||||
```
|
||||
docker run -d -p 3000:3000 --name="freehub" bikebike/freehub
|
||||
```
|
||||
|
||||
##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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user