Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2c20f5d
Added waitForFunction to /pdf
andrewcretin Jun 9, 2021
d7f32c5
Updated Dockerfile
andrewcretin Jun 9, 2021
8536d1f
renaming docker repo
andrewcretin Jun 9, 2021
a48b29e
remove extra puppeteer versions
andrewcretin Jun 9, 2021
a48d3ec
Add VERSION=latest to deply-base
andrewcretin Jun 10, 2021
f52c34f
Using budsense/base
andrewcretin Jun 10, 2021
b9c3257
budsense/chrome as base
andrewcretin Jun 10, 2021
9985240
Updated dockerfile to use port 80
andrewcretin Jun 14, 2021
6559d55
Reverting back to port 3000
andrewcretin Jun 14, 2021
03b4afe
Added waitForFunction to screenshot endpoint
andrewcretin Jun 16, 2021
b756ea0
Updated default timeout to 60s
andrewcretin Jun 23, 2021
d07c1ca
- Disable Puppeteer timeout on pdf/screenshot
andrewcretin Jun 24, 2021
3cced21
Support emulateMedia and extend on screenshot function
andrewcretin Mar 4, 2022
6909939
Merge branch 'upstream' into main-upstream-update
andrewcretin Mar 4, 2022
97f0b0a
Merge branch 'master'
andrewcretin Jul 4, 2022
0f87d25
Removed old versions from package.json chromeVersions
andrewcretin Jul 5, 2022
d5a3533
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 5, 2022
55d812f
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 5, 2022
d27427a
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 6, 2022
274dfca
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 6, 2022
9dadf2c
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 6, 2022
0d2f0d3
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 6, 2022
656bf1c
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 6, 2022
a38e8b0
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Jul 6, 2022
58ae934
DEPLOY.js committing files for tag 1.53.0-puppeteer-10.4.0
andrewcretin Jul 6, 2022
df22e36
DEPLOY.js committing files for tag 1.53.0-puppeteer-9.1.1
andrewcretin Jul 6, 2022
1a00b1c
Updated node version and hosting browserless/base in private docker c…
andrewcretin Jul 6, 2022
233b795
Updated connection timeout from 60s to 120s
andrewcretin Mar 20, 2023
43180f8
DEPLOY.js committing files for tag 1.53.0-puppeteer-14.4.1
andrewcretin Mar 20, 2023
de3927a
DEPLOY.js committing files for tag 1.53.0-puppeteer-10.4.0
andrewcretin Mar 20, 2023
c524bb3
DEPLOY.js committing files for tag 1.53.0-puppeteer-9.1.1
andrewcretin Mar 20, 2023
98958f7
Merge branch 'master' into main-update
andrewcretin Mar 21, 2023
2ef9ced
renamed browserless to budsense
andrewcretin Mar 21, 2023
a98874f
removed puppeteer-16.2.0
andrewcretin Mar 21, 2023
ba972de
Merge branch 'main-update' of https://github.com/mobilefirstdev/chrom…
andrewcretin Mar 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docker-chrome-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2

- name: Build the chrome-stable image
run: docker build --build-arg "USE_CHROME_STABLE=true" -t browserless/chrome:stable .
run: docker build --build-arg "USE_CHROME_STABLE=true" -t budsense/chrome:stable .

- name: Test the chrome-stable image
run: docker run --ipc=host -e CI=true --entrypoint ./test.sh browserless/chrome:stable
run: docker run --ipc=host -e CI=true --entrypoint ./test.sh budsense/chrome:stable
10 changes: 5 additions & 5 deletions .github/workflows/docker-chromium-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Build the latest browserless/base image
run: docker build -t browserless/base:latest base
- name: Build the latest budsense/base image
run: docker build -t budsense/base:latest base

- name: Build the latest browserless/chrome image
run: docker build --build-arg BASE_VERSION=latest -t browserless/chrome:latest .
- name: Build the latest budsense/chrome image
run: docker build --build-arg BASE_VERSION=latest -t budsense/chrome:latest .

- name: Test the latest image
run: docker run --ipc=host -e CI=true --entrypoint ./test.sh browserless/chrome:latest
run: docker run --ipc=host -e CI=true --entrypoint ./test.sh budsense/chrome:latest
4 changes: 2 additions & 2 deletions .github/workflows/docker-chromium-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2

- name: Build the latest image
run: docker build -t browserless/chrome:latest .
run: docker build -t budsense/chrome:latest .

- name: Test the latest image
run: docker run --ipc=host -e CI=true --entrypoint ./test.sh browserless/chrome:latest
run: docker run --ipc=host -e CI=true --entrypoint ./test.sh budsense/chrome:latest
4 changes: 2 additions & 2 deletions .github/workflows/publish-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
builder: ${{ steps.buildx.outputs.name }}
tags: |
browserless/base:latest
budsense/base:latest
context: ./base
push: true
platforms: |
Expand All @@ -45,7 +45,7 @@ jobs:
BASE_VERSION=latest
builder: ${{ steps.buildx.outputs.name }}
tags: |
browserless/chrome:latest
budsense/chrome:latest
context: .
push: true
platforms: |
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BASE_VERSION=1.21.0
FROM browserless/base:${BASE_VERSION}
FROM budsense/base:${BASE_VERSION}

