Dockerize Teiid

Running Teiid as a Docker container is straight-forward, but since the runtime by itself is not a turn-key environment you must consider how you will configure/use the server from there.

The following is a basic Dockerfile that can be used to create a base image. Just create a Dockerfile with these contents and run "docker build ." from that directory.

FROM jboss/wildfly:11.0.0.Final

ENV JBOSS_HOME /opt/jboss/wildfly

# Set the TEIID_VERSION env variable

# Download and unzip Teiid server
    && curl -O$TEIID_VERSION/teiid-$ \
    && bsdtar -xf teiid-$ \
    && chmod +x $JBOSS_HOME/bin/*.sh \
    && rm teiid-$

VOLUME ["$JBOSS_HOME/standalone", "$JBOSS_HOME/domain"]

USER jboss


# Expose Teiid server  ports
EXPOSE 8080 9990 31000 35432

# Run Teiid server and bind to all interface
CMD ["/bin/sh", "-c", "$JBOSS_HOME/bin/ -c standalone-teiid.xml -b -bmanagement"]

Pre-built images can be found at Docker Hub.

If you are just using the Teiid Docker environment for more than just testing you will likely want to extend the base image or base Dockerfile to overlay the necessary modules, vdbs, and other artifacts as well as run any necessary cli to create your data sources.

results matching ""

    No results matching ""