Commit Graph

100 Commits (master)

Author SHA1 Message Date
Kevin Gallagher 543e0d5061 Check existence of lxc-init before cp to init.lxc 8 years ago
Nicolas Vigier ad0a871e07 make-base-vm: fix init.lxc path 8 years ago
Joseph Bisch e3c2e8d3da Add support for Debian guests using LXC 8 years ago
Devrandom 9794f0cfad
Merge #133: Switch to xenial for default suite
ddd3aed Switch to xenial for default suite (Joseph Bisch)
8 years ago
Devrandom 40fa54d383
Merge #119: [gverify] print result with bold formatting
44444eb [gverify] print result with bold formatting (MarcoFalke)
8 years ago
Joseph Bisch ddd3aed172 Switch to xenial for default suite
It can be confusing to new users for make-base-vm to create a lucid vm
by default, so switch to xenial, which is also a LTS release, but isn't
EOL yet. Using lucid with gitian-builder is broken anyway, because
lucid has been moved to old-releases.ubuntu.com since it is EOL and
gitian-builder doesn't support old-releases.ubuntu.com.
8 years ago
Tigusoft Admin 0db6c05200
Allow custom DEBOOTSTRAP_DIR, to give own template (v3)
So you can make local copy of /usr/share/debootstrap/ and
e.g. add there missing e.g. "xenial" or other script/template,
without mucking around in system directory managed by
package manager.
8 years ago
MarcoFalke 44444eb387 [gverify] print result with bold formatting 8 years ago
Chris Kleeschulte e4b4780c74 Allow build to use sudo without a password, part deux
- apropos to a discussion about merge request #36, added a flag in the descriptor and command line flag.
- adding sudo: true in the yml file plus adding a command line flag --allow-sudo will allow script user to elevate permissions with no password.
8 years ago
MarcoFalke fa6f0b6301 raise "must supply reference_datetime or remotes" 8 years ago
MarcoFalke fa7840ea26 reference_datetime: Default to git author date 8 years ago
MarcoFalke 7e4b665acb Replace deprecated dsa with rsa 9 years ago
Joseph Bisch 23ccc3d1dd Use grub package instead of grub-pc unless distro is ubuntu
According to the Debian wiki, installing the package grub installs the
correct version of grub for your suite automatically. This fixes a "you
have held broken packages" error when creating the package manifest due
to a conflict between grub-pc and grub-legacy (at least with Wheezy).
9 years ago
Joseph Bisch 1aad9f4079 Expand on apt issue/workaround and correct affected Debian suites 9 years ago
Joseph Bisch 5b7c52b231 Swap Debian i386 flavour checks
Check for older suites with 686 flavour before checking for 686-pae
flavour suites, because the former should never change, but the latter
would have to be changed whenever a new suite was released if it wasn't
the last if statement.
9 years ago
Joseph Bisch 4f69707c4d Fix issue with apt in Debian <= Squeeze 9 years ago
Joseph Bisch fe1abd1153 Fix flavour for i386 arch
Wheezy on up has linux-image-686-pae. Squeeze on down has
linux-image-686.
9 years ago
Joseph Bisch 86f31e89c6 Default to ubuntu as distro if not specified
This is so that old Gitian descriptors don't break.
9 years ago
Joseph Bisch 8b297cbcdf Initial Debian guest support 9 years ago
Joseph Bisch dbf04f4ece Use lsb_release to get codename rather than /etc/lsb-release
It seems like a lsb_release program should be available on any distro if
the appropriate package is installed. So it seems better to use
lsb_release instead of /etc/lsb-release, because Debian doesn't appear
to have /etc/lsb-release.
9 years ago
Daniel Morante aac596e346 Missing wget
The build process for [Bitcoin](https://github.com/bitcoin/bitcoin/blob/master/doc/gitian-building.md) was failing with the following error

```
./bin/gbuild:21:in `system!': failed to run on-target setarch x86_64 bash -x < var/build-script > var/build.log 2>&1 (RuntimeError)
        from ./bin/gbuild:137:in `build_one_configuration'
        from ./bin/gbuild:267:in `block (2 levels) in <main>'
        from ./bin/gbuild:262:in `each'
        from ./bin/gbuild:262:in `block in <main>'
        from ./bin/gbuild:260:in `each'
        from ./bin/gbuild:260:in `<main>'
```

Inside the log file `var/build.log` the entries towards the end show

```
/bin/sh: 1: wget: not found
```
9 years ago
Devrandom 923016ec8d minor cleanup of previous 9 years ago
Dev Random 82ba171c71 Merge pull request #97 from luke-jr/cache_ro
gbuild: Allow disabling fetch of modified caches with `--cache-read-only` option
9 years ago
Luke Dashjr 9d46e26c2e gbuild: Allow disabling fetch of modified caches with `--cache-read-only` option 9 years ago
Devrandom ec56a82d4b full path to mkfs.ext4 9 years ago
Joseph Bisch db712b254e Add back accidentally removed ! from gsign 9 years ago
Joseph Bisch ede6af7864 Switch ECDSA signing to generic --signing_program option
This should allow anyone to write any signing program and use it in
conjunction with gsign as long as it supports the same options/arguments
as gpg does (namely -u for the signer and an argument for the file to
sign).
9 years ago
Joseph Bisch da0276608e Add ECDSA signing to gsign
Relies on a script in the Armory source tree to handle the actual
signing.
9 years ago
Devrandom 1ae746f68f LXC cleanup 9 years ago
Devrandom af56f89a6a improved LXC support
fixes #86
9 years ago
Devrandom 81bf5d7025 ensure guest upgrade occurs before attempting to get manifest
fixes #85
9 years ago
Devrandom 7d1e7c5419 trusty fixes, remove legacy grub
fixes #84
9 years ago
Dev Random b4201676d8 fix trusty kernel install 9 years ago
Devrandom c834f371bb Revert "git: minimize uploaded git files"
This reverts commit dcf28c8b86.

due to issue #74 - branches don't work
10 years ago
Cory Fields b1e59cf0a1 cache: define cache paths and GBUILD_CACHE_ENABLED only if caching is enabled 10 years ago
Dev Random 02f4440473 Merge pull request #72 from theuni/git-minimize-upload
git: minimize uploaded git files
10 years ago
Cory Fields 66015b9f14 cache: define variables for cache paths 10 years ago
Cory Fields dcf28c8b86 git: minimize uploaded git files
Rather than uploading every checked-out file of a repository and the
repository objects themselves, skip the checkout and instruct git to compact
before upload. The result is that only a handful of files are transferred,
rather than hundreds or thousands for large repositories.

The HEAD ref is updated before upload so that a hard reset works as before on
the target. The reflog is also disabled in order to avoid uploading useless log
files.

This change is backwards-compatible, but it will only have an effect on new
repositories.
10 years ago
Cory Fields 00d5b9849c cache: require the enable_cache key to be set to true in order to use cache functionality 10 years ago
Christopher Gurnee 63fe5d1de2 Fix issue #63: use lxc-execute instead of lxc-start 10 years ago
Cory Fields 923ea1055d fix: use don't use methods that require new ruby version
This is a regression from ea24af10. Dir.exists isn't available in ruby 1.8
10 years ago
Dev Random 8e907adcc4 Merge pull request #58 from laanwj/master
Extend gverify comparison
10 years ago
Cory Fields 00114ee98f fix: Separate cache from output files in yml report
Otherwise the output may look non-deterministic if there are stale files in
the cache.
10 years ago
Cory Fields 6a64b48d69 fix: create cache dirs to avoid file copy errors
This fixes builds that don't use caching.
10 years ago
Cory Fields ea24af1043 Add common cache and per-build cache
Allow each builder to cache some files for re-use in the next build. This
allows for poor-man's dependency chaining.

Additionally, add a common cache pool for all builds. This can be used for
saving (for example) downloaded files to be shared between builds.
10 years ago
Ben Rossi feef35616b Allow @ in URLs so Gitian-Builder works against source stored on BitBucket. 10 years ago
Giuseppe Mazzotta 25db707b34 Use a clean environment when building VMs 10 years ago
Wladimir J. van der Laan 449bc5b243 Extend gverify comparison
- Allow comparing to a sepcific 'golden' manifest with `--compare-to`
- By default pick the first manifest to compare to, instead of always
  comparing against the previous one, which is confusing
- Show line-by-line difference if `-v` given
10 years ago
gdm85 1504c76f11 Fix issue #56: clean up environment before gbuild'ing
Originally proposed by cfields
10 years ago
Wladimir J. van der Laan 5785dfc3ae Un-hardcode host/guest IP
I was running into trouble using gitian LXC INSIDE a VirtualBox VM, because
the 10.0.2.x IP range overlaps with the range that VirtualBox uses for
its internal NAT network.

This commit makes it possible to override the host and guest IP that
is used during LXC image creation and the build, using environment variables:

- `GITIAN_HOST_IP` (default=10.0.2.2, host IP from the viewpoint of the
   VM, can be used for both LXC and KVM)
- `LXC_GUEST_IP` (default=10.0.2.5, guest IP from the viewpoint of the
   host, effective for LXC only)

When these are not defined the behavior remains the same as before.
10 years ago