Commit Graph

38 Commits (05d1a948d01105677928649e356f64cb07b8f1b0)

Author SHA1 Message Date
Jonathan A. Sternberg 94f6c19eab Install man pages inside of the packages 2016-07-22 10:34:40 -05:00
Ross McDonald c769639e88 Packaging fixes:
* Removes sysvinit-tools as an RPM package dependency.

* Update init script to not rely on sysvinit utils for backwards
  compatibility.

* Minor overall improvements to init script (improved error messages,
  comments, check for root privileges).

* Adds SLES support to post-installation script.
2016-07-12 09:22:57 -05:00
Jonathan A. Sternberg fed8fd385f Include sysvinit-tools as an rpm dependency 2016-06-13 20:08:18 -05:00
Philip O Toole 480472946f Removed unused variable in build script 2016-05-21 15:39:44 -07:00
Ross McDonald beaac45f3d Modify go vet command to exclude examples. Removes unneeded 'go get' call for vet tools (which are now packaged with Go). 2016-05-19 14:58:52 -05:00
Edd Robinson 06aba89dfb Remove Go tools repo 2016-05-18 17:25:39 +01:00
Edd Robinson 6593dcdf3c Update build script with vet check 2016-05-18 14:04:51 +01:00
Ross McDonald f01402b847 Minor fixes for build.py. 2016-05-10 10:31:32 -05:00
Ross McDonald 9953db463c Minor fixes to build script:
- Fix for --name build parameter
- Remove rc parameter from build script
- Fix regression on first-level tarball directory structure
- Change any dashes or underscores in version tag to tilde
2016-05-05 15:15:56 -05:00
Ross McDonald 84f9c245c5 Minor fix for handling of RC's and beta versions. 2016-05-02 10:25:20 -05:00
Ross McDonald 6fdc44dd77 Added improvements to build script:
- Now uses Python argparse for cleaner handling of arguments
- Added function documentation
- Removed a few unneeded functions
- Updated nightly logic to incremement minor version
- Added support for building from specific branch or commit
- Changed --no-stash option to --no-uncommitted for clarity
- Added a --release flag, default package output will now contain the branch and commit hash in the version number
- Static builds are now listed as an architecture
- Removes iteration from output package filename
2016-04-29 16:40:49 -05:00
Ross McDonald 630996e2a1 Re-add RPM upgrade logic for 0.9 branch. 2016-03-31 11:07:02 -05:00
Ross McDonald 135b0a3620 A few updates to 'build.py':
- Added ability to detach-sign packages with GPG
- Made script compatible with Python 3
- Added CLI flag for overwriting S3 packages
- Switched to logging module for output
2016-03-29 17:03:08 -05:00
Ross McDonald d6caaeea99 Fixes naming for statically-compiled packages. 2016-03-25 13:15:19 -05:00
Ross McDonald eb172ba678 Three improvements to the `build.py` script:
- Improved handling of tar and zip package outputs
- Added support for statically-compiled binary outputs
- Modifyed the nightly version format to be more human-readable
2016-03-24 16:28:39 -05:00
Ross McDonald c4d7dd7093 Added support for build tags using the
`--build-tags=<tag1>[,<tag2>...]` syntax. Added a `--name` flag to
control the name of the produced package.
2016-03-16 16:31:23 -05:00
Ross McDonald b3ae0be37f Fixed bug with release candidate being applied to tar and zips. 2016-03-16 11:02:11 -05:00
Ross McDonald 6570da0b14 Minor updates to build.py and test.sh:
- Removed incorrect debug statement
- Switched GOARM value from arm64 to 7
- Switched order of generate and get call
- Added 'go generate' command to circle builds in test.sh
2016-03-16 11:02:01 -05:00
Ross McDonald 01140fa1c1 Fixed issue with debug command output being used even though debug wasn't specified. 2016-03-01 09:45:15 -06:00
Ross McDonald e2dcdcf79b Pinning golang.org/x/tools dependency in preparation for Go 1.4 EOL. 2016-02-29 16:19:06 -06:00
Ross McDonald 28965597fb Small fix for 'go get'/'gdm' call. Added verbose debug output to circle build output. 2016-02-26 12:32:37 -06:00
Ross McDonald 82970e8dc3 Updated handling of default 'arm' arch build process, removing the
`--pkgarch` and `--goarm` flags from the build.py script. Also
improved `gdm` functionality if the GOBIN path is not on the user's
path.
2016-02-25 09:35:03 -06:00
Ross McDonald b91008d2c1 Re-added Windows builds to build script. Minor bug fixes. 2016-02-25 09:35:03 -06:00
Ross McDonald ee4743abee Updates to build.py script:
- Merged generalized changes from the Kapacitor build.py script for
  easier porting of features between projects
- Changed the nightly versioning scheme to use a tilde instead of a
  dash for easier upgrade paths.
- Added `go get` call for each platform in case of platform-specific
  build flags.
- Added a `--no-stash` option to prevent uncommitted changes from
  sneaking into packaged builds.
- Better automatic handling of version numbers.
- Removed per-platform go get command (for now).
- Added better build and packaging logic for ARM architectures.
2016-02-25 09:35:03 -06:00
gunnaraasen e2d83e53cc Implement -generate option in build script 2016-02-23 09:08:25 -08:00
Ross McDonald e3f8350cc4 Substituting 'go get' for gdm commands. Slight restructure of commands. 2016-02-16 09:33:39 -06:00
Jason Wilder 2af618c2d7 Manage dependencies with gdm
Since we are pinned to go 1.4.3, we're using the same dependency
manager as telegraf to make builds more reproducible.  We'll re-evaluate
vendoring when we can move off of 1.4.3.
2016-02-12 16:27:17 -07:00
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