[PATCHv2 0/3] Write extension for making image installer packages
by Richard Maw
Repo: git://git.baserock.org/baserock/baserock/definitions.git
Ref: baserock/richardmaw/S10721-img-pkg-v2
SHA1: 6fb1c58ca015da93faf4c849336c23a5686c685d
Land: origin/master
Richard Maw (3):
Fix date in SDK write extension
Add write extension for making packages of images to be installed
later.
Add example deployment of an image package
image-package-example.morph | 12 ++
image-package-example/README | 9 ++
image-package-example/common.sh.in | 72 ++++++++++++
image-package-example/disk-install.sh.in | 51 +++++++++
image-package-example/make-disk-image.sh.in | 36 ++++++
image-package.write | 168 ++++++++++++++++++++++++++++
sdk.write | 2 +-
7 files changed, 349 insertions(+), 1 deletion(-)
create mode 100644 image-package-example.morph
create mode 100644 image-package-example/README
create mode 100644 image-package-example/common.sh.in
create mode 100644 image-package-example/disk-install.sh.in
create mode 100644 image-package-example/make-disk-image.sh.in
create mode 100755 image-package.write
--
1.8.5.rc2
9 years, 5 months
[PATCH 0/8] Fixes for distbuild
by Richard Ipsum
repo: git@git.baserock.org:baserock/baserock/morph
ref: baserock/richardipsum/distbuild5
head: 4c0a4d2accc829d7fb9dd68cae457e7aec142297
Hey all,
Here are the various fixes we need to get distbuild working again.
I'm omitting the commits that add distbuild itself because it's
a lot of stuff and it's already been reviewed elsewhere.
The most important changes are in serialise. Artifact splitting complicates
serialisation a little. Sources have artifacts and every artifact has a
source, so we have a loop: to encode a source we must encode its artifacts,
to encode those artifacts we must encode their sources, to encode those
sources we must encode their artifacts... So we encode artifacts and sources
separately in dictionaries. We use Python's id() function to identify sources
and artifacts, items are stored in dictionaries using id() for the key.
For the moment the serialise methods are included in distbuild rather than
morphlib, this is just because they were written as a part of distbuild,
it might be better to move them into morphlib at some point.
The BuildController and WorkerBuildScheduler have been tweaked.
When the BuildController finds an artifact that is ready to be built
it updates the artifact's state to 'building', since all chunk artifacts are
built together we have modified the BuildController to update
the state of all chunk artifacts that share the same source to 'building'.
Similarly when the artifact has been built, it and all chunk artifacts that
share the same source are set to 'built'. This is only done for chunks, strata
and even system artifacts can (and are) built independently (potentially in
parallel on distbuild).
This series also fixes distbuild's deploy.
Richard Ipsum (8):
Fix push_build_branches
Don't print worker in initiator
Make serialise work with artifact splitting
Fix build controller
Fix worker build scheduler
Make InitiatorBuildCommand construct BuildCommand
Make morph install distbuild
Fix deploy
distbuild/build_controller.py | 40 ++++++++--
distbuild/initiator.py | 2 -
distbuild/serialise.py | 144 ++++++++++++++++++++++++++++------
distbuild/worker_build_scheduler.py | 25 +++---
morphlib/buildbranch.py | 2 +-
morphlib/plugins/deploy_plugin.py | 5 +-
morphlib/plugins/distbuild_plugin.py | 1 +
setup.py | 6 +-
8 files changed, 175 insertions(+), 50 deletions(-)
--
1.7.10.4
9 years, 5 months
[PATCH v2 0/3] UI change: distbuild has its own subcommand
by Richard Ipsum
repo: git@git.baserock.org:baserock/baserock/morph
ref: baserock/richardipsum/distbuild_with_own_cmd2_patch
head: 20f01cefe6307b62a563c39a0f60ee5245b47ebd
This version of the patch removes the hooks altogether
and brings the InitiatorBuildCommand into morphlib,
this also means we don't need the Initiator class anymore.
Richard Ipsum (3):
Bring InitiatorBuildCommand into buildcommand
Remove Initiator and InitiatorBuildCommand
UI change: distbuild has its own subcommand
morphlib/buildcommand.py | 30 +++++++++++++++++++++
morphlib/plugins/build_plugin.py | 46 ++++++++++++++++++++++++++-----
morphlib/plugins/distbuild_plugin.py | 49 ----------------------------------
3 files changed, 69 insertions(+), 56 deletions(-)
--
1.7.10.4
9 years, 5 months
[PATCH 0/3 v3] Create and display a releases repo - binary delivery
by Adam Coldrick
Repo: git://git.baserock.org/baserock/baserock/trove-setup.git
Ref: baserock/adamcoldrick/binary-delivery-v3
SHA1: 979b48d944363fc1b971c9b8c893385f0fc683c1
Target: master
Hi all,
Version 3 of this series puts the script in a more sensible place, meaning
the makefile no longer needs changing. It also fixes the bug in the shell
script pointed out by Richard Maw.
This patch adds to the lighttpd config to allow http://<trove>/releases
to show a directory listing of the rsync space of a releases repository.
Until something is pushed to this rsync space, the url will instead give
a 404 error.
It also includes a script to create a site project, and create the
required releases repository in it, along with a systemd unit that will
run this script on boot if the repository does not already exist.
Finally, the makefile for trove-setup is changed to install the script
in the right place.
Adam Coldrick (3):
Enable directory listing in <trovehost>/releases
Add a script to create the releases repository
Add a systemd unit to run the repo creation script
etc/lighttpd/git-httpd.conf | 4 ++
share/releases-repo-migration.sh | 117 +++++++++++++++++++++++++++++++++
units/releases-repo-migration.service | 14 ++++
3 files changed, 135 insertions(+)
create mode 100755 share/releases-repo-migration.sh
create mode 100644 units/releases-repo-migration.service
--
1.7.10.4
9 years, 6 months
Petrify master of definitions
by Daniel Silverstone
Hi all,
I have pushed a branch[1] to baserock:baserock/definitions which consists of
the result of checking out master and running `morph petrify`
The delta is huge and unpleasant to review but I'd appreciate it if someone ran
an eye over commit ed106b012c454e7dc172051744db094cdddd766c[2] and if I can get
enough +1s, I'd like for us to move to always keeping master of definitions
petrified. This is a first small step along the lines of ensuring that
branches do not change underneath people.
We will have to be vigilant for the merges to master in this repo for now.
Branches which change other things will also need to include an appropriate
delta for the definitions too -- which I consider to be a good thing.
D.
[1]: baserock/danielsilverstone/petrify-all
[2]: http://git.baserock.org/cgi-bin/cgit.cgi/baserock/baserock/definitions.gi...
--
Daniel Silverstone http://www.codethink.co.uk/
Lead Architect GPG 4096/R Key Id: 3CCE BABE 206C 3B69
9 years, 6 months
[PATCH 0/2] Enable SSH agent forwarding to chroots
by Daniel Silverstone
Repo: baserock:baserock/baserock-chroot
Ref: baserock/danielsilverstone/forward-ssh-agent
SHA1: 24eb626ab38e82c109f189704f95fb81410c65a8
Land: master
These patches add ssh agent forwarding to the enter-baserock script.
They add a dependency on socat. But this means that I can push
from within my baserock chroot using my primary ssh keys.
Daniel Silverstone (2):
Forward SSH authentication agent and enable ssh in chroot.
Update Debian packaging for socat dependency.
debian/changelog | 7 +++++++
debian/control | 2 +-
enter-baserock | 18 +++++++++++++++++-
3 files changed, 25 insertions(+), 2 deletions(-)
--
1.7.10.4
9 years, 6 months
[PATCH 0/4 v3] Create and display a releases repo - binary delivery
by Adam Coldrick
Repo: git://git.baserock.org/baserock/baserock/trove-setup.git
Ref: baserock/adamcoldrick/binary-delivery-v2
SHA1: 60b6cf16755de522dcdb9c1ff0698d1ad95770d2
Target: master
Hi all,
Version 2 of this patch makes the script more intelligent about whether
it tries to create groups or not. It also makes the systemd service run
the script as the git user, rather than excessively using su -c ... - git.
This patch adds to the lighttpd config to allow http://<trove>/releases
to show a directory listing of the rsync space of a releases repository.
Until something is pushed to this rsync space, the url will instead give
a 404 error.
It also includes a script to create a site project, and create the
required releases repository in it, along with a systemd unit that will
run this script on boot if the repository does not already exist.
Finally, the makefile for trove-setup is changed to install the script
in the right place.
Adam Coldrick (4):
Enable directory listing in <trovehost>/releases
Add a script to create the releases repository
Add a systemd unit to run the repo creation script
Add commands to install releases repo script
Makefile | 2 +
etc/lighttpd/git-httpd.conf | 4 ++
scripts/releases-repo-migration.sh | 113 +++++++++++++++++++++++++++++++++
units/releases-repo-migration.service | 14 ++++
4 files changed, 133 insertions(+)
create mode 100755 scripts/releases-repo-migration.sh
create mode 100644 units/releases-repo-migration.service
--
1.7.10.4
9 years, 6 months
[PATCH 0/2] UI change: distbuild has its own subcommand
by Richard Ipsum
repo: git@git.baserock.org:baserock/baserock/morph
ref: baserock/richardipsum/distbuild_with_own_cmd_patch
head: 2aa9e4cf19aeffb56b1b4f41e559aef048ba4330
Hey all,
these patches add the distbuild subcommand that we've been discussing
on irc. I was tempted to take InitiatorBuildCommand out of the distbuild
plugin and put it in morphlib/build_command, but that would involve
bringing other bits of distbuild into morphlib. I guess that we might
want to do this sometime in the future, but now doesn't seem like the
right time.
If we decide to merge this change we will have one command - 'build'
for local builds, and another command - 'distbuild' for distbuilds.
If we want to be able to distbuild releases we will probably also need
to add on a distbuild-morphology command in a similar fashion, but that's not
included in this patch.
Richard Ipsum (2):
UI change: distbuild has its own subcommand
Make distbuild fail if controller address not set
morphlib/plugins/build_plugin.py | 44 +++++++++++++++++++++++++++++-----
morphlib/plugins/distbuild_plugin.py | 12 ++++------
2 files changed, 43 insertions(+), 13 deletions(-)
--
1.7.10.4
9 years, 6 months
[PATCH 0/2] Write extension for making image installer packages
by Richard Maw
Repo: git://git.baserock.org/baserock/baserock/definitions.git
Ref: baserock/richardmaw/S10721-img-pkg
SHA1: fcf5150e927147bbce338a61101ccbb3d760f07c
Land: origin/master
Richard Maw (2):
Fix date in SDK write extension
Add write extension for making a package that allows deferred
instansiation
imgpkg.morph | 12 ++++
imgpkg.write | 142 +++++++++++++++++++++++++++++++++++++++++++
imgpkg/common.sh.in | 71 ++++++++++++++++++++++
imgpkg/disk-install.sh.in | 47 ++++++++++++++
imgpkg/make-disk-image.sh.in | 33 ++++++++++
sdk.write | 2 +-
6 files changed, 306 insertions(+), 1 deletion(-)
create mode 100644 imgpkg.morph
create mode 100755 imgpkg.write
create mode 100644 imgpkg/common.sh.in
create mode 100644 imgpkg/disk-install.sh.in
create mode 100644 imgpkg/make-disk-image.sh.in
--
1.8.5.rc2
9 years, 6 months
[PATCH 0/4] Create and display a releases repo - binary delivery
by Adam Coldrick
Repo: git://git.baserock.org/baserock/baserock/trove-setup.git
Ref: baserock/adamcoldrick/binary-delivery-rebase
SHA1: 99e040a54bd44c179050feb1fa6736ab28e5ac57
Target: master
Hi all,
This patch adds to the lighttpd config to allow http://<trove>/releases
to show a directory listing of the rsync space of a releases repository.
Until something is pushed to this rsync space, the url will instead give
a 404 error.
It also includes a script to create a site project, and create the
required releases repository in it, along with a systemd unit that will
run this script on boot if the repository does not already exist.
Finally, the makefile for trove-setup is changed to install the script
in the right place.
Adam Coldrick (4):
Enable directory listing in <trovehost>/releases
Add a script to create the releases repository
Add a systemd unit to run the repo creation script
Add commands to install releases repo script
Makefile | 4 +-
bins/releases-repo-migration.sh | 75 +++++++++++++++++++++++++++++++++
etc/lighttpd/git-httpd.conf | 4 ++
units/releases-repo-migration.service | 14 ++++++
4 files changed, 96 insertions(+), 1 deletion(-)
create mode 100755 bins/releases-repo-migration.sh
create mode 100644 units/releases-repo-migration.service
--
1.7.10.4
9 years, 6 months