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
Labels
Merge Requests
103
Merge Requests
103
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
45243101
Commit
45243101
authored
Jul 11, 2013
by
Vivien Alger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install dependencies during software release install
parent
0157a8c1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
23 deletions
+50
-23
software/etherpad-lite/common.cfg
software/etherpad-lite/common.cfg
+16
-6
software/etherpad-lite/instance-etherpad-lite.cfg
software/etherpad-lite/instance-etherpad-lite.cfg
+1
-11
software/etherpad-lite/software.cfg
software/etherpad-lite/software.cfg
+29
-0
software/etherpad-lite/templates/installDeps.sh.in
software/etherpad-lite/templates/installDeps.sh.in
+4
-0
software/etherpad-lite/templates/run.sh.in
software/etherpad-lite/templates/run.sh.in
+0
-6
No files found.
software/etherpad-lite/common.cfg
View file @
45243101
...
@@ -21,6 +21,7 @@ parts =
...
@@ -21,6 +21,7 @@ parts =
postgresql
postgresql
nodejs
nodejs
etherpad-lite-repository
etherpad-lite-repository
install-deps
template
template
lxml-python
lxml-python
eggs
eggs
...
@@ -58,7 +59,7 @@ mode = 0644
...
@@ -58,7 +59,7 @@ mode = 0644
[instance-etherpad-lite]
[instance-etherpad-lite]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-etherpad-lite.cfg
url = ${:_profile_base_location_}/instance-etherpad-lite.cfg
md5sum =
a1afe0064ad799684d9aa20bdb313495
md5sum =
fd7249be8988155110234c7bb877abb9
output = ${buildout:directory}/template-etherpad-lite.cfg
output = ${buildout:directory}/template-etherpad-lite.cfg
mode = 0644
mode = 0644
...
@@ -75,16 +76,25 @@ recipe = slapos.recipe.download
...
@@ -75,16 +76,25 @@ recipe = slapos.recipe.download
url = ${:_profile_base_location_}/templates/${:filename}
url = ${:_profile_base_location_}/templates/${:filename}
mode = 0644
mode = 0644
filename = run.sh.in
filename = run.sh.in
md5sum =
934c8acba9253e9d40e0259f46cc68b9
md5sum =
eac870b5f30e735e109a48913af2fae3
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[template-deps-script]
[template-deps-script]
recipe = slapos.recipe.
download
recipe = slapos.recipe.
template
url = ${:_profile_base_location_}/templates/${:filename}
url = ${:_profile_base_location_}/templates/${:filename}
mode = 0644
etherpad-location = ${etherpad-lite-repository:location}
nodejs-location = ${nodejs:location}
curl-location = ${curl:location}
postgre-location = ${postgresql:location}
mode = 0755
md5sum = 53d0d53d419bd9ee592d3e1a1c84c758
filename = installDeps.sh.in
filename = installDeps.sh.in
md5sum = ea6f1500abf951972d575f0d8a63befa
output = ${etherpad-lite-repository:location}/bin/installDeps.sh
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[install-deps]
recipe = plone.recipe.command
command = ${template-deps-script:output}
update-command = command
[lxml-python]
[lxml-python]
python = python2.7
python = python2.7
software/etherpad-lite/instance-etherpad-lite.cfg
View file @
45243101
...
@@ -42,23 +42,13 @@ port = 9001
...
@@ -42,23 +42,13 @@ port = 9001
mode = 0644
mode = 0644
output = $${directory:etherpad-conf}/settings.json
output = $${directory:etherpad-conf}/settings.json
[etherpad-deps-script]
recipe = slapos.recipe.template
url = ${template-deps-script:location}/${template-deps-script:filename}
etherpad-location = $${directory:etherpad-repository-location}
nodejs-location = ${nodejs:location}
curl-location = ${curl:location}
mode = 0755
output = $${rootdirectory:bin}/installDeps.sh
[etherpad-run-script]
[etherpad-run-script]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${template-run-script:location}/${template-run-script:filename}
url = ${template-run-script:location}/${template-run-script:filename}
etherpad-location = ${etherpad-lite-repository:location}
etherpad-location = ${etherpad-lite-repository:location}
etherpad-repository-location = $${directory:etherpad-repository-location}
etherpad-repository-location = $${directory:etherpad-repository-location}
nodejs-location = ${nodejs:location}
nodejs-location = ${nodejs:location}
postgre-location = ${postgresql:location}
etherpad-deps-script-location = ${template-deps-script:output}
etherpad-deps-script-location = $${etherpad-deps-script:output}
etherpad-conf-location = $${etherpad-conf-generation:output}
etherpad-conf-location = $${etherpad-conf-generation:output}
etherpad-conf-name = settings-$${slap-connection:partition-id}.json
etherpad-conf-name = settings-$${slap-connection:partition-id}.json
mode = 0755
mode = 0755
...
...
software/etherpad-lite/software.cfg
View file @
45243101
[buildout]
[buildout]
extends =
extends =
common.cfg
common.cfg
parts +=
slapos.cookbook-repository
slapos.toolbox-repository
check-recipe
develop =
${:parts-directory}/slapos.cookbook-repository
${:parts-directory}/slapos.toolbox-repository
[slapos.cookbook-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.git
branch = etherpad-lite
git-executable = ${git:location}/bin/git
[slapos.toolbox-repository]
recipe = slapos.recipe.build:gitclone
repository = http://git.erp5.org/repos/slapos.toolbox.git
branch = master
git-executable = ${git:location}/bin/git
[check-recipe]
recipe = plone.recipe.command
stop-on-error = true
update-command = ${:command}
command =
grep parts ${buildout:develop-eggs-directory}/slapos.cookbook.egg-link &&
grep parts ${buildout:develop-eggs-directory}/slapos.toolbox.egg-link
\ No newline at end of file
software/etherpad-lite/templates/installDeps.sh.in
View file @
45243101
#!/bin/sh
#!/bin/sh
# Ugly setup
cd
${
:etherpad-location
}
export
PATH
=
$PATH
:
${
:postgre-location
}
/bin
#Is gnu-grep (ggrep) installed on SunOS (Solaris)
#Is gnu-grep (ggrep) installed on SunOS (Solaris)
if
[
$(
uname
)
=
"SunOS"
]
;
then
if
[
$(
uname
)
=
"SunOS"
]
;
then
hash
ggrep
>
/dev/null 2>&1
||
{
hash
ggrep
>
/dev/null 2>&1
||
{
...
...
software/etherpad-lite/templates/run.sh.in
View file @
45243101
...
@@ -8,14 +8,8 @@ cp -R ${:etherpad-location}/* ${:etherpad-repository-location}
...
@@ -8,14 +8,8 @@ cp -R ${:etherpad-location}/* ${:etherpad-repository-location}
cd
${
:etherpad-repository-location
}
cd
${
:etherpad-repository-location
}
# XXX Vivien: very ugly, definitely need to find a cleaner way
# XXX Vivien: very ugly, definitely need to find a cleaner way
cp
${
:etherpad-deps-script-location
}
${
:etherpad-repository-location
}
/bin/installDeps.sh
cp
${
:etherpad-conf-location
}
${
:etherpad-repository-location
}
/
${
:etherpad-conf-name
}
cp
${
:etherpad-conf-location
}
${
:etherpad-repository-location
}
/
${
:etherpad-conf-name
}
export
PATH
=
$PATH
:
${
:postgre-location
}
/bin
#prepare the enviroment
bin/installDeps.sh
$*
||
exit
1
#Move to the node folder and start
#Move to the node folder and start
echo
"start..."
echo
"start..."
${
:nodejs-location
}
/bin/node node_modules/ep_etherpad-lite/node/server.js
$*
${
:nodejs-location
}
/bin/node node_modules/ep_etherpad-lite/node/server.js
$*
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