Base image for building and testing your local application with Ghost Inspector.
9.3K
This image is no longer maintained, it is recommended that you use the Docker CLI image instead.
Build status:
Ghost Inspector is an automated website testing and monitoring service that checks for problems with your website or application. It carries out operations in a browser, the same way a user would, to ensure that everything is working properly.
This Docker image will allow you to execute your Ghost Inspector test suite against your local Docker application.
There is also a standalone, multi-container Docker image available here.
Example Dockerfile:
FROM ghostinspector/test-runner-node
# Copy your node app
COPY . .
# Install your app
RUN npm install .
ENV NGROK_TOKEN <your-ngrok-token>
ENV GI_API_KEY <ghostinspector-api-key>
ENV GI_SUITE <ghostinspector-suite-id>
ENV APP_PORT 3000
# Pass your application entrypoint into our test runner script
CMD ["index.js"]
Now build and run your image:
$ docker build -t my-app .
$ docker run my-app
This image is intended to be the base image for your application under test, meaning that the application runtime and Ghost Inspector scripts and utilities are pre-installed for you.
To get started, specify ghostinspector/test-runner-node in the FROM section of your Dockerfile.
As well as adding any dependencies or additional requirements for your application, the following environment variables are required for the test runner:
NGROK_TOKEN - available from your ngrok accountGI_API_KEY - available in your Ghost Inspector accountGI_SUITE - the ID of the Ghost Inspector test suite you wish to runAPP_PORT - the port your local application will run on (eg: 3000)The last line of your Dockerfile should be ENTRYPOINT, which should look something like this:
CMD ["index.js", "--foo=bar"]
...where index.js is the entrypoint for your application. Under the hood, our test runner script will perform the following:
ENTRYPOINT (eg: index.js) with nodengrok daemon and open a tunnel to localhost:PORTGI_SUITEpassing status until a result is provided0) or fail (1) statusThe MIT License
Copyright (c) Ghost Inspector, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Please open issues in Github or send questions to Ghost Inspector support
Content type
Image
Digest
Size
407.9 MB
Last updated
about 5 years ago
docker pull ghostinspector/test-runner-node