Comments (2)
I'm wondering the same thing. What's the point of a browsers convenience image with no pre-installed browsers?
from cimg-node.
i figured out a way that doesnt involve using the circleci, pretty much looks like this
FROM node:18 AS browsers
RUN apt-get update &&
# Google Chrome deps
# Some of these packages should be pulled into their own section
apt-get install -y --no-install-recommends --no-upgrade
fonts-liberation
libappindicator3-1
libasound2
libatk-bridge2.0-0
libatspi2.0-0
libcairo2
libcups2
libu2f-udev
libgbm1
libgdk-pixbuf2.0-0
libgtk-3-0
libpango-1.0-0
libpangocairo-1.0-0
libxcursor1
libxss1
xdg-utils
libnspr4
libnss3
libvulkan1
xvfb
&&
rm -rf /var/lib/apt/lists/*
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
RUN rm google-chrome-stable_current_amd64.deb
RUN echo "Chrome: " && google-chrome --version
RUN echo 'alias chrome="/runner/framework/google-chrome"' >> ~/.bashrc
ENV DISPLAY=":99"
RUN printf '#!/bin/sh\nXvfb :99 -screen 0 1280x1024x24 &\nexec "$@"\n' > /tmp/entrypoint &&
chmod +x /tmp/entrypoint &&
mv /tmp/entrypoint /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/bin/sh"]
FROM browsers AS final
#rest of the docker container stuff you want to execute goes here
from cimg-node.
Related Issues (20)
- node:current - /bin/bash: line 6: npm: command not found HOT 5
- Yarn 3 has issues as a result of build time variables NODE_VER and YARN_VER HOT 2
- Recent image broke `npm --prefix DIR run` functionality HOT 9
- Update README for permissions
- Publish v16.16.0 - new LTS version
- symlink `npm`, `node` to /usr/loca/bin HOT 6
- `npm install -g gh-pages` failed in `cimg/node:current` image HOT 2
- Snyk Critical Vulnerabilities HOT 1
- Latest release of node:lts-browsers breaks corepack prepare/activate HOT 3
- Latest version of image run out of memory HOT 2
- Recent versions of image cause jest to fail HOT 1
- permissions on node 16:17 HOT 1
- Using the image in other CI tools HOT 3
- shallow checkout HOT 5
- /home/circleci/.local/bin is in path but doesnโt exist by default HOT 2
- Can you create this image please? HOT 1
- Publish major version (only) tag pointing at the latest build for a major node version HOT 1
- Base Ubuntu version changing HOT 2
- cimg/node:16.18 & cimg/node:16.19: "Mongod instance closed with code \"127\"" was thrown, throw an Error :) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cimg-node.