-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile
49 lines (38 loc) · 1.64 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
# syntax=docker/dockerfile:1
ARG base_image=edwardost/ubi8
ARG base_tag=8.9-1160
ARG qlik_user=qlik
ARG qlik_tenant=obd
FROM ${base_image}:${base_tag} AS gateway_instance
ARG dnf_command
ARG qlik_user
ARG qlik_tenant
ARG qlik_package=qlik-data-gateway-data-movement_2023.11-4_x86_64.rpm
ARG qlik_package_version=2023.11-4
ARG qlik_package_platform=x86_64
ARG dnf_command=dnf
LABEL maintainer="eost@qlik.com"
LABEL qlik_package_version="${qlik_package_version}"
LABEL qlik_package_platform="${qlik_package_platform}"
LABEL qlik_tenant="${qlik_tenant}"
ENV QLIK_TENANT=${qlik_tenant}
ENV QLIK_PACKAGE_VERSION=${qlik_package_version}
ENV QLIK_PACKAGE_PLATFORM=${qlik_package_platform}
EXPOSE 3552/tcp
ADD --chown=${qlik_user}:${qlik_user} "${qlik_package}" "${qlik_package}"
COPY --chmod=740 --chown=${qlik_user}:${qlik_user} repagent-start.sh "./"
RUN \
sudo ${dnf_command} install -y cpio \
&& sudo ${dnf_command} install -y python3 \
&& sudo mkdir -p /opt/qlik \
&& sudo chown "${qlik_user}:${qlik_user}" /opt/qlik \
&& rpm2cpio "${qlik_package}" | cpio -idmv -D / \
&& cd /opt/qlik/gateway/movement/bin \
&& ./agentctl qcs set_config --tenant_url "${qlik_tenant}.us.qlikcloud.com" \
&& echo "# enter site specific settings here" > /opt/qlik/gateway/movement/bin/site_arep_login.sh \
&& iport=3550 rport=3552 verbose=true tenant_url="${tenant_url}" systemd_disabled=1 ./arep.sh install repagent \
&& cd /opt/qlik/gateway/movement/drivers/bin \
&& sudo ./install mysql -a \
&& sudo ./install postgres -a \
&& sudo ./install snowflake -a
CMD [ "/home/qlik/repagent-start.sh" ]