不要怂,就是干,撸起袖子干!

Commit 51ada8e0 by Mick Hansen

Update README.md

1 parent 85d429bb
Showing with 5 additions and 5 deletions
......@@ -144,26 +144,26 @@ If you don't feel like setting up databases and users, you can use our [docker](
Getting the image:
```console
sudo docker pull mhansen/sequelize-contribution
$ sudo docker pull mhansen/sequelize-contribution
```
Start the container and save references to container id and ip:
```console
CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution)
CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER)
$ CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution)
$ CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER)
```
Run tests:
```console
SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all
$ SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all
```
Stop the container:
```console
sudo docker stop $container
$ sudo docker stop $container
```
When running tests repeatedly, you only need to redo step 3 if you haven't stopped the container.
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!