-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
1261b0a
commit a2116c7
Showing
3 changed files
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
ARG BASE | ||
FROM $BASE | ||
|
||
ARG OS_DISTRIBUTION | ||
ARG PROXY_CERT_PATH | ||
ARG HTTP_PROXY | ||
ARG HTTPS_PROXY | ||
ARG NO_PROXY | ||
|
||
COPY sc.crt /tmp/sc.crt | ||
RUN if [ "${OS_DISTRIBUTION}" = "ubuntu" ] && [ "${PROXY_CERT_PATH}" != "" ]; then \ | ||
cp /tmp/sc.crt /etc/ssl/certs && \ | ||
update-ca-certificates; \ | ||
fi | ||
RUN if [ "${OS_DISTRIBUTION}" = "opensuse-leap" ] && [ "${PROXY_CERT_PATH}" != "" ]; then \ | ||
cp /tmp/sc.crt /usr/share/pki/trust/anchors && \ | ||
update-ca-certificates; \ | ||
fi | ||
|
||
###########################Add any other image customizations here ####################### | ||
|
||
#### Examples #### | ||
|
||
### To install the nginx package for Ubuntu ### | ||
|
||
#RUN apt-get update && apt-get install nginx -y | ||
|
||
# RUN apt-get update && apt-get install nginx -y | ||
### or | ||
|
||
### To install the nginx package for opensuse ### | ||
|
||
#RUN zypper refresh && zypper install nginx -y | ||
# RUN zypper refresh && zypper install nginx -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters