Sign inSign up

relloyd/pdi-ce-8.0-awscli

By relloyd

•Updated over 8 years ago

Pentaho Data Integration community edition 8.0 with AWS CLI

Image
0

245

relloyd/pdi-ce-8.0-awscli repository overview

Pentaho Data Integration community edition 8.0 with AWS CLI added. Also adds mySQL and MSSQL JDBC drivers. You'll need to add Oracle JDBC manually on top of this.

FROM alpine:3.6

ENV JAVA_HOME=/usr/lib/jvm/default-jvm/jre

ENV JRE_HOME=${JAVA_HOME} \
    PENTAHO_JAVA_HOME=${JAVA_HOME} \
    PENTAHO_HOME=/opt/pentaho

ENV PDI_HOME=${PENTAHO_HOME}/data-integration \
    KETTLE_HOME=${PENTAHO_HOME}/kettle-home \
    TMP_DOCKER_BUILD_DIR=/tmp/tmp-build \
    PATH=${PATH}:${JAVA_HOME}/bin:${PDI_HOME}

# Add package ttf-dejavu below to get carte server to show transformation diagrams.

RUN apk update && \
    apk add openjdk8-jre bash webkitgtk curl ttf-dejavu && \
    apk add --virtual build-dependencies ca-certificates openssl && \
    update-ca-certificates && \
    mkdir -p ${PENTAHO_HOME} && \
    mkdir -p ${TMP_DOCKER_BUILD_DIR} && \
    cd ${TMP_DOCKER_BUILD_DIR} && \
    curl -Lo pdi-ce-8.0.0.0-28.zip https://sourceforge.net/projects/pentaho/files/Pentaho%208.0/client-tools/pdi-ce-8.0.0.0-28.zip && \
    unzip pdi-ce-8.0.0.0-28.zip && \
    mv data-integration ${PENTAHO_HOME} && \
    rm -r ${PDI_HOME}/plugins/kettle5-log4j-plugin && \
    echo "Get drivers..." && \
    cd ${TMP_DOCKER_BUILD_DIR} && \
    curl -L https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz | tar xz -C ${PDI_HOME}/lib/ mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar && \
    curl -Lo jtds-1.3.1-dist.zip https://sourceforge.net/projects/jtds/files/jtds/1.3.1/jtds-1.3.1-dist.zip/download && \
    unzip jtds-1.3.1-dist.zip && \
    cp -p jtds-1.3.1.jar ${PDI_HOME}/lib && \
    cd / && \
    rm -rf ${TMP_DOCKER_BUILD_DIR} && \
    apk del build-dependencies && \
    chmod -R g+w ${PENTAHO_HOME}

# Add AWS CLI.
# Use environment variables at run-time to supply credentials etc.
# 'pip3 install --upgrade setuptools' fails since pip3 v10 was released. Watch for a change.
# Add ttf-dejavu package below to get carte/jetty to output transformation diagrams.
RUN apk add --no-cache python3 groff less ttf-dejavu && \
    python3 -m ensurepip && \
    rm -r /usr/lib/python*/ensurepip && \
    pip3 install pip setuptools && \
    if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
    if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
    rm -r /root/.cache && \
    pip3 --no-cache-dir install --upgrade awscli 

VOLUME ["/opt/pentaho/repository","opt/pentaho/kettle-home"]

WORKDIR $PDI_HOME

CMD ["/bin/bash"]

Tag summary

Content type

Image

Digest

Size

1 GB

Last updated

over 8 years ago

docker pull relloyd/pdi-ce-8.0-awscli