Migrate from an earlier version of BCD
This page explains how to upgrade your version of BCD.
Each of the versions follows the MAJOR.MINOR.PATCH format.
We have split this documentation in order to describe the differences between upgrades.
We will focus on :
scenarios : indeed you may want to keep your existing scenarios. It will allow you to recreate the same kind of stack or manipulate an existing one (deploy, undeploy, destroy).
Terraform metadata : "Terraform must store state about your managed infrastructure and configuration. This state is used by Terraform to map real world resources to your configuration, keep track of metadata, and to improve performance for large infrastructures." https://www.terraform.io/docs/state/.
So if you want to be able to manage an existing stack (i.e. a stack already deployed from a previous version of BCD), you will need to copy and paste this state.
Vagrant : this part applies only if you use Vagrant virtual machines.
Living Application repositories : this part applies only for migrations from a 2.0.x
How it works
From a 2.1.x towards 3.4.5
First, you will need to copy the files:
$ cp bonita-continuous-delivery_2.1.0/scenarios/*.yml bonita-continuous-delivery_3.4.5/scenarios/
Then you will have to check
Breaking changes section in the release notes. Indeed you will have to add the new variables
bcd_registry_password in order to retrieve BCD dependencies from Bonita secured Docker registry.
bonita_edition variable has been deprecated in BCD 3.0.0 (read BCD 3.0.0 Release Notes for further details).
Therefore, you may remove this variable from your scenario files as it will be ignored.
Copy the directory corresponding to your stack:
$ cp -r bonita-continuous-delivery_2.1.0/terraform/your_stack_name bonita-continuous-delivery_3.4.5/terraform/
As is described in the "Installation guide" from the Getting started you will need to load the last version of
bcd-controller_3.4.5.tar.zip Docker image.
You can also directly use the secured Docker registry to retrieve the latest image.
$ docker login quay.io Username: bonitasoft+john_doe_at_acme_com Password: $ docker pull quay.io/bonitasoft/bcd-controller:3.4.5
The username corresponds to
bcd_registry_user and the password corresponds to
bcd_registry_password described in the Scenario file reference. Both have been provided by your sales representative.
If you chose to persist your docker console history (see bcd controller) and want to keep it, then you should copy your
.bcd_bash_history file from your old folder to your new
$ cp bonita-continuous-delivery_2.1.0/.bcd_bash_history bonita-continuous-delivery_3.4.5/.bcd_bash_history
BCD Controller image starting from version 3.4 is now using a
If you have a customized controller in your setup (i.e. to manage user id mapping), you’ll have to rebuild it and perform changes required from Alpine to Debian.
As the controller access to them over the network it’s not necessary to move them on the filesystem.
But if you plan to clean up the old directory you can move the vagrant data located inside
2-machines directories by copying the
$ cp -r bonita-continuous-delivery_2.1.0/vagrant/1-machine/.vagrant bonita-continuous-delivery_3.4.5/vagrant/1-machine/ $ cp -r bonita-continuous-delivery_2.1.0/vagrant/2-machines/.vagrant bonita-continuous-delivery_3.4.5/vagrant/2-machines/