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

Can not run builded azure-repos-source docker image #818

Open
Christopher-Haumann opened this issue Dec 2, 2022 · 5 comments
Open

Can not run builded azure-repos-source docker image #818

Christopher-Haumann opened this issue Dec 2, 2022 · 5 comments

Comments

@Christopher-Haumann
Copy link
Contributor

I have changed something in the code of azure-repos-source locally on my machine and builded a docker image liked it is discribed here https://github.com/faros-ai/airbyte-connectors/tree/main/sources/azure-repos-source

If I try to run this image with docker run --rm azure-repo-source-modified spec I am getting the following output:

Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/home/node/airbyte/main": stat /home/node/airbyte/main: no such file or directory: unknown.

How can I fix this problem?

@tovbinm
Copy link
Contributor

tovbinm commented Dec 2, 2022

You probably did not package it correctly. See how we do it here - https://github.com/faros-ai/airbyte-connectors/blob/main/.github/workflows/release.yml#L93

@Christopher-Haumann
Copy link
Contributor Author

@tovbinm How do I have to execute this exactly?

@tovbinm
Copy link
Contributor

tovbinm commented Dec 3, 2022

@Christopher-Haumann
Copy link
Contributor Author

@tovbinm If I run the command with some random version number like

docker build . --build-arg path=sources/azure-repo-source --build-arg version=0.0.2 -t azure-repo-source:dev

the image get build but if I try to run that image I get

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/home/node/airbyte/main": stat /home/node/airbyte/main: no such file or directory: unknown.ERRO[0000] error waiting for container: context canceled

How exactly I can fix this?

@tovbinm
Copy link
Contributor

tovbinm commented Dec 4, 2022

Did you run "npm i" and "npm run build" prior to building the Docker?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants