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
Stephane VAROQUI
slapos
Commits
b38e99b9
Commit
b38e99b9
authored
Aug 28, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate download process from running process.
parent
3e01dcb2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
14 deletions
+36
-14
software/html5as/instance_html5as.cfg
software/html5as/instance_html5as.cfg
+15
-5
software/html5as/software.cfg
software/html5as/software.cfg
+15
-6
software/html5as/templates/downloader.in
software/html5as/templates/downloader.in
+0
-3
software/html5as/templates/launcher.in
software/html5as/templates/launcher.in
+6
-0
No files found.
software/html5as/instance_html5as.cfg
View file @
b38e99b9
[buildout]
[buildout]
parts =
parts =
nginx_conf
nginx_conf
html5as_bin
downloader
launcher
mime_types
mime_types
publish-connection-information
publish-connection-information
...
@@ -72,7 +73,8 @@ path_nginx_conf = $${rootdirectory:etc}/nginx.conf
...
@@ -72,7 +73,8 @@ path_nginx_conf = $${rootdirectory:etc}/nginx.conf
path_mime_types = $${rootdirectory:etc}/mime_types
path_mime_types = $${rootdirectory:etc}/mime_types
# Executables
# Executables
bin_nginx = ${nginx:location}/sbin/nginx
bin_nginx = ${nginx:location}/sbin/nginx
bin_html5as = $${basedirectory:services}/html5as
bin_launcher = $${basedirectory:services}/launcher
bin_downloader = $${basedirectory:services}/downloader
# Utils
# Utils
path_shell = ${dash:location}/bin/dash
path_shell = ${dash:location}/bin/dash
...
@@ -92,15 +94,23 @@ recipe = slapos.recipe.template:jinja2
...
@@ -92,15 +94,23 @@ recipe = slapos.recipe.template:jinja2
template = ${template_mime_types:location}/${template_mime_types:filename}
template = ${template_mime_types:location}/${template_mime_types:filename}
rendered = $${html5as:path_mime_types}
rendered = $${html5as:path_mime_types}
[
html5as_bin
]
[
downloader
]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
template = ${template_
html5as_bin:location}/${template_html5as_bin
:filename}
template = ${template_
downloader:location}/${template_downloader
:filename}
rendered = $${html5as:bin_
html5as
}
rendered = $${html5as:bin_
downloader
}
mode = 700
mode = 700
context =
context =
section param_html5as html5as
section param_html5as html5as
key download_url slap-parameter:download_url
key download_url slap-parameter:download_url
[launcher]
recipe = slapos.recipe.template:jinja2
template = ${template_launcher:location}/${template_launcher:filename}
rendered = $${html5as:bin_launcher}
mode = 700
context =
section param_html5as html5as
[publish-connection-information]
[publish-connection-information]
recipe = slapos.cookbook:publish
recipe = slapos.cookbook:publish
server_url = http://[$${html5as:ip}]:$${html5as:port}
server_url = http://[$${html5as:ip}]:$${html5as:port}
software/html5as/software.cfg
View file @
b38e99b9
...
@@ -27,7 +27,8 @@ parts =
...
@@ -27,7 +27,8 @@ parts =
eggs
eggs
template
template
template_nginx_conf
template_nginx_conf
template_html5as_bin
template_downloader
template_launcher
template_mime_types
template_mime_types
instance_html5as
instance_html5as
...
@@ -46,7 +47,7 @@ mode = 0644
...
@@ -46,7 +47,7 @@ mode = 0644
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance_html5as.cfg
url = ${:_profile_base_location_}/instance_html5as.cfg
output = ${buildout:directory}/template_html5as.cfg
output = ${buildout:directory}/template_html5as.cfg
md5sum =
dd362b85a84d30936084aac91a0c711c
md5sum =
579eceb768e8d25fb53338fc4fac6944
mode = 0644
mode = 0644
[template_nginx_conf]
[template_nginx_conf]
...
@@ -57,11 +58,19 @@ filename = nginx_conf.in
...
@@ -57,11 +58,19 @@ filename = nginx_conf.in
mode = 0644
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template_
html5as_bin
]
[template_
launcher
]
recipe = slapos.recipe.download
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/html5as_bin.in
url = ${:_profile_base_location_}/templates/launcher.in
md5sum = 4c5043743fd6a7f0a54eee88ea074ce2
md5sum = acf5bb55ceac2e826259d28ed5c1de3a
filename = html5as_bin.in
filename = launcher.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template_downloader]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/downloader.in
md5sum = 7b374a03f4086fcae47491d449da1f09
filename = downloader.in
mode = 0644
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
...
...
software/html5as/templates/
html5as_bin
.in
→
software/html5as/templates/
downloader
.in
View file @
b38e99b9
...
@@ -7,6 +7,3 @@ rm -r {{ param_html5as['docroot'] }}/*
...
@@ -7,6 +7,3 @@ rm -r {{ param_html5as['docroot'] }}/*
# Download and extract website tarball into docroot directory
# Download and extract website tarball into docroot directory
exec {{ param_html5as['path_curl'] }} -s {{ download_url }} | {{ param_html5as['path_tar'] }} -z -x -C {{ param_html5as['docroot'] }}
exec {{ param_html5as['path_curl'] }} -s {{ download_url }} | {{ param_html5as['path_tar'] }} -z -x -C {{ param_html5as['docroot'] }}
# Run nginx
exec {{ param_html5as['bin_nginx'] }} -c {{ param_html5as['path_nginx_conf'] }}
software/html5as/templates/launcher.in
0 → 100644
View file @
b38e99b9
#! {{ param_html5as['path_shell'] }}
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# Run nginx
exec {{ param_html5as['bin_nginx'] }} -c {{ param_html5as['path_nginx_conf'] }}
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