File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
OracleSOASuite/dockerfiles Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ RUN mkdir /u01/patches ${OPATCH_PATCH_DIR} && \
35
35
COPY patches/* /u01/patches/
36
36
COPY opatch_patch/* ${OPATCH_PATCH_DIR}/
37
37
COPY container-scripts/* /u01/oracle/container-scripts/
38
- # hadolint ignore=DL3003
39
- RUN cd /u01 && chmod 755 *.jar && \
38
+ RUN cd /u01 && chmod 755 ./*.jar && \
40
39
chmod +xr /u01/oracle/container-scripts/*.*
41
40
42
41
#
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ checksumPackages() {
58
58
echo " INFO: Checking if required packages are valid..."
59
59
60
60
md5sum --quiet -c install/soasuite.download 2> /dev/null
61
- if [ " $? " -ne 0 ]; then
61
+ rc=$?
62
+ if [ " $rc " -ne 0 ]; then
62
63
cat << EOF
63
64
64
65
ERROR: MD5 for required packages to build the ${VERSION}
@@ -67,7 +68,7 @@ ERROR: MD5 for required packages to build the ${VERSION}
67
68
EOF
68
69
cat install/soasuite.download
69
70
echo " "
70
- exit $?
71
+ exit $rc
71
72
fi
72
73
}
73
74
@@ -133,15 +134,15 @@ checkFilePackages
133
134
checksumPackages
134
135
135
136
# Proxy settings - Set your own proxy environment
136
- if [ " ${http_proxy} " != " " ]; then
137
+ if [ " ${http_proxy:- } " != " " ]; then
137
138
PROXY_SETTINGS=" --build-arg http_proxy=${http_proxy} "
138
139
fi
139
140
140
- if [ " ${https_proxy} " != " " ]; then
141
+ if [ " ${https_proxy:- } " != " " ]; then
141
142
PROXY_SETTINGS=" $PROXY_SETTINGS --build-arg https_proxy=${https_proxy} "
142
143
fi
143
144
144
- if [ " ${no_proxy} " != " " ]; then
145
+ if [ " ${no_proxy:- } " != " " ]; then
145
146
PROXY_SETTINGS=" $PROXY_SETTINGS --build-arg no_proxy=${no_proxy} "
146
147
fi
147
148
You can’t perform that action at this time.
0 commit comments