Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Ophélie Gagnard
slapos
Commits
b8912e2e
Commit
b8912e2e
authored
Mar 04, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into scan-filesystem
parents
bb3cf8fe
abe9e35c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
33 deletions
+18
-33
software/beremiz-runtime/buildout.hash.cfg
software/beremiz-runtime/buildout.hash.cfg
+1
-1
software/beremiz-runtime/instance.cfg.in
software/beremiz-runtime/instance.cfg.in
+5
-16
software/beremiz-runtime/software.cfg
software/beremiz-runtime/software.cfg
+12
-16
No files found.
software/beremiz-runtime/buildout.hash.cfg
View file @
b8912e2e
[instance-profile]
[instance-profile]
filename = instance.cfg.in
filename = instance.cfg.in
md5sum =
ed202dc7d69f517e325f01dc3ac4fe32
md5sum =
6e3e1dc304378640707cdb6a792106f1
software/beremiz-runtime/instance.cfg.in
View file @
b8912e2e
...
@@ -5,27 +5,20 @@
...
@@ -5,27 +5,20 @@
#############################
#############################
[buildout]
[buildout]
parts =
parts =
directory
publish-connection-parameter
publish-connection-parameter
download-plc
download-plc
beremiz-runtime
beremiz-runtime
#
beremiz-runtime-promise
#beremiz-runtime-promise
eggs-directory = {{ buildout['eggs-directory'] }}
eggs-directory = {{ buildout['eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
develop-eggs-directory = {{ buildout['develop-eggs-directory'] }}
offline = true
offline = true
extends = {{ template_monitor }}
extends = {{ template_monitor }}
[download-plc]
[download-plc]
recipe =
plone.recipe.comman
d
recipe =
slapos.recipe.build:download-unpacke
d
update-command = ${:command}
offline = false
url = ${instance-parameter:configuration.runtime_plc_url}
url = ${instance-parameter:configuration.runtime_plc_url}
md5sum = ${instance-parameter:configuration.runtime_plc_md5sum}
# XXX: do check md5sum !
command =
wget ${:url} -O plc.tgz
tar zxvf plc.tgz
[instance-parameter]
[instance-parameter]
recipe = slapos.cookbook:slapconfiguration
recipe = slapos.cookbook:slapconfiguration
...
@@ -36,13 +29,9 @@ key = ${slap-connection:key-file}
...
@@ -36,13 +29,9 @@ key = ${slap-connection:key-file}
cert = ${slap-connection:cert-file}
cert = ${slap-connection:cert-file}
configuration.runtime_plc_url =
configuration.runtime_plc_url =
configuration.runtime_plc_md5sum =
configuration.runtime_plc_md5sum =
# XXX: we can get rid of plc_name in future
configuration.runtime_plc_name =
configuration.autostart = 1
configuration.autostart = 1
configuration.interface = 0.0.0.0
configuration.interface = 0.0.0.0
# XXX: randomly generated one on slap's interface?
configuration.port = 61248
configuration.port = 61248
configuration.plc_runtime_path = ${directory:home}/${:configuration.runtime_plc_name}
# Create all needed directories, depending on your needs
# Create all needed directories, depending on your needs
[directory]
[directory]
...
@@ -50,7 +39,7 @@ recipe = slapos.cookbook:mkdirectory
...
@@ -50,7 +39,7 @@ recipe = slapos.cookbook:mkdirectory
home = ${buildout:directory}
home = ${buildout:directory}
etc = ${:home}/etc
etc = ${:home}/etc
var = ${:home}/var
var = ${:home}/var
script = ${:etc}/run
/
script = ${:etc}/run
service = ${:etc}/service
service = ${:etc}/service
log = ${:var}/log
log = ${:var}/log
...
@@ -58,7 +47,7 @@ log = ${:var}/log
...
@@ -58,7 +47,7 @@ log = ${:var}/log
logfile = ${directory:log}/beremiz-runtime.log
logfile = ${directory:log}/beremiz-runtime.log
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
command-line =
command-line =
{{ buildout['bin-directory'] }}/pythonwitheggs {{ buildout['directory'] }}/
src/beremiz/Beremiz_service.py -a ${instance-parameter:configuration.autostart} -p ${instance-parameter:configuration.port} -i ${instance-parameter:configuration.interface} -x 1 ${directory:home}/${instance-parameter:configuration.runtime_plc_name}
{{ buildout['bin-directory'] }}/pythonwitheggs {{ buildout['directory'] }}/
parts/beremiz-source/Beremiz_service.py -a ${instance-parameter:configuration.autostart} -p ${instance-parameter:configuration.port} -i ${instance-parameter:configuration.interface} -x 1 ${directory:home}/parts/download-plc
wrapper-path = ${directory:service}/beremiz-runtime
wrapper-path = ${directory:service}/beremiz-runtime
[beremiz-runtime-promise]
[beremiz-runtime-promise]
...
...
software/beremiz-runtime/software.cfg
View file @
b8912e2e
# the default SlapOs profile which setup a modbus server instance usually over OSIE's coupler
[buildout]
[buildout]
allow-picked-versions = true
extensions = mr.developer
auto-checkout = beremiz
extends =
extends =
buildout.hash.cfg
buildout.hash.cfg
https://lab.nexedi.com/nexedi/slapos/raw/master/stack/monitor
/buildout.cfg
../../component/git
/buildout.cfg
https://lab.nexedi.com/nexedi/slapos/raw/master/stack/slapos
.cfg
../../stack/monitor/buildout
.cfg
https://lab.nexedi.com/nexedi/slapos/raw/master/component/python3/buildout
.cfg
../../stack/slapos
.cfg
parts =
parts =
python-interpreter
beremiz-source
slapos-cookbook
slapos-cookbook
instance-profile
instance-profile
python-interpreter
# fix for pypi: https://mail.python.org/pipermail/distutils-sig/2017-October/031712.html
[beremiz-source]
index = https://pypi.python.org/simple/
recipe = slapos.recipe.build:gitclone
repository = https://github.com/beremiz/beremiz.git
[sources]
branch = default
beremiz = git https://github.com/beremiz/beremiz.git branch=defaul
t
git-executable = ${git:location}/bin/gi
t
[beremiz]
[beremiz]
recipe = zc.recipe.egg:develop
recipe = zc.recipe.egg:develop
egg = beremiz
egg = beremiz
setup = ${b
uildout:directory}/src/beremiz
setup = ${b
eremiz-source:location}
[Twisted]
[Twisted]
recipe = zc.recipe.egg:custom
recipe = zc.recipe.egg:custom
...
@@ -31,6 +28,7 @@ egg = Twisted
...
@@ -31,6 +28,7 @@ egg = Twisted
setup-eggs =
setup-eggs =
six
six
pathlib
pathlib
incremental
[python-interpreter]
[python-interpreter]
recipe = zc.recipe.egg
recipe = zc.recipe.egg
...
@@ -53,7 +51,6 @@ eggs = click
...
@@ -53,7 +51,6 @@ eggs = click
[instance-profile]
[instance-profile]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
template = ${:_profile_base_location_}/${:filename}
mode = 0644
rendered = ${buildout:directory}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
extensions = jinja2.ext.do
extensions = jinja2.ext.do
context =
context =
...
@@ -95,4 +92,3 @@ typing = 3.10.0.0
...
@@ -95,4 +92,3 @@ typing = 3.10.0.0
autobahn = 19.11.2
autobahn = 19.11.2
txaio = 18.8.1
txaio = 18.8.1
idna = 2.10
idna = 2.10
mr.developer = 2.0.1
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