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

rename mynij-proxy -> flask-demo

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