actions / actions-runner-controller

Kubernetes controller for GitHub Actions self-hosted runners
Apache License 2.0
4.4k stars 1.03k forks source link

Getting "curl not found" when trying to execute curl command on arc runner. #3130

Open vishrane opened 6 months ago

vishrane commented 6 months ago

What would you like added?

IS there any way to add curl package to arc runner as we need to execute curl command as part of CI.

A clear and concise description of what you want to happen.

Note: Feature requests to integrate vendor specific cloud tools (e.g. awscli, gcloud-sdk, azure-cli) will likely be rejected as the Runner image aims to be vendor agnostic.

Why is this needed?

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

github-actions[bot] commented 6 months ago

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

pavlospt commented 6 months ago

@vishrane it is not included in the default software installed.

vishrane commented 6 months ago

Is there any way to install it

pavlospt commented 6 months ago

Yes you can use the default image as your base and create a new image for your runners!

adefemi171 commented 6 months ago

You could do something like:

FROM ghcr.io/actions/actions-runner:latest

RUN sudo apt update -y && \
    sudo apt install -y \
    curl
janekx21 commented 4 months ago

How do I use the created Dockerfile inside a Kubernetes cluster? I found this thing: example-input-for-dockerfile and this: updating-the-pod-specification-for-the-runner-pod

my setup

geekflyer commented 1 month ago

can we please add curl to the default image? This seems like such a common/basic thing that it's surprising this is missing.