Introduction
Installing the Terraform Enterprise (TFE) Flexible Deploy Options (FDO) on Docker requires a license.
This article aims to show how you can provide your TFE license path to Docker using a TFE_LICENSE_PATH environment variable in your application settings.
Expected Outcome
Install TFE FDO using Docker successfully.
Prerequisites (if applicable)
- TFE FDO License
Use Case
Your company requires you to provide your TFE application license from a file.
Procedure
- Create a folder for your TFE FDO installation files. I will use
/root/tfe-fdo
- Go to the folder
/root/tfe-fdo
- Create a file named
fdo-license.txt
and copy the license code to it and save it -
Create a
compose.yaml
file and populate it with your desired deployment configuration - Define the
TFE_LICENSE_PATH
environment variable as below in youryaml
file
environment:
TFE_LICENSE_PATH: /var/tmp/tfe-fdo/fdo-license.txt
- Add the following bind to your volumes
volumes:
- type: bind
source: /root/tfe-fdo
target: /var/tmp/tfe-fdo
NOTE: You can use any other paths that you require in your installation