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

Question: How to create an action using a custom Ubuntu docker image #5478

Closed
Tim-C1 opened this issue Apr 24, 2024 · 5 comments
Closed

Question: How to create an action using a custom Ubuntu docker image #5478

Tim-C1 opened this issue Apr 24, 2024 · 5 comments

Comments

@Tim-C1
Copy link

Tim-C1 commented Apr 24, 2024

Hi all, I am new to openwhisk, my goal is to create an action using a custom ubuntu docker image, to be more specific: I would like to run some bash scripts within the custom ubuntu docker image.

I read the docs for a while but I haven't found a good solution yet, could any of you give me some advices?

@Tim-C1
Copy link
Author

Tim-C1 commented Apr 28, 2024

Hi, I build a image using this runtime-docker Currently, I just put a exec file that output a json string using echo and does not modify anything else. But when I create an action and then invoke, it always timeout and then it will report something like "error Request accepted, but processing not completed yet."

@rabbah
Copy link
Member

rabbah commented May 6, 2024

There's not information here to help you. You can confirm that your container image is properly set up by running a copy of the container locally and using https://github.com/apache/openwhisk/tree/master/tools/actionProxy to test the image.

@Tim-C1
Copy link
Author

Tim-C1 commented May 6, 2024

thanks, I already solved that.

@rabbah rabbah closed this as completed May 7, 2024
@rabbah
Copy link
Member

rabbah commented May 7, 2024

Great @Tim-C1 - if you can leave a brief comment for what the fix was it might be helpful for future reference.

@Tim-C1
Copy link
Author

Tim-C1 commented May 7, 2024

Sure! Actually this has nothing to do with openwhisk, I follow the dockerskeleton repo and do some modifications to the Dockerfile to build a custom ubuntu image, and it works. The reason why I can not run create and invoke an action is that I first run bash in the image I built then commit it, and this commit will override the default CMD specified in the Dockerfile which is used to the start actionProxy server required by Openwhisk.

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