Giter Club home page Giter Club logo

devops-docker-node-browsers's Introduction

Node Browsers Image

REUSE status

This Dockerfile can be used in Continuous Delivery (CD) pipelines for SAP development projects. The image is optimized for use with project "Piper" on Jenkins. Docker containers simplify your CD tool setup, encapsulating tools and environments that are required to execute pipeline steps.

If you want to learn how to use project "Piper" please have a look at the documentation. Introductory material and a lot of SAP scenarios not covered by project "Piper" are described in our Continuous Integration Best Practices.

About this repository

Dockerfile for an image with node and web browsers. This image is intended to be used for end to end tests of web applications in Jenkins pipelines.

Download

This image is published to Docker Hub and can be pulled via the command

docker pull ppiper/node-browsers

The default tag latest contains node 20

For node-16 or node-18 use the tag 16-bookworm or 18-bookworm:

docker pull ppiper/node-browsers:16-bookworm
docker pull ppiper/node-browsers:18-bookworm

Build

To build this image locally, open a terminal in the directory of the Dockerfile and run

docker build --build-arg=BASE_IMAGE_TAG=20-bookworm -t ppiper/node-browsers .

Where the BASE_IMAGE_TAG=20-bookworm build argument can be replaced with BASE_IMAGE_TAG=16-bookworm or BASE_IMAGE_TAG=18-bookworm. The given tag must exist in the node base image and use Debian GNU/Linux.

Usage

See this blog post for usage of this image in a Jenkins pipeline based on ppiper/jenkins-master.

Licensing

Copyright 2017-2021 SAP SE or an SAP affiliate company and devops-docker-node-browsers contributors. Please see our LICENSE for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available via the REUSE tool.

devops-docker-node-browsers's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devops-docker-node-browsers's Issues

Fail to load UI resources

When running Karma UI tests within this Docker image, exact version ppiper:node-browsers, from our general purpose Piper pipeline, we get the error:

Uncaught ModuleError: failed to load 'sap/ushell/Container.js' from /resources/sap/ushell/Container.js: 404 - Not Found
at http://localhost:{port}/resources/ui5loader.js:2005:6

The errors started appearing about 2 hours ago. Up to then, everything worked fine. Could this be caused by this Docker image? Or should we look for the error source somewhere else?

More nodes for latest chrome version

Hello,

I'd like to ask if it would be possible to add more nodes to the image, specifically one based on "bookworm" or ever "sid" version of debian package?
We use this image in our Jenkins WDI5 automated tests, and we keep running into the issue of Chrome being outdated (ChromeDriver requires the latest version).

Thanks a lot for this awesome docker.

Can we remove this `sed`?

It we have the following, here in the dockerfile:

# Workaround for https://npm.sap.com issue with open SSL in Debian Buster
RUN CIPHERS="$(openssl ciphers)" && sed -i "s/DEFAULT@SECLEVEL=2/$CIPHERS:DH-RSA-AES256-SHA256/g" /etc/ssl/openssl.cnf

Now we do not user npm.sap.com anymore and buster is also about to be removed. Can we remove this sed?

@fwilhe Could you comment? Do you have any memory of this?

chrome version

Hi team, any chance we could update the chrome version to 87 in this docker?

ppiper/node-browsers not working for msedge

Hi,

I'm using ppiper/node-browsers to run my Webdriverio testcase in jenkins. looks like it's not working for Msedge and getting error like this Message: unknown error: unrecognized MSEdge version: HeadlessChrome/109.0.5414.119

And also for firefox, browser is not able to find element

10:06:47  [0-0]   message: 'Unable to locate element: //*[@id="j_username"]',
10:06:47  [0-0]   stacktrace: 'WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:186:5\n' +
10:06:47  [0-0]     'NoSuchElementError@chrome://remote/content/shared/webdriver/Errors.jsm:398:5\n' +
10:06:47  [0-0]     'element.find/</<@chrome://remote/content/marionette/element.js:300:16\n'

is it because of certificate issue in firefox?

Is there any particular version need to be use?

Can anyone suggest please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.