Skip to content

Commit

Permalink
Basic Kinto Example
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Prin committed Jan 30, 2016
1 parent 87cc9b8 commit f9253fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 4 additions & 4 deletions managed_vms/kinto/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ RUN virtualenv /env
# the context of the virtualenv and will have access to its dependencies.
ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH

# Kinto config file
ENV KINTO_INI /etc/kinto/kinto.ini

# Install dependencies.
ADD requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
#Create Kinto config file and replace 8888 with 8080
RUN kinto --ini $KINTO_INI --backend=memory init && sed -i 's/8888/8080/g' $KINTO_INI

# Add application code.
ADD . /app

# Use Gunicorn to serve the application.
# Run the Kinto kickoff command
CMD kinto --ini $KINTO_INI migrate && kinto --ini $KINTO_INI start

7 changes: 2 additions & 5 deletions managed_vms/kinto/app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,11 @@

runtime: custom
vm: true
health_check:
enable_health_check: False

# Kinto does not respond 404 to /_ah/health (sends a redirect)
vm_health_check:
enable_health_check: False

manual_scaling:
instances: 1

# Temporary setting to keep gcloud from uploading the virtualenv
skip_files:
- ^v?env$

0 comments on commit f9253fd

Please sign in to comment.