Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Carlos Ramos Carreño
erp5
Commits
d0118cf1
Commit
d0118cf1
authored
Aug 24, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Download template files using software release.
parent
0ea9e3fe
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
18 deletions
+38
-18
component/nginx/buildout.cfg
component/nginx/buildout.cfg
+4
-2
software/html5as/instance.cfg
software/html5as/instance.cfg
+1
-0
software/html5as/instance_html5as.cfg
software/html5as/instance_html5as.cfg
+7
-14
software/html5as/software.cfg
software/html5as/software.cfg
+22
-2
software/html5as/templates/html5as_bin.in
software/html5as/templates/html5as_bin.in
+4
-0
No files found.
component/nginx/buildout.cfg
View file @
d0118cf1
...
...
@@ -2,6 +2,7 @@
extends =
../pcre/buildout.cfg
../zlib/buildout.cfg
../openssl/buildout.cfg
parts = nginx
...
...
@@ -10,6 +11,7 @@ recipe = hexagonit.recipe.cmmi
url = http://nginx.org/download/nginx-1.0.14.tar.gz
configure-options=
--with-ipv6
--with-ld-opt="-L ${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
--with-cc-opt="-I ${pcre:location}/include"
--with-http_ssl_module
--with-ld-opt="-L ${openssl:location}/lib -L ${pcre:location}/lib -Wl,-rpath=${pcre:location}/lib -Wl,-rpath=${zlib:location}/lib"
--with-cc-opt="-I ${pcre:location}/include -I ${openssl:location}/include"
software/html5as/instance.cfg
View file @
d0118cf1
...
...
@@ -4,6 +4,7 @@ parts =
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
[switch-softwaretype]
recipe = slapos.cookbook:softwaretype
...
...
software/html5as/instance_html5as.cfg
View file @
d0118cf1
...
...
@@ -2,13 +2,11 @@
parts =
nginx_conf
html5as_bin
website_download
publish-connection-information
offline = true
eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true
# partition tree
# /
...
...
@@ -67,27 +65,22 @@ bin_html5as = $${basedirectory:services}/html5as
# Utils
path_shell = ${dash:location}/bin/dash
[website_download]
recipe = hexagonit.recipe.download
# Website tarball
url = $${slap-parameter:download_url}
destination = $${html5as:docroot}
path_curl = ${curl:location}/bin/curl
[nginx_conf]
recipe = slapos.recipe.template:jinja2
template = ${
:_profile_base_location_}/templates/nginx_conf.in
template = ${
template_nginx_conf:location}/${template_nginx_conf:filename}
rendered = $${html5as:path_nginx_conf}
md5sum = 6338abecda61f4414392b6f4c1d09e8a
context = section param_html5as html5as
[html5as_bin]
recipe = slapos.recipe.template:jinja2
template = ${
:_profile_base_location_}/templates/html5as_bin.in
template = ${
template_html5as_bin:location}/${template_html5as_bin:filename}
rendered = $${html5as:bin_html5as}
md5sum = 0ddb3dfbd963819a1666ca47aa37bbc5
context = section param_html5as html5as
mode = 700
context =
section param_html5as html5as
key download_url slap-parameter:download_url
[publish-connection-information]
recipe = slapos.cookbook:publish
...
...
software/html5as/software.cfg
View file @
d0118cf1
...
...
@@ -5,6 +5,7 @@ extensions = buildout-versions
extends =
../../stack/slapos.cfg
../../component/nginx/buildout.cfg
../../component/curl/buildout.cfg
../../component/dash/buildout.cfg
allow-hosts =
...
...
@@ -19,9 +20,12 @@ allow-hosts =
parts =
dash
curl
nginx
eggs
template
template_nginx_conf
template_html5as_bin
instance_html5as
[eggs]
...
...
@@ -32,16 +36,32 @@ eggs = slapos.cookbook
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance.cfg
output = ${buildout:directory}/template.cfg
md5sum =
1910981522ff0b3202530733b5e5129e
md5sum =
918e0d6513e4d1c92051431d83261dab
mode = 0644
[instance_html5as]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance_html5as.cfg
output = ${buildout:directory}/template_html5as.cfg
md5sum =
6bb8248e367bd8cb8fdaa4dc00af14f9
md5sum =
a5f27834bce33d6c188b0d24b1455ad0
mode = 0644
[template_nginx_conf]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/nginx_conf.in
md5sum = 6338abecda61f4414392b6f4c1d09e8a
filename = nginx_conf.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template_html5as_bin]
recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/html5as_bin.in
md5sum = 397c17efdadc0b226f1f08879ffcc295
filename = html5as_bin.in
mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[versions]
zc.buildout = 1.6.0-dev-SlapOS-006
Jinja2 = 2.6
...
...
software/html5as/templates/html5as_bin.in
View file @
d0118cf1
...
...
@@ -2,4 +2,8 @@
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
# Download website tarball
exec {{ param_html5as['path_curl'] }} -sO {{ download_url }}
# 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