|
1 |
| -From centos:centos7 |
2 |
| - |
3 |
| -# |
4 |
| -# Set the version, home directory. |
5 |
| -# |
6 |
| -ENV DTLE_VERSION=9.9.9.9 \ |
7 |
| - DTLE_HOME=/dtle |
8 |
| - |
9 |
| -# |
10 |
| -# Create a user and home directory for Dtle |
11 |
| -# |
12 |
| -USER root |
13 |
| -RUN groupadd -r dtle -g 1001 && useradd -u 1001 -r -g dtle -m -d $DTLE_HOME -s /sbin/nologin -c "Dtle user" dtle && \ |
14 |
| - chmod 755 $DTLE_HOME |
15 |
| - |
16 |
| -# |
17 |
| -# Download Dtle and Install |
18 |
| -# |
19 |
| -RUN curl -fSL -O -u ftp:ftp ftp://10.186.18.20/actiontech-dtle/qa/$DTLE_VERSION/dtle-$DTLE_VERSION-qa.x86_64.rpm && \ |
20 |
| - rpm -ivh dtle-$DTLE_VERSION-qa.x86_64.rpm && \ |
21 |
| - rm dtle-$DTLE_VERSION-qa.x86_64.rpm |
22 |
| - |
23 |
| -# |
24 |
| -# Change ownership and switch use\ |
25 |
| -# |
26 |
| -RUN chown -R dtle $DTLE_HOME && \ |
27 |
| - chgrp -R dtle $DTLE_HOME |
28 |
| -USER dtle |
29 |
| - |
30 |
| -# Set the working directory to the Dtle home directory |
31 |
| -WORKDIR $DTLE_HOME |
32 |
| - |
33 |
| -# |
34 |
| -# Expose the ports and set up volumes for the data and logs directories |
35 |
| -# |
36 |
| -EXPOSE 8190 |
37 |
| -VOLUME ["/dtle"] |
38 |
| - |
39 |
| -COPY ./dtle.conf /etc/dtle/ |
40 |
| - |
41 |
| -CMD ["/usr/bin/dtle", "server", "--config", "/etc/dtle/dtle.conf"] |
| 1 | +From centos:centos7 |
| 2 | + |
| 3 | +# |
| 4 | +# Set the version, home directory. |
| 5 | +# |
| 6 | +ENV DTLE_VERSION=2.19.03.0 \ |
| 7 | + DTLE_HOME=/dtle |
| 8 | + |
| 9 | +# |
| 10 | +# Create a user and home directory for Dtle |
| 11 | +# |
| 12 | +USER root |
| 13 | +RUN groupadd -r dtle -g 1001 && useradd -u 1001 -r -g dtle -m -d $DTLE_HOME -s /sbin/nologin -c "Dtle user" dtle && \ |
| 14 | + chmod 755 $DTLE_HOME |
| 15 | + |
| 16 | +# |
| 17 | +# Download Dtle and Install |
| 18 | +# |
| 19 | +RUN curl -fSL -O -u ftp:ftp ftp://10.186.18.20/actiontech-dtle/qa/$DTLE_VERSION/dtle-$DTLE_VERSION-qa.x86_64.rpm && \ |
| 20 | + rpm -ivh dtle-$DTLE_VERSION-qa.x86_64.rpm && \ |
| 21 | + rm dtle-$DTLE_VERSION-qa.x86_64.rpm |
| 22 | + |
| 23 | +# |
| 24 | +# Change ownership and switch use\ |
| 25 | +# |
| 26 | +RUN chown -R dtle $DTLE_HOME && \ |
| 27 | + chgrp -R dtle $DTLE_HOME |
| 28 | +USER dtle |
| 29 | + |
| 30 | +# Set the working directory to the Dtle home directory |
| 31 | +WORKDIR $DTLE_HOME |
| 32 | + |
| 33 | +# |
| 34 | +# Expose the ports and set up volumes for the data and logs directories |
| 35 | +# |
| 36 | +EXPOSE 8190 |
| 37 | +VOLUME ["/dtle"] |
| 38 | + |
| 39 | +COPY ./dtle.conf /etc/dtle/ |
| 40 | + |
| 41 | +CMD ["/usr/bin/dtle", "server", "--config", "/etc/dtle/dtle.conf"] |
0 commit comments