faros-ai / airbyte-connectors

Airbyte connectors (sources & destinations) + Airbyte CDK for JavaScript/TypeScript
Apache License 2.0
105 stars 60 forks source link

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

Open Christopher-Haumann opened 1 year ago

Christopher-Haumann commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

@tovbinm How do I have to execute this exactly?

tovbinm commented 1 year ago

See instructions here - https://github.com/faros-ai/airbyte-connectors#build-docker-images

Christopher-Haumann commented 1 year ago

@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 commented 1 year ago

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