FROM google/debian:wheezy MAINTAINER mchouan@gpartner.eu # Fetch and install Node.js RUN apt-get update -y && apt-get install --no-install-recommends -y -q curl python build-essential git ca-certificates RUN mkdir /nodejs && curl http://nodejs.org/dist/v0.12.0/node-v0.12.0-linux-x64.tar.gz | tar xvzf - -C /nodejs --strip-components=1 # Add Node.js installation to PATH ENV PATH $PATH:/nodejs/bin # Install redis RUN apt-get install -y redis-server # Install supervisor RUN apt-get install -y supervisor # Add Node.js installation to PATH, and set # the current working directory to /app # so future commands in this Dockerfile are easier to write WORKDIR /app ENV NODE_ENV development ADD package.json /app/ # RUN npm install # Adds app source ADD . /app ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf CMD ["/usr/bin/supervisord"]
Hello,
I am trying to deploy an application in a managed Google virtual machine based on Node.JS. However, this seems to confuse me a bit, as I am still getting this deployment error:
ERROR: (gcloud.preview.app.deploy) Not enough VMs ready (0/1 ready, 1 still deploying). Deployed Version: 280815s.386747973874670759
We were able to deploy it a week ago, so this error does not occur every time (this is repeated for 2 days). I think that something is wrong with our configuration, perhaps with regard to our app.yaml or our Docker file, but I still can not understand what is happening. In addition, the virtual machine is created, but is not available, the SSH connection is lost. I was wondering if this came from Google. Do you have any ideas?
Here is the app.yaml app:
module: default runtime: custom api_version: 1 vm: true # manual_scaling: # instances: 1 # [START scaling] automatic_scaling: min_num_instances: 1 max_num_instances: 5 cool_down_period_sec: 60 cpu_utilization: target_utilization: 0.5 # [END scaling] health_check: enable_health_check: False check_interval_sec: 20 timeout_sec: 4 unhealthy_threshold: 2 healthy_threshold: 2 restart_threshold: 60 handlers: - url: /.* script: server.js
Here is the Docker file:
FROM google/debian:wheezy MAINTAINER mchouan@gpartner.eu
Here is the command we run to deploy the application:
gcloud preview app deploy $DIR/app.yaml --version="$version" --force
Thanks for the help.
source share