Commit 0d969a3c authored by Stefane Fermigier's avatar Stefane Fermigier

rename mynij-proxy -> flask-demo

parent 5b02d926
......@@ -2,7 +2,7 @@
parts =
# monitor-base
publish-connection-parameter
proxy-promise
flask-demo-promise
# Define egg directories to be the one from Software Release
# (/opt/slapgrid/...)
......@@ -36,7 +36,7 @@ service = ${:etc}/service
log = ${:var}/log
plugins = ${:etc}/plugins
[proxy-service]
[flask-demo-service]
# Actual script that starts the service:
# This recipe will try to "exec" the command-line after separating parameters.
recipe = slapos.cookbook:wrapper
......@@ -45,14 +45,14 @@ command-line =
host = ${slap-configuration:ipv6-random}
port = 3001
wrapper-path = ${directory:service}/mynij-proxy
wrapper-path = ${directory:service}/flask-demo
[proxy-promise]
[flask-demo-promise]
<= monitor-promise-base
module = check_port_listening
name = proxy-port-listening.py
config-hostname= ${proxy-service:host}
config-port = ${proxy-service:port}
name = flask-demo-port-listening.py
config-hostname= ${flask-demo-service:host}
config-port = ${flask-demo-service:port}
# Publish all the parameters needed for the user to connect to the instance.
......@@ -61,4 +61,4 @@ config-port = ${proxy-service:port}
[publish-connection-parameter]
recipe = slapos.cookbook:publish
<= monitor-publish
url = http://[${proxy-service:host}]:${proxy-service:port}
url = http://[${flask-demo-service:host}]:${flask-demo-service:port}
......@@ -20,8 +20,8 @@ parts =
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
# in 99,9% of Slapos Software Releases)
slapos-cookbook
mynij-proxy-develop
proxy-eggs
flask-demo-develop
flask-demo-eggs
instance-profile
[python]
......@@ -32,7 +32,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
mode = 0644
[proxy-eggs]
[flask-demo-eggs]
recipe = zc.recipe.egg
eggs =
gunicorn
......@@ -41,16 +41,16 @@ eggs =
scripts =
gunicorn
[mynij-proxy-repository]
[flas-demo-repository]
recipe = slapos.recipe.build:gitclone
repository = https://github.com/abilian/slapos-flask-sample.git
branch = main
git-executable = ${git:location}/bin/git
# revision = 0b5ff71a2ede76499e81659aed392057ae910917
[mynij-proxy-develop]
[flask-demo-develop]
recipe = zc.recipe.egg:develop
setup = ${mynij-proxy-repository:location}
setup = ${flask-demo-repository:location}
# Download instance.cfg.in (buildout profile used to deployment of instance),
......@@ -64,7 +64,7 @@ rendered = ${buildout:directory}/instance.cfg
extensions = jinja2.ext.do
context =
section buildout buildout
key mynij_proxy_location mynij-proxy-repository:location
key flask_demo_location flask-demo-repository:location
raw gunicorn_bin ${buildout:bin-directory}/gunicorn
raw template_monitor ${monitor2-template:rendered}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment