3. I have some custom commands in my old Dockerfile in order to compile some of the C++ code to binaries for my Go code to invoke. Now flex env Go runtime doesn't allow Dockerfile, what's the recommended way to handle this?
I can think of one way, which is to call the compiler directly in the main func using exec library. However, how do I guarantee all the necessary compilers are installed on the host machine without the Dockerfile?
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/ac91f58c-5e77-41e2-8d73-170872fd26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I just saw that page, so the third questions is answered.I also figured out what's wrong with the second question too, it turns out the deployment will fail if I don't put "appengine.Main()" in my main func. Which is kind of strange and silly because the examples in the doc don't have "appengine.Main()" in main func either. If this is absolutely required, don't you want to make it crystal clear on the doc page?Anyway, it seems like some of the endpoints are broken, so I will dedicate most of my time on those issues. It would still be nice to know the answer for question 1.
On Thu, Dec 14, 2017 at 11:35 PM Derek Perkins <de...@derekperkins.com> wrote:
3. I have some custom commands in my old Dockerfile in order to compile some of the C++ code to binaries for my Go code to invoke. Now flex env Go runtime doesn't allow Dockerfile, what's the recommended way to handle this?Dockerfiles are definitely still supported. We use them now and the docs are here. What makes you think that they aren't allowed?I can think of one way, which is to call the compiler directly in the main func using exec library. However, how do I guarantee all the necessary compilers are installed on the host machine without the Dockerfile?--This sounds like a terrible rabbit hole that I wouldn't wish on my worst enemy. :) Just use a Dockerfile multi-step build and don't include any compilers on the host machine.
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
+ exec app
aedeploy: Error: unable to run "gcloud app deploy": exit status 1
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/ac91f58c-5e77-41e2-8d73-170872fd26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/9f7c1b18-2cbe-4ae4-9b02-22ff20fe5946%40googlegroups.com.
Whenever I remove appengine.Main I got this error:ERROR: (gcloud.app.deploy) Error Response: [9]
Application startup error:
+ exec app
aedeploy: Error: unable to run "gcloud app deploy": exit status 1
On Mon, Jan 22, 2018 at 3:22 PM 'Herbie Ong' via google-appengine-go <google-ap...@googlegroups.com> wrote:
Sorry, I just noticed your posting. It seems like you are doing a custom Flex runtime by providing your own Dockerfile. You shouldn't need to use appengine.Main in your main func if that is the case.Do make sure that your app.yaml is configured properly for a custom runtime, i.e. it should contain `runtime: custom`.-- Herbie
On Friday, December 15, 2017 at 11:59:35 AM UTC-8, Kun Li wrote:Okay, so the answer to the first question is that once my app is added to whitelist, I got the email confirmation and then everything is good. Thanks!
On Friday, December 15, 2017 at 12:38:55 AM UTC-7, Kun Li wrote:
I just saw that page, so the third questions is answered.I also figured out what's wrong with the second question too, it turns out the deployment will fail if I don't put "appengine.Main()" in my main func. Which is kind of strange and silly because the examples in the doc don't have "appengine.Main()" in main func either. If this is absolutely required, don't you want to make it crystal clear on the doc page?Anyway, it seems like some of the endpoints are broken, so I will dedicate most of my time on those issues. It would still be nice to know the answer for question 1.
On Thu, Dec 14, 2017 at 11:35 PM Derek Perkins <de...@derekperkins.com> wrote:
3. I have some custom commands in my old Dockerfile in order to compile some of the C++ code to binaries for my Go code to invoke. Now flex env Go runtime doesn't allow Dockerfile, what's the recommended way to handle this?Dockerfiles are definitely still supported. We use them now and the docs are here. What makes you think that they aren't allowed?I can think of one way, which is to call the compiler directly in the main func using exec library. However, how do I guarantee all the necessary compilers are installed on the host machine without the Dockerfile?--This sounds like a terrible rabbit hole that I wouldn't wish on my worst enemy. :) Just use a Dockerfile multi-step build and don't include any compilers on the host machine.
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/ac91f58c-5e77-41e2-8d73-170872fd26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/ac91f58c-5e77-41e2-8d73-170872fd26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/9f7c1b18-2cbe-4ae4-9b02-22ff20fe5946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/f3b15ff4-2bac-4f24-ae64-f79ab21a5100%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/ac91f58c-5e77-41e2-8d73-170872fd26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/9f7c1b18-2cbe-4ae4-9b02-22ff20fe5946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine-go+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/ac91f58c-5e77-41e2-8d73-170872fd26b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/9f7c1b18-2cbe-4ae4-9b02-22ff20fe5946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/f3b15ff4-2bac-4f24-ae64-f79ab21a5100%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/0faa2c31-f729-47c9-9a35-b5bcd51197a3%40googlegroups.com.
Hi Herbie,I'm not very familiar with how the deployment of flex env works so bear with me on some basic questions.
I don't understand why is that If I have all the dependencies already in my local GOPATH workspace, then I shouldn't need to call `go-wrapper download`? Which step in the Docker file actually install those dependencies for me?
I don't know the advantage of having two stage Dockerfile either. What advantage it brings to me?
I do updated my dockerfile a little bit based on the runtime-builder file you put there, and this is the latest version,RUN apt-get updateRUN apt-get install --no-install-recommends -y -q apt-utils curl build-essential bzr gitRUN apt-get install --no-install-recommends -y -q cmake gcc-multilib g++-multilib libc6-dev-i386 lib32z1-dev lib32ncurses5 lib32stdc++6COPY . /go/src/appWORKDIR /go/src/appRUN cd ./drivers/fit && bash cmakeRUN go build -o app .CMD ["app"]But when I deploy, no dependency is installed so all of them are missing. Does it mean if I want to remove aedeploy, I will have to use the dependency management tool?
--
You received this message because you are subscribed to the Google Groups "google-appengine-go" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine-go/4bcaff6e-1742-4595-bd07-9308e0d3caaa%40googlegroups.com.