Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
slapos-mynij-dev
Commits
0d969a3c
Commit
0d969a3c
authored
Jun 24, 2021
by
Stefane Fermigier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename mynij-proxy -> flask-demo
parent
5b02d926
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
software/flask-demo/instance.cfg.in
software/flask-demo/instance.cfg.in
+8
-8
software/flask-demo/software.cfg
software/flask-demo/software.cfg
+10
-10
No files found.
software/flask-demo/instance.cfg.in
View file @
0d969a3c
...
...
@@ -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}
software/flask-demo/software.cfg
View file @
0d969a3c
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment