Git Product home page Git Product logo

Comments (2)

shantuo avatar shantuo commented on July 29, 2024

We released the new GCP image after the holiday, so gcloud app deploy should work now. aedeploy is deprecated.

I am trying to come up with a solution. Could you share a little bit more about your use case? Are you using App Engine? or Flex? or something else?

from golang-docker.

hraban avatar hraban commented on July 29, 2024

It works now. What I'm trying to do is use this base image with the AE flex golang hello world example. I.e.: get hello world running with this base image.

So follow the steps on https://cloud.google.com/go/getting-started/hello-world, but instead of runtime: go in your app.yaml you have runtime: custom. Then have a Dockerfile with:

FROM gcr.io/google_appengine/golang

COPY . /go/src/app
RUN go-wrapper install -tags appenginevm

and gcloud app deploy. I now see that a source-context.json file appears in the working directory of the container when deployed on app engine. How is that done, though? Where do those files come from? How can I run this container locally? I used to be able to just docker build -t myapp . ; docker run ... myapp, but that doesn't create the source-context(s).json files, so now it breaks.

About this:

aedeploy is deprecated.

Since when? Where was this announced? How can I set myself up to know these kind of things in the future? Is there a low-noise mailing list? A central, source-of-truth doc that I can trust if it contradicts other docs?


To deploy a Go app, use the aedeploy tool, which will correctly assemble your app's dependencies in the same way that the go tool does.

https://cloud.google.com/appengine/docs/flexible/go/testing-and-deploying-your-app

To deploy your app to the App Engine flexible environment:

  1. Deploy the Hello World app by running the following command from the helloworld directory:

    $ aedeploy gcloud app deploy

https://cloud.google.com/go/getting-started/hello-world


There was even a note, somewhere, in one of these bazillion docs and READMEs, that eventhough go1.6/7 introduced vendoring you should keep using aedeploy... But I can't find it at the moment.

The scatterbrain that is appengine docs can be a thicket worthy of guarding a Sleeping Beauty, at times. :P

from golang-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.