Skip to content
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

symlinks for additional jars needed by postgresql jdbc driver #50

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cadc-tomcat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ RUN groupadd --gid 8675309 tomcat \
# install open source astronomy libraries needed by opencadc JNI libs
# install minimal set of diagnostics tools: mainly for network connectivity
RUN dnf install -y java-11-openjdk-headless.x86_64 tomcat.noarch ca-certificates sudo \
&& dnf install -y postgresql-jdbc wcslib erfa curl openssl nmap-ncat \
&& dnf install -y postgresql-jdbc \
&& dnf install -y wcslib erfa curl openssl nmap-ncat \
&& rpm -e --nodeps java-17-openjdk-headless.x86_64 \
&& dnf clean all

# link jdbc driver(s) into tomcat lib
RUN ln -s /usr/share/java/postgresql-jdbc/postgresql.jar /usr/share/tomcat/lib/
RUN cd /usr/share/tomcat/lib/ \
&& for jar in $(find /usr/share/java/postgresql-jdbc /usr/share/java/ongres-s* -type f); do ln -s $jar .; done

# system settings and permissions
COPY src/nofiles.conf /etc/security/limits.d/
Expand Down