Installing a linux package for app engine instance, how to?

958 views
Skip to first unread message

Pub Lift

unread,
Jan 17, 2017, 5:38:05 PM1/17/17
to Google App Engine, Adam De Cruz
Hello!

I'm having a bit of an issue with my app. I'm using nodejs and it interacts with gnuplot, but I'm not sure how to install the gnuplot package after deploying the app. 

Am I doing this right?
Dockerfile
FROM gcr
.io/google_appengine/nodejs


RUN apt
-get -qq update && apt-get -qq -y install gnuplot

app.yaml
runtime
: custom
env
: flex
vm
: true

# Temporary setting to keep gcloud from uploading node_modules
skip_files
:
 
- ^node_modules$


manual_scaling
:
  instances
: 1

When I run
gcloud app deploy

, the console just stays stuck on 
Building and pushing image for service [default]

Can anyone tell me what I'm possibly doing wrong? Thanks!

George (Cloud Platform Support)

unread,
Jan 18, 2017, 3:27:26 PM1/18/17
to Google App Engine, ad...@publift.com

There is an often repeated advice, to run one application per Docker container. If you decide to follow that piece of advice, you could take a look at the Container Engine. If you choose to install the app in  the same container, you need to commit the change with “docker commit”.


Why don’t you want the node.js files to get deployed? It may prove difficult to have node.js specific functionality without them.

Pub Lift

unread,
Jan 18, 2017, 5:14:05 PM1/18/17
to Google App Engine, ad...@publift.com
Oh I do want to use node.js with the application, maybe I made my question not clear. I'm using an npm package that interacts with gnuplot, which is required to be installed inside the container in which my nodejs application resides. So within the nodejs container I want to install gnuplot, but I wasn't sure how to.

But I managed to figure it out through Custom runtimes anyhow.

Justin Beckwith

unread,
Jan 19, 2017, 7:40:38 PM1/19/17
to Google App Engine, ad...@publift.com
Could you delete the line that says "vm: true" and try again? 

Pub Lift

unread,
Jan 19, 2017, 7:44:41 PM1/19/17
to Google App Engine, ad...@publift.com
ERROR: (gcloud.app.deploy) An error occurred while parsing file: [/home/adcruz/Documents/Publift/dashboard/app.yaml]
No URLMap entries found in application configuration



And I do not want to use
env: flex

either for the time being because it doesn't seem to want to use our custom domain

Justin Beckwith

unread,
Jan 21, 2017, 2:14:16 AM1/21/17
to google-a...@googlegroups.com, Lorne Kligerman, ad...@publift.com
We should be able to get your custom domain set up for you on env:flex.  Lorne (cc'd) should be able to help us out here :) 

--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/gQhFggScNPM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/861b893c-8b55-4270-a6fd-9e800dbbca52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Justin Beckwith | Google Cloud Platform | @justinbeckwith | http://jbeckwith.com

Pub Lift

unread,
Jan 22, 2017, 5:43:51 PM1/22/17
to Google App Engine, lklig...@google.com, ad...@publift.com
Thanks! However I already submitted an application for that already through here https://support.google.com/cloud/answer/7296073?visit_id=1-636207217772226127-1165733838&rd=1 Though I just noticed the page changed.


On Saturday, January 21, 2017 at 6:14:16 PM UTC+11, Justin Beckwith wrote:
We should be able to get your custom domain set up for you on env:flex.  Lorne (cc'd) should be able to help us out here :) 
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To post to this group, send email to google-a...@googlegroups.com.

Lorne Kligerman

unread,
Jan 24, 2017, 3:49:42 PM1/24/17
to Pub Lift, Google App Engine, ad...@publift.com
Hi Adam,

We had a bit of a backlog but I just double checked and your domain should now be good to go.
Let me know if you have any questions!

Cheers,
Lorne.
Reply all
Reply to author
Forward
0 new messages