-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add/Change: Add Oracle WebLogic Server images. Minor markdown improve…
…ments. (#60)
- Loading branch information
Showing
7 changed files
with
250 additions
and
109 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
ARG BASEIMAGE=vulhub/weblogic | ||
ARG TAG=10.3.6.0-2017 | ||
|
||
FROM ${BASEIMAGE}:${TAG} | ||
ARG UPDATED=true | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN ( \ | ||
apt-get update \ | ||
|| \ | ||
# If update fails, the release is likely EOL, so use the old-releases repo instead | ||
if [ $? = 100 ]; then sed -i "s/security\|archive/old-releases/" /etc/apt/sources.list && apt-get update; fi \ | ||
) \ | ||
&& if [ "$UPDATED" = true ]; then apt-get upgrade -y; fi \ | ||
&& apt-get install -y openssh-server \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& useradd demo \ | ||
&& echo "demo:demo" | chpasswd \ | ||
&& mkdir -p /var/run/sshd/ | ||
|
||
COPY init.sh /bin/init.sh | ||
|
||
CMD [ "/bin/init.sh" ] | ||
|
||
EXPOSE 22 | ||
EXPOSE 7001 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
/usr/sbin/sshd -D & | ||
startWebLogic.sh | ||
wait |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG BASEIMAGE=vulhub/weblogic | ||
ARG TAG=12.2.1.3-2018 | ||
|
||
FROM ${BASEIMAGE}:${TAG} | ||
ARG UPDATED=true | ||
|
||
USER root | ||
|
||
RUN if [ "$UPDATED" = true ]; then yum upgrade -y; fi \ | ||
&& yum install -y passwd openssh-server \ | ||
&& yum clean all \ | ||
&& useradd demo \ | ||
&& echo "demo" | passwd --stdin demo \ | ||
&& ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" \ | ||
&& (ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N "" || true) \ | ||
&& (ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N "" || true) | ||
|
||
COPY init.sh /bin/init.sh | ||
|
||
CMD [ "/bin/init.sh" ] | ||
|
||
EXPOSE 22 | ||
EXPOSE 7001 |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
/usr/sbin/sshd -D & | ||
/u01/oracle/createAndStartEmptyDomain.sh | ||
wait |
Oops, something went wrong.