ByteInternet / hypernode-docker

Fast and easy Docker for Magento development
https://community.hypernode.io/hypernode-docker
35 stars 8 forks source link

Image based on debian 11 bullseye #79

Closed Vinai closed 1 year ago

Vinai commented 1 year ago

Thank you for your wonderful image. It has been very useful running it in CI.

Now we want to start also running Playwright tests, but sadly npx playwright install --with-deps fails as only Debian 11 is supported.

For Ubuntu, the command translates to:

apt-get install -y --no-install-recommends fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libatspi2.0-0 libcairo2 libcups2 libdbus-1-3 libdrm2 libegl1 libgbm1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxrandr2 libxshmfence1 xvfb fonts-noto-color-emoji ttf-unifont libfontconfig libfreetype6 xfonts-cyrillic xfonts-scalable fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf ttf-ubuntu-font-family ffmpeg libcairo-gobject2 libdbus-glib-1-2 libfontconfig1 libgdk-pixbuf2.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libxcb-shm0 libxcursor1 libxi6 libxrender1 libxt6 libxtst6 libenchant-2-2 gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good libenchant1c2a libepoxy0 libevdev2 libgl1 libgles2 libgstreamer-gl1.0-0 libgstreamer1.0-0 libharfbuzz-icu0 libharfbuzz0b libhyphen0 libicu66 libjpeg-turbo8 libnotify4 libopengl0 libopenjp2-7 libopus0 libpng16-16 libsecret-1-0 libsoup2.4-1 libvpx6 libwayland-client0 libwayland-egl1 libwayland-server0 libwebp6 libwebpdemux2 libwoff1 libxkbcommon0 libxml2 libxslt1.1 libatomic1 libevent-2.1-7

On buster this results in

Package ttf-ubuntu-font-family is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'ttf-ubuntu-font-family' has no installation candidate
E: Unable to locate package libenchant-2-2
E: Unable to locate package libicu66
E: Unable to locate package libvpx6
E: Unable to locate package libevent-2.1-7
E: Couldn't find any package by glob 'libevent-2.1-7'
E: Couldn't find any package by regex 'libevent-2.1-7'

No idea what it would take to build a docker.hypernode.com/byteinternet/hypernode-bullseye-docker-php81-mysql80...

Vinai commented 1 year ago

Thanks to @tdgroot this works to get Playwright running like a charm on buster:

apt-get install -y libenchant1c2a libicu63 libvpx5 libevent-2.1-6 libgbm1
npx playwright install

So... no need for a bullseye image (yet) after all! Thank you!