Commit Graph

47 Commits (adbfee28b321990d024fe1242b957aee3346666d)

Author SHA1 Message Date
Jonathan A. Sternberg 066d53f99d Use dep for dependency management instead of gdm 2018-03-12 15:20:08 -05:00
Mark Rushakoff be0438ad36 Add rpm dependency on shadow-utils for useradd
Fixes #8951.
2017-10-12 09:13:01 -07:00
Jonathan A. Sternberg 920b2bee2e Merge pull request #7949 from lfarkas/master
always force the file inside the tarball owned by root
2017-10-03 14:37:06 -05:00
Jonathan A. Sternberg 1300f4cc6c Remove the admin UI 2017-04-25 16:58:24 -05:00
Jonathan A. Sternberg d0a9c4c781 Use go junit formatter to output tests in junit format on CircleCI 2017-04-10 11:47:51 -05:00
Levente Farkas e2e3057906 always force the file inside the tarball owned by root 2017-02-05 10:37:05 +01:00
Tony Cheneau 89d091e23e Fix ARM64 build by replacing "aarch64" string with "arm64" 2016-11-03 22:23:43 +00:00
Michael Nikitochkin c70efc8261
Use go 1.7.1 for testing
Updated failed test that specific for duration format in string.
2016-09-19 12:28:58 +02:00
Jonathan A. Sternberg edd32908fe More man pages for the other tools we package
Updating the package to compress the man pages fully and removes the
filename and timestamp from being stored in the man page. Lintian
complains that the packages aren't compressed using the best compression
method.

https://lintian.debian.org/tags/manpage-not-compressed.html
2016-09-15 08:35:05 -05:00
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