File tree Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Expand file tree Collapse file tree 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,10 @@ WORKDIR /opt
20
20
21
21
RUN wget -q -O knox.zip http://ftp.fau.de/apache/knox/1.0.0/knox-1.0.0.zip && unzip knox.zip && rm knox.zip
22
22
# TODO Verify download (cf. https://knox.apache.org/books/knox-1-0-0/user-guide.html#Quick+Start)
23
- ENV GATEWAY_HOME /opt/knox-1.0.0/
24
23
25
- RUN ls -la /opt/
26
- RUN ls -la /opt/knox-1.0.0/
27
- RUN ls -la /opt/knox-1.0.0/bin /
24
+ RUN ln -s /opt/knox-$KNOX_VERSION /opt/knox
25
+
26
+ ENV GATEWAY_HOME /opt/knox/
28
27
29
28
WORKDIR $GATEWAY_HOME
30
29
@@ -35,12 +34,8 @@ COPY run-knox.sh /opt
35
34
# Remember to change version 1.0.0 in here, too
36
35
RUN /tmp/knox-pw.expect-script
37
36
38
- RUN ls -la /opt/
39
- RUN ls -la /opt/knox-1.0.0/
40
- RUN ls -la /opt/knox-1.0.0/bin/
41
-
42
37
# Enable mounting an external config
43
- VOLUME /opt/knox-1.0.0 /conf
38
+ VOLUME /opt/knox/conf
44
39
45
40
# Expose the port
46
41
EXPOSE 8443
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env expect
2
2
3
- spawn /opt/knox-1.0.0 /bin/knoxcli.sh create-master --force
3
+ spawn /opt/knox/bin/knoxcli.sh create-master --force
4
4
5
5
expect "Enter master secret:"
6
6
send "admin\r"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments