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

Cannot find the dist/index.js file when the action is invoked from another repository #47

Closed
ShahradR opened this issue Dec 5, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ShahradR
Copy link
Owner

ShahradR commented Dec 5, 2020

When the action-taskcat GitHub Action is invoked from another repository in release v1.1.1, the following error message is returned to the user:

docker: Error response from daemon: OCI runtime create failed: container_linux.go:370: starting container process caused: exec: "dist/index.js": stat dist/index.js: no such file or directory: unknown.
time="2020-12-05T19:05:01Z" level=error msg="error waiting for container: context canceled"
@ShahradR ShahradR self-assigned this Dec 5, 2020
@ShahradR ShahradR added the bug Something isn't working label Dec 5, 2020
ShahradR added a commit that referenced this issue Dec 5, 2020
Copy the dist/index.js post-entrypoint script to the Docker container.
When this action is invoked from other repositories, the runner cannot
find the script and fails with an error.

Integration tests pass because the file is included in this project, and
is automatically copied to the container.

Associated issue: #47
ShahradR added a commit that referenced this issue Dec 5, 2020
Update the action.yaml file to look for the post-entrypoint script at
the root of the Docker container's filesystem, reflecting the changes
made to the Dockerfile.

Associated issue: #47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant