-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
docker-compose: command not found #112
Comments
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! |
Closing this as a duplicate of #107 |
Related post: https://github.com/orgs/community/discussions/134407 |
I create a image with docker and docker-compose.
I think it is enough for those who use docker and docker-compose to run tests. if not, easy to adjust based on the Dockerfile. |
When i run with your image i have this erro
|
same here. Any suggestion.
|
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 |
I rebuild and republish the new image from @swuecho
|
I get the following error:
|
Did you tried to be logged in before doing
by using
with your docker hub credentials? |
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 |
I did not know how I end up delete the image. thanks @LucasCtrl to set it up. |
Using |
https://docs.docker.jp/compose/install.html#linux-compose It works GitHub Actions and act.
|
Another way is to create additional action and this action can internally perform 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. |
On my Mac with M1 chip, I have to:
=> EDIT: Actually, my workflow relies on $ act --platform ubuntu-20.04=lucasalt/act_base:latest --container-architecture linux/amd64 |
I did pick the Medium image on first Here's the workflow file: https://github.com/openwhyd/openwhyd/blob/master/.github/workflows/ci.yml#L308 |
is there any workaround for this? |
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): docker pull ghcr.io/catthehacker/ubuntu:full-latest Now you can use this as your platform when starting act: act -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest -j my-job One last note: I had to update my commands to use Here is an excerpt from my workflow: name: Linting
on: [pull_request]
jobs:
lint-api:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create necessary files
run: sudo touch .env.development.local
- name: Start the container
run: sudo docker-compose up --build -d api
- name: Check Bundle
run: sudo docker-compose exec -T api bundle install
- name: Run rubocop
run: sudo docker-compose exec -T api bundle exec rubocop
- name: Dump docker logs on failure
if: failure()
uses: jwalton/gh-docker-logs@v1 Hope this helps someone in the future! And shoutout to @catthehacker for his suggestion to run the |
Tried with the Large image Since the Medium image
|
I was about to use the runner image from @LucasCtrl but the latest version is from 2020 and it's hard to assume Except if there is a watcher for The solution I use for now: - uses: KengoTODA/actions-setup-docker-compose@v1
if: ${{ env.ACT }}
name: Install `docker-compose` for local simulations
with:
version: '2.14.2' (specify the version otherwise the |
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.yml
fileMy PC:
The text was updated successfully, but these errors were encountered: