[google-appengine] Re: upgrading ca-certificates on a flex ruby instance

2021-10-01 Thread 'gorbov' via Google App Engine

Hi Dave,

Glad to see that you were able to figure out a partial workaround for the 
existing LetsEncrypt issue. From what I understand you asked 2 specific 
questions:

1) How can I run `apt-get update && apt-get install ca-certificates` during 
build time on the Ruby runtime ?
2) How can I convert my existing Flex instance to a custom runtime ?

Let me know if understood them correctly. 

1) To answer your first question: As of right now, if you are using the 
Standard Ruby run time, it isn't possible to define custom build steps 
(which include running .sh scripts) like you otherwise would be able to 
with other runtimes like NodeJS for example. [1] Generally speaking, there 
isn't much wiggle room for custom build steps in the Standard environment. 
The good news is that it seems to me like you were on the right path 
because you mentioned using a Custom Runtime with a Flex instance [2] . 
With the custom Ruby runtime in GAE Flex, you can define the ``apt-get 
update && apt-get install ca-certificates`` in the Dockerfile as a build 
step. And it will be run each time a flex instance is launched by GAE.

2) To answer your second question: In order to convert an existing standard 
ruby GAE project to a custom runtime, all you really need to do is add the 
following to your app.yaml:
`` 
runtime: custom
env: flex
```
and create a Dockerfile. You can see the full details by following the 
quickstart [3]. However,  be aware that if you choose to use a custom 
runtime, there is more work required to get setup, as the previous steps 
that were automatically done by the standard environment must now be done 
manually.

I hope you found this help.

[1] 
https://cloud.google.com/appengine/docs/standard/nodejs/running-custom-build-step
[2] https://cloud.google.com/appengine/docs/flexible/custom-runtimes/quickstart
[3] 
https://cloud.google.com/appengine/docs/flexible/custom-runtimes/build#appyaml

On Friday, October 1, 2021 at 2:46:56 PM UTC-4 dave@embodied.me wrote:

> I'm having trouble building on a google appengine instance due to ssl 
> errors with a "Let's Encrypt" domain.  If I log into an existing instance, 
> curl  https://gems.contribsys.com/ fails. It is fixed with apt-get update 
> && apt-get install ca-certificates.  see this issue 
>  too.
>
> But I can't figure out how to do that with a flex ruby instance at build 
> time.
>
> Any ideas?  Or is there a guide for converting an existing ruby appengine 
> project to a custom project?
>
> thanks,
> dave
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/041ca49b-daf7-4fcb-9d38-f1bb5b088cfan%40googlegroups.com.


[google-appengine] upgrading ca-certificates on a flex ruby instance

2021-10-01 Thread Dave Benson
I'm having trouble building on a google appengine instance due to ssl 
errors with a "Let's Encrypt" domain.  If I log into an existing instance, 
curl  https://gems.contribsys.com/ fails. It is fixed with apt-get update 
&& apt-get install ca-certificates.  see this issue 
 too.

But I can't figure out how to do that with a flex ruby instance at build 
time.

Any ideas?  Or is there a guide for converting an existing ruby appengine 
project to a custom project?

thanks,
dave

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/6316f1b6-f9ca-4dbb-8a88-636e6b96ff56n%40googlegroups.com.


[google-appengine] Google App Engine - Cloud Build Failed for golang GO111

2021-10-01 Thread Mạnh Bùi Văn
Hi,
We're using your service which is Cloud Build. However, a log file is 
error. I have attached the file below. Please check it out. 
Kindly fix the error and give me a notice as soon as possible.
Thank you for your time.

Warm regards,

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/481657dd-39e7-497b-9101-da011f3b201fn%40googlegroups.com.
starting build "e1c5d6f9-7961-46b2-ba24-27d745084672"

FETCHSOURCE
BUILD
Starting Step #0 - "fetch"
Step #0 - "fetch": Pulling image: 
us.gcr.io/gae-runtimes/utilities/gcs-fetcher:base_20210910_18_04_RC00
Step #0 - "fetch": base_20210910_18_04_RC00: Pulling from 
gae-runtimes/utilities/gcs-fetcher
Step #0 - "fetch": 0700b11f0e5e: Pulling fs layer
Step #0 - "fetch": 0700b11f0e5e: Verifying Checksum
Step #0 - "fetch": 0700b11f0e5e: Download complete
Step #0 - "fetch": 0700b11f0e5e: Pull complete
Step #0 - "fetch": Digest: 
sha256:084c5b63c6305f54efd29c90a0050ed02cb273f6bcbe6bbeb1383ac5d193ff56
Step #0 - "fetch": Status: Downloaded newer image for 
us.gcr.io/gae-runtimes/utilities/gcs-fetcher:base_20210910_18_04_RC00
Step #0 - "fetch": 
us.gcr.io/gae-runtimes/utilities/gcs-fetcher:base_20210910_18_04_RC00
Step #0 - "fetch": Fetching manifest 
gs://staging.autoketing-staging-api.appspot.com/ae/bccb7cdd-e596-444d-8ac2-9348b4e8dec8/manifest.json.
Step #0 - "fetch": Processing 326 files.
Step #0 - "fetch": **
Step #0 - "fetch": Status:  SUCCESS
Step #0 - "fetch": Started: 2021-10-01T06:55:50Z
Step #0 - "fetch": Completed:   2021-10-01T06:55:51Z
Step #0 - "fetch": Requested workers:200
Step #0 - "fetch": Actual workers:   200
Step #0 - "fetch": Total files:  326
Step #0 - "fetch": Total retries:  0
Step #0 - "fetch": GCS timeouts:   0
Step #0 - "fetch": MiB downloaded: 2.37 MiB
Step #0 - "fetch": MiB/s throughput:   4.55 MiB/s
Step #0 - "fetch": Time for manifest:167.37 ms
Step #0 - "fetch": Total time: 0.69 s
Step #0 - "fetch": **
Finished Step #0 - "fetch"
Starting Step #1 - "pre-buildpack"
Step #1 - "pre-buildpack": Pulling image: 
us.gcr.io/gae-runtimes/utilities/buildpack-shim:base_20210910_18_04_RC00
Step #1 - "pre-buildpack": base_20210910_18_04_RC00: Pulling from 
gae-runtimes/utilities/buildpack-shim
Step #1 - "pre-buildpack": 62c33aa5a381: Pulling fs layer
Step #1 - "pre-buildpack": 62c33aa5a381: Verifying Checksum
Step #1 - "pre-buildpack": 62c33aa5a381: Download complete
Step #1 - "pre-buildpack": 62c33aa5a381: Pull complete
Step #1 - "pre-buildpack": Digest: 
sha256:66a30933f65d4e2d58adc6a66c8a6e53585858a529c1ca98739a832d4c3d5666
Step #1 - "pre-buildpack": Status: Downloaded newer image for 
us.gcr.io/gae-runtimes/utilities/buildpack-shim:base_20210910_18_04_RC00
Step #1 - "pre-buildpack": 
us.gcr.io/gae-runtimes/utilities/buildpack-shim:base_20210910_18_04_RC00
Step #1 - "pre-buildpack": Preparing directory /layers
Step #1 - "pre-buildpack": Preparing directory /workspace
Step #1 - "pre-buildpack": Preparing directory /builder/home
Step #1 - "pre-buildpack": Preparing directory /builder/outputs
Step #1 - "pre-buildpack": Preparing directory /platform/env
Step #1 - "pre-buildpack": Passing build environment variable BUILDER_OUTPUT to 
buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_DEBUG to 
buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_RUNTIME to 
buildpacks
Step #1 - "pre-buildpack": Passing build environment variable 
GOOGLE_LABEL_BUILDER_VERSION to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable 
GOOGLE_LABEL_BUILDER_IMAGE to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable 
GOOGLE_LABEL_RUN_IMAGE to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable 
GAE_APP_ENGINE_APIS to buildpacks
Step #1 - "pre-buildpack": Retagging 
us.gcr.io/autoketing-staging-api/app-engine-tmp/app/autoketing-common-service/ttl-18h:latest
 as 
us.gcr.io/autoketing-staging-api/app-engine-tmp/app/autoketing-common-service/ttl-18h:bccb7cdd-e596-444d-8ac2-9348b4e8dec8
Step #1 - "pre-buildpack": Checking if image 
us.gcr.io/autoketing-staging-api/app-engine-tmp/app/autoketing-common-service/ttl-18h:latest
 exists
Step #1 - "pre-buildpack": Image 
us.gcr.io/autoketing-staging-api/app-engine-tmp/app/autoketing-common-service/ttl-18h:latest
 exists
Step #1 - "pre-buildpack": DEBUG: