File tree 2 files changed +6
-9
lines changed
2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ RUN virtualenv /env
27
27
# the context of the virtualenv and will have access to its dependencies.
28
28
ENV VIRTUAL_ENV /env
29
29
ENV PATH /env/bin:$PATH
30
+
31
+ # Kinto config file
30
32
ENV KINTO_INI /etc/kinto/kinto.ini
31
33
32
34
# Install dependencies.
33
35
ADD requirements.txt /app/requirements.txt
34
36
RUN pip install -r /app/requirements.txt
37
+ # Create Kinto config file and replace 8888 with 8080
35
38
RUN kinto --ini $KINTO_INI --backend=memory init && sed -i 's/8888/8080/g' $KINTO_INI
36
39
37
- # Add application code.
38
- ADD . /app
39
-
40
- # Use Gunicorn to serve the application.
40
+ # Run the Kinto kickoff command
41
41
CMD kinto --ini $KINTO_INI migrate && kinto --ini $KINTO_INI start
42
42
Original file line number Diff line number Diff line change 17
17
18
18
runtime : custom
19
19
vm : true
20
- health_check :
21
- enable_health_check : False
20
+
21
+ # Kinto does not respond 404 to /_ah/health (sends a redirect)
22
22
vm_health_check :
23
23
enable_health_check : False
24
24
25
- manual_scaling :
26
- instances : 1
27
-
28
25
# Temporary setting to keep gcloud from uploading the virtualenv
29
26
skip_files :
30
27
- ^v?env$
You can’t perform that action at this time.
0 commit comments