Skip to content

WIP: Fix e2e test setup in CI (Cypress package install on Alpine image)

Eric Eastwood requested to merge 2495-fix-e2e-test-in-ci into develop

Fix e2e test setup in CI

Fix https://gitlab.com/gitlab-org/gitter/webapp/-/issues/2495

Use apk(Alpine) instead of apt-get(debian/Ubuntu), https://wiki.onap.org/display/DW/Migrating+Dockerfiles+from+Debian+apt+to+Alpine+apk

Dev notes

Issue to make a Alpine based Cypress image(we could get the dependencies from their image): https://github.com/cypress-io/cypress-docker-images/issues/110

Other people running into Cypress dependency problems with Alpine:


Not all packages available with apk

$ apk add xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
 ERROR: unsatisfiable constraints:
   libasound2 (missing):
     required by: world[libasound2]
   libgconf-2-4 (missing):
     required by: world[libgconf-2-4]
   libgtk2.0-0 (missing):
     required by: world[libgtk2.0-0]
   libnss3 (missing):
     required by: world[libnss3]
   libxss1 (missing):
     required by: world[libxss1]

Alternatives

libasound2

According to https://stackoverflow.com/a/55172930/796832, we could use alsa-lib-dev in place of libasound2-dev.

Looking up the difference between libasound2-dev and libasound2, I see it just says "development files" as the different part. Not sure exactly what that means but hopefully it works.

libasound2: shared library for ALSA applications ... libasound2-dev: shared library for ALSA applications -- development files

https://launchpad.net/ubuntu/+source/alsa-lib

libgconf-2-4

???

libgtk2.0-0

???

libnss3

???

libxss1

???

Edited by Eric Eastwood

Merge request reports