Commit Graph

11 Commits (627cd9d486b98af01f02f0915319185a81b46c87)

Author SHA1 Message Date
Marcus Geiger 9974a6a4d2 Fix handling of build.py --pkgarch.
--pkgarch overrides the architecture which is used in subsequent runs to
build different packages (deb,tar.gz,rpm) and the architecture is used
to index the build information kept in a dict, which of course fails if
it has been overridden. This commit resets the overridden architecture
after each run of fpm to initial, in order to fix the packaging.
2016-02-09 18:39:46 +01:00
Ross McDonald 144f3983c0 A few updates to build.py:
- Added package iteration to tar and zip builds in case of pre-release.
- Added ability to specify S3 bucket path (ex: bucket/influxdb) in case the user wants to upload to a folder hierarchy.
- Restructured build script for easier diffing between other TICK-stack build scripts.
- Cleaned up build script output to not use tabs.
- Added a top-level directory for tar.
- Removed zip as a supported package output due to fpm zip output including the entire directory structure.
2016-02-04 09:16:32 -06:00
Ross McDonald db68606e89 Added logic to build.py to cleanly handle a 'go get' switching the branch back to master. Modified the build command to reference the actual git branch instead of the target git branch. Added an optional '--no-get' flag to __not__ run 'go get' when building (helpful for small build changes). Added option to specify a non-default S3 bucket for uploads. Added debug flag and output. Also modified 32-bit builds to be marked as i386 instead of 386. 2016-01-16 11:04:42 -06:00
Ross McDonald db84a6ed76 Merge pull request #5330 from bwolf/buildpy-pkg-arch
Packaging arch argument for build.py.
2016-01-14 14:04:20 -06:00
Jason Wilder 9c851f790e Use go1.4.3
Fixes #5283 #5217
2016-01-10 16:43:31 -07:00
Marcus Geiger ff595d7e6c Packaging arch argument for build.py.
Add --pkgarch option to build.py to specify the packaging architecture which can be different to GOARCH.
Example: build for debian on raspberry pi. GOARCH will be arm but the packaging architecture on debian will be armhf (arm hard float). The --pkgarch option is passed to fpm to specify the required architecture which is reflected in the package manifest and also in the result filename.
2016-01-10 21:26:09 +00:00
Ross McDonald 560f691096 A few updates:
- Re-enabling support for ARM builds in `build.py`.
- Improved `build.py`'s iteration and package version.
- Fixed minor bug with logrotate file path in `build.py`.
- Improved installation pre and post install/uninstall scripts by adding distribution-specific logic to account for quirks between the different package managers.
- Added post-install as post-trans script for RPM builds due to the order of RPM upgrade commands (issue where init scripts were removed when upgrading).
- Added explicit backup to pre-install script to ensure legacy configuration survive an upgrade.
2016-01-07 15:03:43 -06:00
Philip O'Toole eaec514ca0 b*1 to tsm1 shard converter 2015-12-29 15:31:07 -05:00
Nathaniel Cook 1e816e618b decouple circleci from tests using docker 2015-12-14 16:39:39 -07:00
Ross McDonald b53ebe9d5d Backporting changes from build.py to package.sh. Also fixes a few miscellaneous package permissions issues that Debian's lintian complained about. 2015-11-16 13:19:54 -06:00
Ross McDonald bd186195db Restructured filesystem hierarchy, and updated pre/post installation scripts to ease upgrade progress. Also adding first iteration of new build script (build.py).
New package filesystem hierarchy:
	 - /var/lib/influxdb => Data directories
	 - /usr/lib/influxdb => Scripts and other miscellaneous files
	 - /etc/influxdb => Configuration
	 - /usr/bin/ => Where InfluxDB binaries will live
2015-11-12 10:42:41 -06:00