airbyte-connectors icon indicating copy to clipboard operation
airbyte-connectors copied to clipboard

Can not run builded azure-repos-source docker image

Open Christopher-Haumann opened this issue 2 years ago • 5 comments

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?

Christopher-Haumann avatar Dec 02 '22 16:12 Christopher-Haumann

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

tovbinm avatar Dec 02 '22 23:12 tovbinm

@tovbinm How do I have to execute this exactly?

Christopher-Haumann avatar Dec 03 '22 14:12 Christopher-Haumann

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

tovbinm avatar Dec 03 '22 21:12 tovbinm

@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?

Christopher-Haumann avatar Dec 04 '22 11:12 Christopher-Haumann

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

tovbinm avatar Dec 04 '22 15:12 tovbinm