Skip to content

Commit

Permalink
Use docker node image
Browse files Browse the repository at this point in the history
  • Loading branch information
antiphoton committed Sep 8, 2021
1 parent 1149c29 commit 6e96ca1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions validator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,18 @@ Now `cd amphtml/validator` and run `python build.py`.
In the case the test passes in your local machine but fails in Circle CI,
you can use docker to reproduce the test errors.

1. Start an interacitve docker container
1. Start an interactive docker container
```bash
docker run -it ubuntu bash
docker run -it node:lts-buster bash
```
1. Run following commands in the container. Note that you are already the `root` user inside the docker container.
```bash
apt update
apt install -y curl git gpg sudo
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt install -y nodejs
apt install -y sudo
git clone https://github.com/ampproject/amphtml.git
cd amphtml
npm install
npm run postinstall
.circleci/install_validator_dependencies.sh
amp validator-cpp && echo SUCCESS || echo FAIL
```
Expand Down

0 comments on commit 6e96ca1

Please sign in to comment.