-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
executable file
·41 lines (35 loc) · 1.05 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
# Original source from https://github.com/lucassampsouza/ords_apex
FROM openjdk:8-jre-alpine
LABEL maintainer="Martin DSouza <martin@talkapex.com>"
ENV TZ="GMT" \
SQLCL_DIR="/usr/local/sqlcl" \
SQLCL_BIN_NAME="sqlcl" \
PATH="/usr/local/sqlcl/bin:${PATH}" \
SQLPATH="/oracle/" \
# #12 Fixes issue with 20.2
LANG="en_US.utf8"
COPY ["files/sqlcl-*.zip", "scripts/*", "/tmp/"]
# This is a dummy volume to reference user's custom scripts
# /sqlcl: For use of pwd
# /oracle: to reference login.sql and sqlcl aliases
VOLUME ["/sqlcl","/oracle"]
WORKDIR "/sqlcl"
RUN echo "" && \
chmod +x /tmp/install-sqlcl.sh && \
chmod +x /tmp/start-container.sh && \
apk update && \
apk upgrade && \
# bash is required by sqlcl
apk add bash && \
# for tput which is required by sqlcl
apk add ncurses && \
/tmp/install-sqlcl.sh && \
# debug
# apk add ncurses
echo ""
# #9: Used to be just sqlcl but caused an issue when $TNS_ADMIN was not set
# ENTRYPOINT ["sqlcl"]
ENTRYPOINT ["/tmp/start-container.sh"]
CMD ["/nolog"]
# debug
# ENTRYPOINT [ "/bin/ash" ]