Skip to content

Commit

Permalink
Merge pull request #2 from techinasia/dev
Browse files Browse the repository at this point in the history
Puppeteer 1.8.0 on Node 10.9
  • Loading branch information
lesterchan authored Sep 10, 2018
2 parents 45620f4 + 30a4a82 commit 753db1e
Show file tree
Hide file tree
Showing 7 changed files with 1,657 additions and 1,201 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ jobs:
build_test_deploy:
working_directory: ~/rendeer
docker:
- image: circleci/node:8.4-browsers
- image: circleci/node:10.9-browsers
steps:
- checkout
- run: 'sudo apt install python-pip python-dev'
- run: 'sudo easy_install six==1.9.0'
- run: 'sudo pip install awsebcli'
- run: 'yarn'
- run: 'yarn run lint'
- run: 'npm install'
- run: 'npm run lint'
- deploy:
name: Deploy to Production
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
eb init Rendeer -r ap-southeast-1 -p "arn:aws:elasticbeanstalk:ap-southeast-1::platform/Docker running on 64bit Amazon Linux/2.9.2"
eb init Rendeer -r ap-southeast-1 -p "arn:aws:elasticbeanstalk:ap-southeast-1::platform/Docker running on 64bit Amazon Linux/2.12.2"
eb deploy
fi
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# single application.
FROM gcr.io/google_appengine/nodejs
LABEL name="rendeer" \
version="1.0.1" \
version="1.2.0" \
description="When Puppeteer meets Prerender"

RUN apt-get update && apt-get install -y gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget

RUN /usr/local/bin/install_node '>=7.6'
RUN /usr/local/bin/install_node '>=10.9'

COPY . /app/

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ When Puppeteer meets Prerender

## Lint
```
yarn run lint
npm run lint
```

## Run
```
yarn run start
npm run start
```

## Deploy
```
pip install awsebcli
eb init Rendeer -r ap-southeast-1 -p "arn:aws:elasticbeanstalk:ap-southeast-1::platform/Docker running on 64bit Amazon Linux/2.9.2"
eb init Rendeer -r ap-southeast-1 -p "arn:aws:elasticbeanstalk:ap-southeast-1::platform/Docker running on 64bit Amazon Linux/2.12.2"
eb deploy
```

Expand Down
Loading

0 comments on commit 753db1e

Please sign in to comment.