forked from bonelli/tutum-docker-glassfish
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
31 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,31 +1,28 @@ | ||
FROM dockerfile/java:oracle-java7 | ||
FROM ubuntu-oracle-jdk7 | ||
MAINTAINER Koert Zeilstra <koert.zeilstra@zencode.nl> | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y wget unzip pwgen expect openssh-server supervisor && \ | ||
apt-get install -y wget unzip pwgen expect && \ | ||
wget http://download.java.net/glassfish/4.1/release/glassfish-4.1.zip && \ | ||
unzip glassfish-4.1.zip -d /opt && \ | ||
rm glassfish-4.1.zip | ||
|
||
ENV PATH /opt/glassfish4/bin:$PATH | ||
|
||
ADD start-glassfish.sh /start-glassfish.sh | ||
ADD initialize-glassfish.sh /initialize-glassfish.sh | ||
ADD configure-glassfish.sh /configure-glassfish.sh | ||
ADD change_admin_password.sh /change_admin_password.sh | ||
ADD change_admin_password_func.sh /change_admin_password_func.sh | ||
ADD enable_secure_admin.sh /enable_secure_admin.sh | ||
RUN chmod +x /*.sh | ||
|
||
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf | ||
RUN mkdir -p /var/run/sshd /var/log/supervisor | ||
|
||
RUN echo 'root:root' | chpasswd | ||
RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config | ||
RUN sed -i 's/PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config | ||
|
||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# 22 (SSH), 4848 (administration), 8080 (HTTP listener), 8181 (HTTPS listener), 9009 (JPDA debug port) | ||
# 4848 (administration), 8080 (HTTP listener), 8181 (HTTPS listener), 9009 (JPDA debug port) | ||
EXPOSE 22 4848 8080 8181 9009 | ||
|
||
CMD ["/usr/bin/supervisord"] | ||
CMD ["/start-glassfish.sh"] | ||
|
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 was deleted.
Oops, something went wrong.
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,3 @@ | ||
#!/bin/bash | ||
|
||
|
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,10 @@ | ||
#!/bin/bash | ||
|
||
domains_dir=/opt/glassfish4/glassfish/domains | ||
|
||
if [ ! "$(ls -A ${domains_dir})" ]; then | ||
echo "${domains_dir} is empty, create test domain" | ||
asadmin create-domain --nopassword test | ||
fi | ||
|
||
|
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