-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Port OpenBSD LDAP to linux #23
Changes from 1 commit
4283a10
f80f926
dc19b93
bbe90ad
98763b7
300f319
68ed991
8ab2e49
51318db
c5fa8ff
2ae6e72
f9681cc
b4db0b2
0d47e4a
ca5e293
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/usr/bin/env bash | ||
cd /data/kong && sudo rm -rf * | ||
cd /data/tomcat && sudo rm -rf * | ||
cd /data/rabbitmq && sudo rm -rf * | ||
cd /data/ldapd && sudo rm -rf * | ||
cd /data/logs/kong && sudo rm -rf * | ||
cd /data/logs/rabbitmq && sudo rm -rf * | ||
cd /data/logs/tomcat && sudo rm -rf * |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,6 @@ | ||
FROM ansible/ubuntu-ssh | ||
FROM harishanand95/ansible-tomcat | ||
MAINTAINER Harish Anand "https://github.com/harishanand95" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
RUN apt-get install locales | ||
ENV TOMCAT_VERSION 8.0.46 | ||
|
||
# Set locales | ||
RUN locale-gen en_GB.UTF-8 | ||
ENV LANG en_GB.UTF-8 | ||
ENV LC_CTYPE en_GB.UTF-8 | ||
|
||
# Fix sh | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
# Install dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y git build-essential curl wget software-properties-common | ||
|
||
# Install JDK 8 | ||
RUN \ | ||
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | ||
add-apt-repository -y ppa:webupd8team/java && \ | ||
apt-get update && \ | ||
apt-get install -y oracle-java8-installer wget unzip tar && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
rm -rf /var/cache/oracle-jdk8-installer | ||
|
||
# Define commonly used JAVA_HOME variable | ||
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle | ||
|
||
# Get Tomcat | ||
RUN wget --quiet --no-cookies http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.46/bin/apache-tomcat-8.0.46.tar.gz -O /tmp/tomcat.tgz && \ | ||
tar xzvf /tmp/tomcat.tgz -C /opt && \ | ||
mv /opt/apache-tomcat-8.0.46 /opt/tomcat | ||
|
||
ENV CATALINA_HOME /opt/tomcat | ||
ENV PATH $PATH:$CATALINA_HOME/bin | ||
|
||
EXPOSE 8080 | ||
|
||
VOLUME "/opt/tomcat/webapps" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ MAINTAINER Harish Anand "https://github.com/harishanand95" | |
RUN echo "TrustedUserCAKeys /etc/ssh/ca-user-certificate-key.pub" >> /etc/ssh/sshd_config | ||
|
||
EXPOSE 22 | ||
EXPOSE 8389 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PORT 8389 is exposed for using apache directory studio. @pct960 IPtables in the server should block based on requirements. |
||
ARG CACHEBUST=1 | ||
COPY config/certificate_authority/keys/ca-user-certificate-key.pub /etc/ssh/ca-user-certificate-key.pub | ||
CMD ["/usr/sbin/sshd", "-D"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8389 port will be used by LDAP instead of 389.