Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cypress/included:13.9.0 does not include curl #1049

Closed
JonasArcayo opened this issue May 14, 2024 · 6 comments
Closed

cypress/included:13.9.0 does not include curl #1049

JonasArcayo opened this issue May 14, 2024 · 6 comments
Labels

Comments

@JonasArcayo
Copy link

I'm getting curl command not found in bitbucket pipeline using the cypress included 13.9

@jennifer-shehane
Copy link
Member

@MikeMcC399
Copy link
Collaborator

MikeMcC399 commented May 14, 2024

@jennifer-shehane

curl is not found in this image:

docker pull cypress/included:13.9.0
docker run -it --entrypoint /bin/bash cypress/included:13.9.0
whereis curl
curl:

It seems that curl is first installed, then removed:

RUN ls -la /root \
&& chmod 777 /root \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
# Always install: Needed to run Cypress
xvfb \
libglib2.0-0 \
libnss3 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libcups2 \
libgtk-3-0 \
libgbm1 \
libasound2 \
# Needed to support the ps command, while not used by cypress directly it is used by some of our examples and the dependency is small (~1mb).
procps \
# Needed to support curl, similar to ps, it's not directly used by cypress but leaving it in the container is practically free.
curl \

# Global Cleanup
ONBUILD RUN apt-get purge -y --auto-remove \
curl \
bzip2 \
gnupg \
dirmngr\

Edit: Debian security tracker for curl

@JonasArcayo
Copy link
Author

Cypress base 20.13.0 has the same thing, curl not found.

@MikeMcC399
Copy link
Collaborator

@JonasArcayo

Cypress base 20.13.0 has the same thing, curl not found.

The reason is the same. See #1049 (comment) above.

@MikeMcC399
Copy link
Collaborator

image

@jennifer-shehane
Copy link
Member

I do remember this now. This was intentional and we did not intend to add curl due to security reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants