Files
libp2p-test-plans/transport-interop/impl/js/v1.4/BrowserDockerfile
github-actions[bot] f25059fc3e chore: add js-libp2p@v1.3.0 to transport-interop (#359)
* chore: add js-libp2p@v1.3.0 to transport-interop

* chore: add js-libp2p@v1.4.0 to transport-interop

* chore: add js-libp2p@v1.5.0 to transport-interop

* chore: add js-libp2p@v1.6.0 to transport-interop

* Update js-libp2p versions

* Buster has openssl 1.1 still

* Filter only js v1.6 for debugging

* Try emitting only

* Print docker version

* Attempt to patch tests

* Undo changes in .github

* Buster not needed apparently

---------

Co-authored-by: galargh <galargh@users.noreply.github.com>
Co-authored-by: Marco Munizaga <git@marcopolo.io>
Co-authored-by: Marco Munizaga <marco@marcopolo.io>
2024-05-22 17:53:31 -07:00

22 lines
838 B
Plaintext

# syntax=docker/dockerfile:1
# Copied since we won't have the repo to use if expanding from cache.
# Workaround: https://github.com/docker/cli/issues/996
ARG BASE_IMAGE=node-js-libp2p-head
FROM ${BASE_IMAGE} as js-libp2p-base
FROM mcr.microsoft.com/playwright
COPY --from=js-libp2p-base /app/ /app/
WORKDIR /app/node_modules/@libp2p/multidim-interop
# We install browsers here instead of the cached version so that we use the latest browsers at run time.
# Ideally this would also be pinned, but playwright controls this, so there isn't much we can do about it.
# By installing here, we avoid installing it at test time.
RUN npx playwright install
ARG BROWSER=chromium # Options: chromium, firefox, webkit
ENV BROWSER=$BROWSER
ENTRYPOINT npm run test:interop:multidim -- --build false --types false -t browser -- --browser $BROWSER