diff --git a/.circleci/config.yml b/.circleci/config.yml index 1a4e9df..2c3eddc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -39,7 +39,7 @@ jobs: vault: docker: - - image: circleci/node:10 + - image: circleci/node:10-browsers working_directory: ~/offen/vault steps: - checkout: @@ -55,7 +55,7 @@ jobs: key: offen-vault-{{ checksum "package.json" }} - run: name: Run tests - command: npm test + command: npm test -- --allow-chrome-as-root workflows: version: 2 diff --git a/README.md b/README.md index fffd36d..6d5b527 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,8 @@ To work on the `vault` you will need to install `docker-compose`. First, install the project's dependencies: ``` -docker-compose run vault npm install +cd vault +npm install ``` Run the server: @@ -53,7 +54,8 @@ docker-compose up Run the tests: ``` -docker-compose run vault npm test +cd vault +npm test ``` diff --git a/docker-compose.yml b/docker-compose.yml index 687be1c..04a56ff 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,10 +19,10 @@ database: - POSTGRES_PASSWORD=develop vault: - image: node:10-alpine + image: node:10 working_dir: /vault volumes: - ./vault:/vault - command: npm start + command: npm start -- --port 9977 ports: - - 3000:3000 + - 9977:9977