Add MySQL Connector To The Fluent RESTful Container
Unfortunately, as a result of licensing restrictions, we cannot include the MySQL Connector in the Fluent RESTful Engine container. However, it is easy to add the MySQL Connector to the Fluent RESTful Engine container. The steps below describe how to add the MySQL Connector to the Fluent RESTful Engine container.
1. Download the MySQL Connector
- Navigate to the MySQL Connector download page.
- Choose the "Platform Independent" download.
- Download the ZIP file.
- If prompted to login, you may create a free account or choose "No thanks, just start my download".
2. Creating your own Docker image
- Create a new folder on your computer.
- Extract the contents of the ZIP file to the new folder.
- Create a new file in the folder called "Dockerfile" with the following contents (Replace {VERSION} with the version of the Fluent RESTful Engine version you are using):
FROM windwardstudios/fluent-restful-engine:{VERSION}
COPY mysql-connector-java-8.0.26.jar /usr/local/tomcat/lib/ - Open a command prompt and navigate to the folder you created.
- Run the following command (Replace {VERSION} with the version of the Fluent RESTful Engine version you are using and make sure to include the period at the end):
docker build -t fluent-restful-engine-mysql-connector:{VERSION} .
- You now have a Docker image with the MySQL Connector included.