BikeBike Docker Container Image for freehub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
997 B

10 years ago
#freehub
10 years ago
**BikeBike Docker Container Image for freehub**
10 years ago
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/).
10 years ago
10 years ago
##Pull the repository
```
10 years ago
docker pull bikebike/freehub
10 years ago
```
##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
```
10 years ago
##Password
Password is *test* for **greeter**, **sfbk**, **mechanic**, **scbc**, **cbi**, **admin**.
10 years ago
##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
```