Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/javiertuya/samples-db-containers
Sample of using containers for test databases (Postgres, Oracle and SQL Server)
https://github.com/javiertuya/samples-db-containers
container database docker oracle postgresql sqlserver testing
Last synced: about 4 hours ago
JSON representation
Sample of using containers for test databases (Postgres, Oracle and SQL Server)
- Host: GitHub
- URL: https://github.com/javiertuya/samples-db-containers
- Owner: javiertuya
- License: mit
- Created: 2023-06-09T12:10:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-03T06:12:36.000Z (4 months ago)
- Last Synced: 2024-08-03T07:26:38.154Z (4 months ago)
- Topics: container, database, docker, oracle, postgresql, sqlserver, testing
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# samples-db-containers
Sample of configuring GitHub Containers for test databases:
- Always on containers for Postgres, Oracle y SQL Server
- Init script to create each test database and user
- Environment variables to store credentials, with fallback to a properties file
- Test database access from Java## Configure your local development environment
- Define the credentials to access each database:
- either set the environment variables `TEST_POSTGRES_PWD`, `TEST_ORACLE_PWD` and `TEST_SQLSERVER_PWD`
- or set their assignments in a file `setup/environment.properties` as pairs `name=value`
(this file is included in .gitignore to avoid storing credentials in the remote repo)
- Start containers by running the script at `setup/container-setup.sh`
- Run the tests with `mvn test`