# Build Args
ARG USE_CHROME_STABLE
Expand All @@ -11,7 +11,7 @@ ARG PORT=3000
ENV APP_DIR=/usr/src/app
ENV PUPPETEER_CACHE_DIR=${APP_DIR}
ENV PLAYWRIGHT_BROWSERS_PATH=${APP_DIR}
ENV CONNECTION_TIMEOUT=60000
ENV CONNECTION_TIMEOUT=120000
ENV CHROME_PATH=/usr/bin/google-chrome
ENV HOST=0.0.0.0
ENV IS_DOCKER=true
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ If you've been struggling to get Chrome up and running docker, or scaling out yo

1. [Full documentation site](https://www.browserless.io/docs/start)
2. [Live Debugger (using browserless.io)](https://chrome.browserless.io/)
3. [Docker](https://hub.docker.com/r/browserless/chrome/)
3. [Docker](https://hub.docker.com/r/budsense/chrome/)
4. [Slack](https://join.slack.com/t/browserless/shared_invite/enQtMzA3OTMwNjA3MzY1LTRmMWU5NjQ0MTQ2YTE2YmU3MzdjNmVlMmU4MThjM2UxODNmNzNlZjVkY2U2NjdkMzYyNTgyZTBiMmE3Nzg0MzY)

# Features
Expand All @@ -52,13 +52,13 @@ Your application still runs the script itself (much like a database interaction)

> See more options on our [full documentation site](https://www.browserless.io/docs/docker-quickstart).

1. `docker run -p 3000:3000 browserless/chrome`
1. `docker run -p 3000:3000 budsense/chrome`
2. Visit `http://localhost:3000/` to use the interactive debugger.
3. See more at our [docker repository](https://hub.docker.com/r/browserless/chrome/).
3. See more at our [docker repository](https://hub.docker.com/r/budsense/chrome/).

# Live Debugger

![Browserless Debugger](https://raw.githubusercontent.com/browserless/chrome/master/assets/demo.gif)
![Browserless Debugger](https://raw.githubusercontent.com/budsense/chrome/master/assets/demo.gif)

browserless comes with _two_ methods of debugging. The first is a web-based debugger for trying out small chunks of code without setting up a new project. You can see our public-facing [debugger here](https://chrome.browserless.io/).

Expand Down Expand Up @@ -94,7 +94,7 @@ location / {
You can pull `latest` or more recent puppeteer versions for the arm64 platform (M1 Macs):

```sh
docker pull --platform=linux/arm64 browserless/chrome:latest
docker pull --platform=linux/arm64 budsense/chrome:latest
```

For those still here trying to build this: first if you're on a amd64 machine (non-M1 Mac) you'll need to setup multi-platform builds. There's a lot of good resources out there to read about this, however you'll need to ensure you're on the latest docker with experimental features enabled.
Expand All @@ -113,7 +113,7 @@ docker buildx inspect --bootstrap
Once complete, you can specify a platform target and build against it. In our production tags, we build the `latest` tag as well as a few production tags (like `1-puppeteer-13.6.0`) with `arm64` support, which is what we'll use in the example below.

```sh
docker buildx build --platform linux/arm64 -t browserless/chrome:latest .
docker buildx build --platform linux/arm64 -t budsense/chrome:latest .
```

> Disclaimer about arm64: In order to support arm64 inside of docker, we utilize some functionality inside of playwright to download a arm64-compatible linux build. Since most distributions out there don't have an arm64-specific build of Chromium, this means that puppeteer's chromium doesn't exist for arm64 (as far as we're aware). This, in short, means that the chromium version inside of the arm builds isn't matched _exactly_ for the version of puppeteer that it comes bundled with. Most of the time this will go unnoticed, however if you have an issue it's possible that it's because the version of chromium in the arm64-builds isn't an exact match.
Expand Down
2 changes: 1 addition & 1 deletion browser.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"Browser":"HeadlessChrome/110.0.5478.0","Protocol-Version":"1.3","User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/110.0.5478.0 Safari/537.36","V8-Version":"11.0.220","WebKit-Version":"537.36 (@9979ee28bf4ee15e703bac226a967208387d9a6d)","webSocketDebuggerUrl":"ws://127.0.0.1:43485/devtools/browser/f1fc6c48-02ef-4a83-bf78-f7d49941f047","puppeteerVersion":"19.7.5","debuggerVersion":"9979ee28bf4ee15e703bac226a967208387d9a6d"}
{"Browser":"HeadlessChrome/110.0.5478.0","Protocol-Version":"1.3","User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/110.0.5478.0 Safari/537.36","V8-Version":"11.0.220","WebKit-Version":"537.36 (@9979ee28bf4ee15e703bac226a967208387d9a6d)","webSocketDebuggerUrl":"ws://127.0.0.1:51662/devtools/browser/31a4da53-0746-45ec-84db-1ca4a885a818","puppeteerVersion":"19.7.5","debuggerVersion":"9979ee28bf4ee15e703bac226a967208387d9a6d"}
Loading