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

Commit d8202b1d by Mick Hansen

Update README.md

1 parent 18944654
Showing with 16 additions and 17 deletions
......@@ -105,21 +105,16 @@ a productive developer, I would recommend the latest v0.8. Also I usually recomm
Once Node.JS is installed on your computer, you will also have access to the lovely
Node Package Manager (NPM).
#### 1a. Docker
If you don't feel like setting up databases and users, you can use our [docker](http://docker.io) image for sequelize contribution.
### 2. Install the dependencies ###
Running:
```
sudo docker pull mhansen/sequelize-contribution && \
CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution) && \
CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER) && \
SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all && \
sudo docker stop $CONTAINER
Just "cd" into sequelize directory and run `npm install`, see an example below:
```console
$ cd path/to/sequelize
$ npm install
```
Will run the docker image, run all tests and stop the container again.
### 2. Database... Come to me! ###
### 3. Database... Come to me! ###
First class citizen of Sequelize was MySQL. Over time, Sequelize began to
become compatible to SQLite and PostgreSQL. In order to provide a fully
......@@ -144,15 +139,19 @@ $ echo "CREATE DATABASE sequelize_test;" | mysql -uroot
**AND ONE LAST THING:** Once `npm install` worked for you (see below), you'll
get SQLite tests for free :)
#### 3a. Docker
If you don't feel like setting up databases and users, you can use our [docker](http://docker.io) image for sequelize contribution.
### 3. Install the dependencies ###
Just "cd" into sequelize directory and run `npm install`, see an example below:
Running:
```
sudo docker pull mhansen/sequelize-contribution && \
CONTAINER=$(sudo docker run -d -i -t mhansen/sequelize-contribution) && \
CONTAINER_IP=$(sudo docker inspect -format='{{.NetworkSettings.IPAddress}}' $CONTAINER) && \
SEQ_HOST=$CONTAINER_IP SEQ_USER=sequelize_test make all && \
sudo docker stop $CONTAINER
```console
$ cd path/to/sequelize
$ npm install
```
Will run the docker image, run all tests and stop the container again.
### 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!