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

Commit 33e3a9f5 by Mick Hansen

Update README.md

1 parent 4186ccfb
Showing with 14 additions and 9 deletions
...@@ -142,15 +142,20 @@ get SQLite tests for free :) ...@@ -142,15 +142,20 @@ get SQLite tests for free :)
#### 3a. Docker #### 3a. Docker
If you don't feel like setting up databases and users, you can use our [docker](http://docker.io) [image](https://index.docker.io/u/mhansen/sequelize-contribution/) for sequelize contribution. If you don't feel like setting up databases and users, you can use our [docker](http://docker.io) [image](https://index.docker.io/u/mhansen/sequelize-contribution/) for sequelize contribution.
Running: 1. Getting the image:
``` sudo docker pull mhansen/sequelize-contribution`
sudo docker pull mhansen/sequelize-contribution && \
CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution) && \ 2. Start the container and save references to container id and ip:
CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER) && \ CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution)
SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all && \ CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER)
sudo docker stop $CONTAINER
``` 3. Run tests:
Will run the docker image, run all tests and stop the container again. SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all
4. Stop the container:
sudo docker stop $container
When running tests repeatedly, you only need to redo step 3 if you haven't stopped the container.
### 4. Run the tests ### ### 4. Run the tests ###
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!