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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
slapos
Commits
8eecc5d9
Commit
8eecc5d9
authored
Oct 29, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build-rina: build with a normal user instead of root
parent
657859f8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
software/build-rina/build.cfg
software/build-rina/build.cfg
+12
-12
software/test-slave-instance-deployment/software.cfg
software/test-slave-instance-deployment/software.cfg
+1
-1
stack/slapos.cfg
stack/slapos.cfg
+1
-1
No files found.
software/build-rina/build.cfg
View file @
8eecc5d9
...
@@ -13,15 +13,15 @@ apt-sources =
...
@@ -13,15 +13,15 @@ apt-sources =
apt-update =
apt-update =
for x in ${:apt-sources}
for x in ${:apt-sources}
do echo deb [trusted=yes] file:`map $x` ./
do echo deb [trusted=yes] file:`map $x` ./
done >>/etc/apt/sources.list
done
|sudo sh -c "cat
>>/etc/apt/sources.list
apt-get update
apt-get update
"
[debuild-rina-base]
[debuild-rina-base]
<= vm-run-base
<= vm-run-base
mount.rina = ${irati-stack:location}
mount.rina = ${irati-stack:location}
cd-source =
cd-source =
git clone -snc core.sparseCheckout=true /mnt/rina
/
rina
git clone -snc core.sparseCheckout=true /mnt/rina rina
cd
/
rina
cd rina
echo /${:component} > .git/info/sparse-checkout
echo /${:component} > .git/info/sparse-checkout
git reset --hard
git reset --hard
cd ${:component}
cd ${:component}
...
@@ -32,7 +32,7 @@ cd-source =
...
@@ -32,7 +32,7 @@ cd-source =
[ "$dist" ] && dist=`lsb_release -sc`/$dist || dist=UNRELEASED
[ "$dist" ] && dist=`lsb_release -sc`/$dist || dist=UNRELEASED
prepare =
prepare =
build-deps =
build-deps =
mk-build-deps -irt 'apt-get -y'
mk-build-deps -ir
s sudo -
t 'apt-get -y'
build =
build =
dpkg-buildpackage -uc -b -jauto
dpkg-buildpackage -uc -b -jauto
finalize =
finalize =
...
@@ -57,12 +57,12 @@ command =
...
@@ -57,12 +57,12 @@ command =
component = linux
component = linux
prepare =
prepare =
debian/dch-snapshot --force-distribution -D $dist
debian/dch-snapshot --force-distribution -D $dist
apt-get -y install kernel-wedge quilt python-six
sudo
apt-get -y install kernel-wedge quilt python-six
QUILT_PATCHES=$PWD/debian/patches QUILT_PC=.pc quilt push --quiltrc - -a -q --fuzz=0
QUILT_PATCHES=$PWD/debian/patches QUILT_PC=.pc quilt push --quiltrc - -a -q --fuzz=0
debian/rules debian/rules.gen || :
debian/rules debian/rules.gen || :
build =
build =
arch=`dpkg-architecture -qDEB_HOST_ARCH`
arch=`dpkg-architecture -qDEB_HOST_ARCH`
make -j${:smp} -f debian/rules.gen binary-arch_$${arch}_none binary-libc-dev_$${arch}
fakeroot
make -j${:smp} -f debian/rules.gen binary-arch_$${arch}_none binary-libc-dev_$${arch}
dpkg-genchanges -b -UBinary -UDescription \
dpkg-genchanges -b -UBinary -UDescription \
>../linux_`dpkg-parsechangelog -S Version`_$${arch}.changes
>../linux_`dpkg-parsechangelog -S Version`_$${arch}.changes
...
@@ -87,7 +87,7 @@ apt-sources = ${debuild-librina:location} ${debuild-rinad:location}
...
@@ -87,7 +87,7 @@ apt-sources = ${debuild-librina:location} ${debuild-rinad:location}
component = rina-tools
component = rina-tools
# check that the built packages install
# check that the built packages install
finalize =
finalize =
dpkg -i ../*.deb
sudo
dpkg -i ../*.deb
${debuild-librina:finalize}
${debuild-librina:finalize}
[test-rina]
[test-rina]
...
@@ -99,7 +99,7 @@ mount.slapos.package = ${slapos.package-repository:location}
...
@@ -99,7 +99,7 @@ mount.slapos.package = ${slapos.package-repository:location}
commands = install test
commands = install test
install =
install =
${:apt-update}
${:apt-update}
apt-get -y install librinad-dev rinad
sudo
apt-get -y install librinad-dev rinad
: || {
: || {
mkdir rina-tools
mkdir rina-tools
cd rina-tools
cd rina-tools
...
@@ -120,10 +120,10 @@ install =
...
@@ -120,10 +120,10 @@ install =
MAKEFLAGS=-j${:smp} bin/buildout
MAKEFLAGS=-j${:smp} bin/buildout
}
}
/mnt/slapos.package/playbook/roles/rina/gen-ipcm-conf
systemctl enable ipcm-re6st
arch=`dpkg-architecture -qDEB_HOST_ARCH`
arch=`dpkg-architecture -qDEB_HOST_ARCH`
dpkg -i `map ${debuild-rina-kernel:location}`/linux-image-*-$${arch}_*.deb
sudo sh -c "/mnt/slapos.package/playbook/roles/rina/gen-ipcm-conf
systemctl enable ipcm-re6st
dpkg -i `map ${debuild-rina-kernel:location}`/linux-image-*-$${arch}_*.deb"
reboot
reboot
test = ( set -x
test = ( set -x
# TODO: more tests
# TODO: more tests
...
...
software/test-slave-instance-deployment/software.cfg
View file @
8eecc5d9
...
@@ -58,7 +58,7 @@ eggs = collective.recipe.template
...
@@ -58,7 +58,7 @@ eggs = collective.recipe.template
[versions]
[versions]
collective.recipe.template = 1.11
collective.recipe.template = 1.11
plone.recipe.command = 1.1
plone.recipe.command = 1.1
slapos.recipe.build = 0.2
5
slapos.recipe.build = 0.2
6
slapos.recipe.template = 2.7
slapos.recipe.template = 2.7
# Replicate slapos stack, but without shacache to not have to compile the entire world for a simple test.
# Replicate slapos stack, but without shacache to not have to compile the entire world for a simple test.
...
...
stack/slapos.cfg
View file @
8eecc5d9
...
@@ -137,7 +137,7 @@ slapos.cookbook = 1.0.41
...
@@ -137,7 +137,7 @@ slapos.cookbook = 1.0.41
slapos.core = 1.3.17
slapos.core = 1.3.17
slapos.extension.strip = 0.1
slapos.extension.strip = 0.1
slapos.libnetworkcache = 0.14.5
slapos.libnetworkcache = 0.14.5
slapos.recipe.build = 0.2
5
slapos.recipe.build = 0.2
6
slapos.recipe.cmmi = 0.2
slapos.recipe.cmmi = 0.2
stevedore = 1.17.1
stevedore = 1.17.1
unicodecsv = 0.14.1
unicodecsv = 0.14.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