-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For #3321: add example Dockerfile for MySQL
- Loading branch information
Showing
2 changed files
with
28 additions
and
14 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 |
---|---|---|
@@ -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 |
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