Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Release 1.5 #162

Open
15 tasks
wrathagom opened this issue Dec 8, 2018 · 0 comments
Open
15 tasks

Release 1.5 #162

wrathagom opened this issue Dec 8, 2018 · 0 comments
Assignees

Comments

@wrathagom
Copy link
Contributor

Template from gist https://gist.github.com/milutz/7712c37320ec062291abe435ac6bf0d5

(NOTE! This is for post ES 6.3 builds - for builds before 6.3 see other revs of this gist)

  • Create a branch for the release, typiclly that should be in the format "X.Y" X=major, Y=minor - patch shouldn't be in the branch name (multiple patch releases might come off the same release branch)
git checkout master
git pull
git checkout -b 1.4 # make and switch to the branch
git push -u origin 1.4
  • Make sure ES software defaults are set to the desired ES release (for the compose install)

Note if you change the ES version, you'll likely have to change the canvas version number on the last line of the kibana-extra/conveyor/Dockerfile

grep ELASTIC_TAG docker-compose.yml
grep ELASTIC_TAG build-compose-override.yml
grep 'ARG ELASTIC_TAG' kibana-extra/conveyor/Dockerfile

#
#The following has both the ES version and the CONVEYOR version - fix both!!

grep version kibana-extra/conveyor/package.json

grep version api/package.json 
grep 'ARG CONVEYOR_VERSION' kibana-extra/conveyor/Dockerfile

git add # anything you changed
  • Build the kibana plugin builder for that ES version
cd `mktemp -d` #optional
git clone https://github.com/samtecspg/kibana-plugin-build.git
cd kibana-plugin-build
./build-by-version.sh 6.3.2
  • Switch back to Conveyor, specifically the plugin directory and run the builder container there
# in the root of the conveyor project
docker run --rm -it -v `pwd`/kibana-extra:/kibana-extra samtecspg/kibana-plugin-dev:6.3.2 bash
  • (in the build container) run the build and exit the container
cd /kibana-extra/conveyor # <-- don't skip! You'll get massively confused if you don't cd
yarn kbn bootstrap && yarn build
exit

# If you see an error  "pleaserun" (or the build seems to run forever) *you forgot to `cd`! *
# ... watch that the "exit" really dropped you out of the container
  • Verify you have a built plugin and that its size makes sense
ls -la kibana-extra/conveyor/build

# should get something like `4450852     Aug 13 19:26    conveyor-1.4.1.zip`
# if good, stage it to the commit

git add kibana-extra/conveyor/build
  • Update the project docker-compose.yml to pull the images for this release
sed -i -- "s/repo-head/1.4.1/" docker-compose.yml
  • Do a test build and run to make sure it doesn't immediately blow for some reason
docker images
# Make sure there are any images matching the version your building in your cache!!

docker-compose -f docker-compose.yml -f build-compose-override.yml up
# do a CSV import, make sure basics work
  • Get the changes checked back in then tag to kick off a build
git add docker-compose.yml plugin/build/conveyor-6.3.0.zip
git commit -m "Updates for 1.4.1 release"
git tag -a v1.4.1 -m "Release tag for 1.4.1 release"
git push
git push origin v1.4.1
  • (after docker cloud is done with the build) build the docker-compose zip file
./package.sh v1.4.1

  • make a temp dir and test out the compose zip - do a compose up and test
cd `mktemp -d`
pwd
unzip [where-ever-package-is.zip]
cd conveyoryX.X.X
docker-compose up
  • Make a new release on github off the release tag, upload zip made by the packaging script
  • In master update the readme to point to the new release
git checkout master
git pull
vi README.md
vi docs/_getting_started/basic-installation.md
git add README.md docs/_getting_started/basic-installation.md
git commit -m "Updating readme & docs to point and newest release"
  • Update SPG Conveyer website to point at new release
  • Update Conveyer docs to point at new release
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants