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

Issue: act does not support service hostname #944

Closed
benjamin-feron opened this issue Dec 30, 2021 · 1 comment
Closed

Issue: act does not support service hostname #944

benjamin-feron opened this issue Dec 30, 2021 · 1 comment
Labels
kind/bug Something isn't working meta/duplicate This issue or pull request already exists

Comments

@benjamin-feron
Copy link

When using "container" and "service" sections in jobs, host names of containers are not resolved.

System information

  • Operating System: Linux
  • Architecture: x64 (64-bit)
  • Docker version: 20.10.12
  • act version: 0.2.25

Expected behaviour

Containers host names should be resolved.

Actual behaviour

...but there are not,
for example, ping command fail with message "bad address 'host1'".

Workflow

name: Test

on: push

jobs:
  job1:
    runs-on: ubuntu-latest

    container:
      image:  alpine:latest

    services:
      host1:
        image: alpine:latest

    steps:
    - run: ping -c 1 host1

Steps to reproduce

Run the workflow above

act output

[Test/job1] 🚀  Start image=alpine:latest
[Test/job1]   🐳  docker pull image=alpine:latest platform= username= forcePull=false
[Test/job1]   🐳  docker create image=alpine:latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test/job1]   🐳  docker run image=alpine:latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test/job1]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir=
[Test/job1] ⭐  Run ping -c 1 host1
[Test/job1]   🐳  docker exec cmd=[sh -e -c /home/befe/dev/github-sandbox.SUPPR/workflow/0] user= workdir=
| ping: bad address 'host1'
[Test/job1]   ❌  Failure - ping -c 1 host1
Error: exit with `FAILURE`: 1
@benjamin-feron benjamin-feron added the kind/bug Something isn't working label Dec 30, 2021
@catthehacker
Copy link
Member

duplicate of #173

@catthehacker catthehacker added the meta/duplicate This issue or pull request already exists label Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working meta/duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants