Skip to content

Commit

Permalink
For #3321: add example Dockerfile for MySQL
Browse files Browse the repository at this point in the history
  • Loading branch information
obruchez committed Jul 25, 2024
1 parent 429cd1e commit 317a5e9
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
28 changes: 28 additions & 0 deletions docker/Dockerfile.mysql
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM orbeon/orbeon-forms:2023.1.3-pe

RUN mkdir -p /tmp/orbeon
WORKDIR /tmp/orbeon

# JDBC driver for MySQL
RUN wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-9.0.0.tar.gz \
&& tar xvfz mysql-connector-j-9.0.0.tar.gz \
&& mv mysql-connector-j-9.0.0/mysql-connector-j-9.0.0.jar /usr/local/tomcat/lib/

## JDBC driver for Oracle
#RUN wget https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc11.jar
#RUN mv ojdbc11.jar /usr/local/tomcat/lib/

## JDBC driver for SQL Server
#RUN wget --trust-server-names https://go.microsoft.com/fwlink/?linkid=2276509
#RUN tar xvfz sqljdbc_12.6.3.0_enu.tar.gz
#RUN mv sqljdbc_12.6/enu/jars/mssql-jdbc-12.6.3.jre11.jar /usr/local/tomcat/lib/

# Remove SQLite database and JDBC driver (optional)
RUN rm -f /usr/local/tomcat/webapps/orbeon/WEB-INF/orbeon-demo.sqlite \
&& rm -f /usr/local/tomcat/webapps/orbeon/WEB-INF/lib/sqlite-jdbc-*.jar

# Remove PostgreSQL JDBC driver (optional)
RUN rm -f /usr/local/tomcat/lib/postgresql-*.jar

# Cleanup
RUN rm -rf /tmp/orbeon
14 changes: 0 additions & 14 deletions docker/Dockerfile.orbeon_forms
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,4 @@ RUN rm -rf /tmp/orbeon \
&& apt-get autoremove -y \
&& apt-get clean

## JDBC driver for MySQL
#RUN wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-j-9.0.0.tar.gz
#RUN tar xvfz mysql-connector-j-9.0.0.tar.gz
#RUN mv mysql-connector-j-9.0.0/mysql-connector-j-9.0.0.jar /usr/local/tomcat/lib/

## JDBC driver for Oracle
#RUN wget https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc11.jar
#RUN mv ojdbc11.jar /usr/local/tomcat/lib/

## JDBC driver for SQL Server
#RUN wget --trust-server-names https://go.microsoft.com/fwlink/?linkid=2276509
#RUN tar xvfz sqljdbc_12.6.3.0_enu.tar.gz
#RUN mv sqljdbc_12.6/enu/jars/mssql-jdbc-12.6.3.jre11.jar /usr/local/tomcat/lib/

EXPOSE 8080

0 comments on commit 317a5e9

Please sign in to comment.