Skip to content

Commit e3d4b48

Browse files
committed
Re-added soft link to /opt/knox
1 parent 573fb74 commit e3d4b48

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@ WORKDIR /opt
2020

2121
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
2222
# 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/
2423

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/
2827

2928
WORKDIR $GATEWAY_HOME
3029

@@ -35,12 +34,8 @@ COPY run-knox.sh /opt
3534
# Remember to change version 1.0.0 in here, too
3635
RUN /tmp/knox-pw.expect-script
3736

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-
4237
# Enable mounting an external config
43-
VOLUME /opt/knox-1.0.0/conf
38+
VOLUME /opt/knox/conf
4439

4540
# Expose the port
4641
EXPOSE 8443

knox-pw.expect-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env expect
22

3-
spawn /opt/knox-1.0.0/bin/knoxcli.sh create-master --force
3+
spawn /opt/knox/bin/knoxcli.sh create-master --force
44

55
expect "Enter master secret:"
66
send "admin\r"

master-secret

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)