Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xenit-eu/docker-jdbc-drivers
https://github.com/xenit-eu/docker-jdbc-drivers
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/xenit-eu/docker-jdbc-drivers
- Owner: xenit-eu
- License: lgpl-3.0
- Created: 2019-07-30T08:24:53.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:22:41.000Z (about 1 year ago)
- Last Synced: 2024-11-07T10:32:29.523Z (about 2 months ago)
- Language: Dockerfile
- Size: 135 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# docker-jdbc-drivers
[![Build Status](https://jenkins-2.xenit.eu/buildStatus/icon?job=Xenit+Github%2Fdocker-jdbc-drivers%2Fmaster)](https://jenkins-2.xenit.eu/job/Xenit%20Github/job/docker-jdbc-drivers/job/master/)
[![License: LGPL v3](https://img.shields.io/badge/License-LGPL%20v3-blue.svg)](https://www.gnu.org/licenses/lgpl-3.0)Docker image with JDBC drivers, so you can switch to an alternative JDBC driver at runtime.
## Building and resulting images
When the master branch is built on Jenkins,
the resulting images are published to Docker Hub under the following image names:
* [xenit/jdbc-mysql](https://hub.docker.com/r/xenit/jdbc-mysql)
* [xenit/jdbc-mariadb](https://hub.docker.com/r/xenit/jdbc-mariadb)Building locally produces images with the same name on your system but does not push them.
You can do this with the `./gradlew buildDockerImage` task.## Usage
You can use these images in docker-compose setups like the example below.
It shares a `jdbc` volume between the `alfresco` and the `jdbc-driver` service.
This volume is referred to in the custom environment variables of the `alfresco` service.```
version: '2.1'services:
alfresco:
volumes:
- jdbc:/jdbc/
environment:
- DB_URL=jdbc:mysql://database/alfresco?useUnicode=yes\&characterEncoding=UTF-8
- JAVA_OPTS_JDBC_DRIVER=-Dtomcat.common.loader.append=/jdbc/*.jardatabase:
image: mariadb:10.1
volumes:
- mariadb:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_USER=alfresco
- MYSQL_PASSWORD=admin
- MYSQL_DATABASE=alfrescojdbc-driver:
image: xenit/jdbc-mariadb:2.2.5
volumes:
- jdbc:/jdbc/volumes:
mariadb:
jdbc:
```