-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (54 loc) · 2.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#################################################################
# Dockerfile to build image for running Talend Open Studio 7.1.1
#################################################################
FROM ubuntu:20.04
MAINTAINER AODN
ARG BUILDER_UID=9999
ARG DEBIAN_FRONTEND=noninteractive
# Add JAVA_HOME and add to path as required by TOS
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV PATH $JAVA_HOME/bin:$PATH
# Add custom talend env variables for use in this file and jenkins
ENV TALEND_VERSION TOS_DI-20181026_1147-V7.1.1
ENV TALEND_DIR /opt/$TALEND_VERSION
ENV TALEND_CUSTOM_COMPONENTS $TALEND_DIR/talend-components
ENV TALEND_EXEC $TALEND_DIR/TOS_DI-linux-gtk-x86_64
ENV TALEND_WORKSPACE /home/builder
# Install packages
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
git \
openjdk-8-jdk \
unzip \
xvfb \
wget \
zip \
&& rm -rf /var/lib/apt/lists/*
RUN useradd --create-home --no-log-init --shell /bin/bash --uid $BUILDER_UID builder
RUN install -d -o builder -g builder $TALEND_DIR
USER builder
WORKDIR /tmp
# Download and install Talend Open Studio in /opt
RUN wget -q https://s3-ap-southeast-2.amazonaws.com/imos-binary/static/talend/$TALEND_VERSION.zip \
&& unzip -q -d /opt ./$TALEND_VERSION.zip \
&& rm ./$TALEND_VERSION.zip
# Download and install talend maven repo
RUN wget -q https://s3-ap-southeast-2.amazonaws.com/imos-binary/static/talend/talend-maven-repo-1.0.zip \
&& mkdir -p $TALEND_DIR/configuration/.m2 \
&& unzip -q -d $TALEND_DIR/configuration/.m2 ./talend-maven-repo-1.0.zip \
&& rm ./talend-maven-repo-1.0.zip
# Download and install TOS SDI
RUN wget -q https://s3-ap-southeast-2.amazonaws.com/imos-binary/static/talend/TOS-Spatial-7.1.1.zip \
&& unzip -q -d . ./TOS-Spatial-7.1.1.zip \
&& cp -r ./TOS-Spatial-7.1.1/plugins/* $TALEND_DIR/plugins \
&& rm ./TOS-Spatial-7.1.1.zip
# Download and install code generator plugin
ARG TALEND_CODEGEN_STAGE=production
RUN wget -q https://s3-ap-southeast-2.amazonaws.com/imos-artifacts/promoted/talend-codegen/$TALEND_CODEGEN_STAGE/au.org.emii.talend.codegen-7.1.1.jar \
-O $TALEND_DIR/plugins/au.org.emii.talend.codegen-7.1.1.jar
# Download and install components
ARG TALEND_COMPONENTS_STAGE=production
RUN wget -q https://s3-ap-southeast-2.amazonaws.com/imos-artifacts/promoted/talend-components/$TALEND_COMPONENTS_STAGE/components-1.0.0-SNAPSHOT.zip \
&& unzip -q -d $TALEND_DIR/talend-components ./components-1.0.0-SNAPSHOT.zip \
&& rm ./components-1.0.0-SNAPSHOT.zip
WORKDIR /home/builder