-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerfile-rpm
44 lines (33 loc) · 1.34 KB
/
dockerfile-rpm
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
# syntax=docker/dockerfile:1
ARG base_image=edwardost/ubi8
ARG base_tag=8.9-1160
ARG qlik_tenant=obd
ARG qlik_user=qlik
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 python3 \
&& sudo QLIK_CUSTOMER_AGREEMENT_ACCEPT=yes QLIK_DMG_NO_SYSTEMD=yes rpm -ivh "${qlik_package}" \
&& cd /opt/qlik/gateway/movement/bin \
&& sudo ./agentctl qcs set_config --tenant_url "${qlik_tenant}.us.qlikcloud.com" \
&& 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" ]