meenakshimadugula95 opened a new pull request, #135: URL: https://github.com/apache/openwhisk-runtime-python/pull/135
I was following the instructions to build the docker file locally by following the tutorial on [here](https://github.com/apache/openwhisk-runtime-python/blob/master/tutorials/local_build.md). However the command for `docker build` was failing. I noticed failures in building the docker files for all available runtimes. The reason being the expected dependent files/folders were not available in the docker context. The Gradle builds would essentially pass as they are copying the dependencies before building the docker. For example https://github.com/apache/openwhisk-runtime-python/blob/master/core/python3Action/build.gradle#L25 To solve this problem, I had brainstormed multiple solutions, I came up with this one as it does not affect any dependencies on the dockerfile. The gradle builds should be able to pass as they were earlier. Solution: - Create a script that would take in two arguments 1. Runtime folder name - The runtime that needs to be built 2. Docker Image tag - Name of the docker image - Example command `./tutorials/local_build.sh -r python3Action -t action-python-v3.7:1.0-SNAPSHOT` The script tries to mimic the Gradle files by copying the dependent folder/files, building the docker file and then deleting the dependent folders/files. I have updated the tutorial document with the same instructions. This PR would help anyone trying to build the runtime images locally. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
