-
Notifications
You must be signed in to change notification settings - Fork 48
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
java-sample build failed due to network io timeout, can we do offline build? #73
Comments
It looks like your cluster can't access this address: The The workaround is to configure a proxy for your cluster so that the builder can access api.adoptopenjdk.net |
Alternatively if your local network is good, you can build it in your local and push the image to your harbor.
pack build \
--builder openfunction/gcp-builder:v1 \
--env GOOGLE_FUNCTION_TARGET=com.openfunction.HelloWorld \
--env GOOGLE_FUNCTION_SIGNATURE_TYPE=http \
my-java-sample Deploy the serving-only function like this example. |
Thanks @lizzzcai , I'm going to add the pack build method to the official doc |
I am following the java-sample steps.
The builder failed when
step-create
, the error log is following:Since many production environments cannot access internet, can we build Function from source code without internet?
The text was updated successfully, but these errors were encountered: