mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #112] docker-compose: command not found #74
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @liemlylac on GitHub (Feb 28, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/112
Hi, this really nice repo for running action in locally.
But I have a problem when running docker-compose in action.
This is output
This is my workflow config
This is my
docker-compose.ymlfileMy PC:
@cplee commented on GitHub (Feb 28, 2020):
Related to #107
See https://github.com/nektos/act#runners.
You can customize the image used for the runs-on. I've created an image that is a match to GitHub runners, but its like 15GB!
@cplee commented on GitHub (Mar 2, 2020):
Closing this as a duplicate of #107
@kenorb commented on GitHub (May 14, 2020):
Related post: https://github.com/orgs/community/discussions/134407
@swuecho commented on GitHub (Jul 23, 2020):
I create a image with docker and docker-compose.
docker pull echowuhao/act_base:latestI think it is enough for those who use docker and docker-compose to run tests.
if not, easy to adjust based on the Dockerfile.
https://github.com/swuecho/act_base
@lucasres commented on GitHub (Sep 11, 2020):
When i run with your image i have this erro
@jadhavmanoj commented on GitHub (Oct 14, 2020):
same here. Any suggestion.
Error: Error response from daemon: pull access denied for echowuhao/act_base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied@lucasres commented on GitHub (Oct 14, 2020):
The image is private :(
I tried the image nektos/act-environments-ubuntu:18.04. Docker and docker-composer work well but my container dont mount volume inside
@LucasCtrl commented on GitHub (Nov 4, 2020):
I rebuild and republish the new image from @swuecho
docker pull lucasctrl/act_base:latesthttps://github.com/lucasctrl/act_base
@hotlib commented on GitHub (Nov 16, 2020):
I get the following error:
Error response from daemon: pull access denied for lucasctrl/act_base, repository does not exist or may require 'docker login': denied: requested access to the resource is denied@LucasCtrl commented on GitHub (Nov 16, 2020):
Did you tried to be logged in before doing
by using
with your docker hub credentials?
@hotlib commented on GitHub (Nov 16, 2020):
no, I thought I could download it without login - I somehow found another link to your image and that I could download without login (don’t remember the URL though) and it works great
@swuecho commented on GitHub (Nov 17, 2020):
I did not know how I end up delete the image. thanks @LucasCtrl to set it up.
@visini commented on GitHub (Nov 17, 2020):
Using
--platform ubuntu-latest=lucasalt/act_base:latestinstead of--platform ubuntu-latest=lucasalt/act_baseworked for me without docker login. Many thanks!@hata6502 commented on GitHub (Mar 18, 2021):
https://docs.docker.jp/compose/install.html#linux-compose
It works GitHub Actions and act.
@alexey2baranov commented on GitHub (Mar 21, 2021):
Another way is to create additional action
setup-docker-composelike we havesetup-nodewhich is responsible for docker-compose installationand this action can internally perform
docker-compose --versionto skip himself if docker-compose installed already. or it can internally check enverounmentenv=REAL_GITHUB_ACTION_IMAGEto skip himself.I think it is more general way then create new image because it don't need to recreate image every time when base image changed.
@adrienjoly commented on GitHub (Dec 10, 2021):
On my Mac with M1 chip, I have to:
linux/amd64architecture=>
$ act --platform ubuntu-latest=lucasalt/act_base:latest --container-architecture linux/amd64EDIT: Actually, my workflow relies on
ubuntu-20.04instead ofubuntu-latest, so I'm using:@adrienjoly commented on GitHub (Dec 12, 2021):
I did pick the Medium image on first
actrun (see the image name below, as listed on https://github.com/nektos/act#runners), and gotdocker-compose: command not foundanyway:Here's the workflow file: https://github.com/openwhyd/openwhyd/blob/master/.github/workflows/ci.yml#L308
@aucampia commented on GitHub (Feb 2, 2022):
is there any workaround for this?
@topherfangio commented on GitHub (Feb 4, 2022):
Here's how I got it working.
First, make sure your Docker installation has enough space (I was maxed out at 60GB, so I doubled it to 120GB just to be safe.
Then, use Docker pull to grab the full image (15GB):
Now you can use this as your platform when starting act:
One last note: I had to update my commands to use
sudoso that it had enough permissions to run everything. Would love to know if there is a way to tell act to do this.Here is an excerpt from my workflow:
Hope this helps someone in the future!
And shoutout to @catthehacker for his suggestion to run the
docker pullcommand first 🙌 This allows you to see a progress bar of how the download and extraction is going.@drewyangdev commented on GitHub (Feb 24, 2022):
Tried with the Large image
act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest, but having permission denied while runningactions/create-release@v1. #935 CommentSince the Medium image
act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latestdoesn't have permission denied issue, decided to extend the image by myself.custom-medium.Dockerfile
act -P ubuntu-latest=drewyangdev/ubuntu:full-latest@sneko commented on GitHub (Jan 18, 2023):
I was about to use the runner image from @LucasCtrl but the latest version is from 2020 and it's hard to assume
actdid not bring improvements since then.Except if there is a watcher for
actimages that rebuild one withdocker-compose, I won't go this way.The solution I use for now:
(specify the version otherwise the
actionwill require you providing a validGITHUB_TOKEN)