To install the BRIDGE you can use the Docker image delivered by us but you can also create a BRIDGE Docker image of your own to fulfill special needs. You can do this from scratch, or you can use the delivered BRIDGE Docker image and change it according to your needs.
Required Files to Create a BRIDGE Docker Image
If you want to create the BRIDGE Docker image you need the following files:
File | In ZIP | Usage |
---|---|---|
Dockerfile | The Docker file that rules the image build. | |
BridgeInstaller-linux-64-x.x.x.jar | A BRIDGE installer. | |
guilessinstaller.properties | A properties file for GUI-less installation. | |
instantclient.zip | A file containing the Oracle client library you want to install. Download e.g. instantclient-basiclite-19.3.0.0.0dbru-linux-64.zip from Oracle and rename it to instantclient.zip. | |
proxies.xml | A file containing proxy definitions. You need it only if you use sudo. | |
server.cfg | A file containing the configuration for MySQL and SQL Server client libraries. | |
sudo_httpd | A file containing sudo and httpd configurations. |
You can download a ZIP archive containing all files that are marked with In ZIP from our download page.
The BRIDGE Docker File Explained
Expand the code section below to see and copy & paste the Docker file.
Code | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Preparations | |||||||||||||||
| Create a Docker image install. You need Java 11 to install the BRIDGE. | ||||||||||||||
COPY guilessinstaller.properties /tmp/guilessinstaller.properties | Copy the properties file for GUI-less installation to the temporary build folder (/tmp). | ||||||||||||||
| Copy the BRIDGE installer file to the temporary build folder (/tmp). | ||||||||||||||
| As the BRIDGE should not be run as root, create a group bridge and a user bridge. | ||||||||||||||
&& java -jar /tmp/BridgeInstaller.jar -guiless -installproperties /tmp/guilessinstaller.properties -debuglevel info | Start the installation. | ||||||||||||||
Creating the Image | |||||||||||||||
FROM debian:stretch | Use Debian Stretch as base for the BRIDGE image. | ||||||||||||||
| Expose the BRIDGE port. | ||||||||||||||
| Setup the desired time zone. | ||||||||||||||
RUN apt-get update -q \ | Install additional Debian packages. | ||||||||||||||
&& apt-get install -qq sudo procps curl net-tools unzip vim mysql-client gnupg apt-transport-https \ | Installation of:
| ||||||||||||||
| Install MS SQL Server database client library. | ||||||||||||||
&& rm -rf /var/lib/apt/lists/* \ | Cleanup installation. | ||||||||||||||
| As the BRIDGE should not be run as root, create a group bridge and a user bridge. | ||||||||||||||
&& (cd /etc; ln -f -s /usr/share/zoneinfo/$TZ localtime) | Setup the desired time zone. | ||||||||||||||
| Set environment so that filenames will be UTF-8 encoded. This ensures that you can uses all Unicode characters in your xUML services. | ||||||||||||||
| Set environment so that the system uses the Java coming with the BRIDGE. | ||||||||||||||
ENV ORACLE_HOME=/opt/oracle/instantclient_19_3 | Configure the Oracle Database client library. | ||||||||||||||
COPY instantclient.zip /tmp/instantclient.zip | Install the Oracle Database client library. | ||||||||||||||
COPY sudo_httpd /etc/sudoers.d/ | Configure sudo_http. Only needed if sudo package is installed. | ||||||||||||||
| Copy installation from image install. | ||||||||||||||
COPY --chown=bridge:bridge proxies.xml /opt/bridge_data/proxies/ | Configure proxies.xml. Only needed if sudo package is installed. | ||||||||||||||
COPY --chown=bridge:bridge server.cfg /opt/bridge_data/server.cfg | Configure MySQL and MS SQL Server client libraries. | ||||||||||||||
USER bridge | Specify the user the BRIDGE should use to run. | ||||||||||||||
| Call BRIDGE standard start script with parameter docker. |