Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinblackman/phantomized
All dynamic PhantomJS ELFs in one simple tar
https://github.com/dustinblackman/phantomized
Last synced: 30 days ago
JSON representation
All dynamic PhantomJS ELFs in one simple tar
- Host: GitHub
- URL: https://github.com/dustinblackman/phantomized
- Owner: dustinblackman
- Archived: true
- Created: 2016-02-20T14:26:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-04T16:43:32.000Z (about 1 year ago)
- Last Synced: 2024-08-04T01:25:33.566Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 69
- Watchers: 8
- Forks: 147
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stop using PhantomJS
https://dustinblackman.com/posts/stop-using-phantomjs/
# Phantomized
An automated build to tar up dynamic ELFs required by PhantomJS using Dockerized. This makes dockerizing PhantomJS with base images like Alpine Linux easy.
This build does not include the phantomjs binary itself so make it easier for application that install PhantomJS through other sources like [npm](https://github.com/Medium/phantomjs). This is based off the work of [docker-phantomjs2](https://github.com/fgrehm/docker-phantomjs2).
## How To
Adding this line to your Dockerfile applies all files to your docker image. You can find a production example [here](https://github.com/Gravebot/Gravebot/blob/master/Dockerfile).
```bash
curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/2.1.1a/dockerized-phantomjs.tar.gz" | tar xz -C /
```## Build from source
Make sure your have your docker environment set up correctly, and run the build script. Running the build script will build the docker container and copy the newly created `dockerized-phantomjs.tar.gz` to your current working directory.
```bash
./build.sh
```