Getting something working - using a different version and a pre-built image.
This commit is contained in:
parent
50d1972127
commit
fe36b76fe9
|
@ -6,9 +6,9 @@ services:
|
|||
db:
|
||||
restart: unless-stopped
|
||||
platform: linux/x86_64
|
||||
image: container-registry.oracle.com/database/express:18.4.0-xe
|
||||
image: gvenzl/oracle-free:23.2-slim-faststart
|
||||
environment:
|
||||
ORACLE_PWD: oracle
|
||||
ORACLE_PWD: Password1
|
||||
ports:
|
||||
- 1521:1521
|
||||
- 5500:5500
|
||||
|
@ -16,4 +16,4 @@ services:
|
|||
- oracle_data:/opt/oracle/oradata
|
||||
|
||||
volumes:
|
||||
oracle_data:
|
||||
oracle_data:
|
||||
|
|
|
@ -7,8 +7,10 @@ import knex from "knex"
|
|||
let ports: Promise<testContainerUtils.Port[]>
|
||||
|
||||
export async function getDatasource(): Promise<Datasource> {
|
||||
// password needs to conform to Oracle standards
|
||||
const password = "password"
|
||||
if (!ports) {
|
||||
let image = "oracle/database:19.3.0.0-ee-slim-faststart"
|
||||
let image = "gvenzl/oracle-free:23.2-slim-faststart"
|
||||
if (process.arch.startsWith("arm")) {
|
||||
image = "samhuang78/oracle-database:19.3.0-ee-slim-faststart"
|
||||
}
|
||||
|
@ -16,8 +18,10 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
ports = startContainer(
|
||||
new GenericContainer(image)
|
||||
.withExposedPorts(1521)
|
||||
.withEnvironment({ ORACLE_PASSWORD: "password" })
|
||||
.withWaitStrategy(Wait.forHealthCheck().withStartupTimeout(60000))
|
||||
.withEnvironment({
|
||||
ORACLE_PASSWORD: password,
|
||||
})
|
||||
.withWaitStrategy(Wait.forLogMessage("DATABASE IS READY TO USE!"))
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -28,7 +32,6 @@ export async function getDatasource(): Promise<Datasource> {
|
|||
|
||||
const host = "127.0.0.1"
|
||||
const user = "SYSTEM"
|
||||
const password = "password"
|
||||
|
||||
const datasource: Datasource = {
|
||||
type: "datasource_plus",
|
||||
|
|
Loading…
Reference in New Issue