w/ out-of-the-box Docker & Cron support, intended for automating repetitive mundane tasks.
Create a tests folder and write your Nightwatch.js automation scripts there. -- Example & Guide
Also, .env support is available, just require('dotenv').config(); before you use process.env.
npm install
npm run test
If your scripts don't require other dependencies, you can simply mount the tests folder:
mkdir tests_output && mkdir screens
docker run --rm \
-v <your-tests-folder>:/usr/src/app/tests \
-v $PWD/tests_output:/usr/src/app/tests_output \
-v $PWD/screens:/usr/src/app/screens \
chenseanxy/browser-automation
If additional dependencies are required, you'll need to build your own image.
mkdir tests_output && mkdir screens
docker build . -t browser-automation
docker run --rm \
-v $PWD/tests_output:/usr/src/app/tests_output \
-v $PWD/screens:/usr/src/app/screens \
browser-automation
You could either write your own crontabs, or use the built-in-supported Ofelia cron scheduler:
Edit docker-compose.yml according to your needs, and docker-compose up -d
Content type
Image
Digest
Size
290.1 MB
Last updated
about 6 years ago
docker pull chenseanxy/browser-automation