Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Oracle tests (Issue: #33) #41

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ services:
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Test@123
working_dir: /usr/src/app
command: sh -c ' chmod +x ./scripts/mssql-entrypoint.sh; ./scripts/mssql-entrypoint.sh & /opt/mssql/bin/sqlservr;'
working_dir: /tmp/test
command: sh -c './scripts/mssql-entrypoint.sh & /opt/mssql/bin/sqlservr'
ports:
- 1433:1433
volumes:
- mssql-volume:/var/opt/mssql/
- ./test:/usr/src/app
- ./test:/tmp/test

# Note: you need to be logged in to DockerHub, and accept the EULA for oracle/database-enterprise to work
# ... no clue how to get around that in GH Actions for tests ...
Expand All @@ -44,14 +44,19 @@ services:
# - 1521:32769
# - 5500:32768
# tty: true
# This is wat `knex` sues, but seems to crash with "ORA-01012: not logged on"
# oracledbxe:
# image: quillbuilduser/oracle-18-xe
# container_name: oracledbxe_container
# ports:
# - '21521:1521'
# environment:
# - ORACLE_ALLOW_REMOTE=true

oracle:
image: quillbuilduser/oracle-18-xe-micro-sq
ports:
- 5104:1521
environment:
- OPATCH_JRE_MEMORY_OPTIONS=-Xms128m -Xmx256m -XX:PermSize=16m -XX:MaxPermSize=32m -Xss1m
- ORACLE_ALLOW_REMOTE=true
shm_size: '1gb'
working_dir: /tmp/test
command: sh -c './scripts/oracle-entrypoint.sh'
volumes:
- ./test:/tmp/test

volumes:
mssql-volume:
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "tsc --build",
"prepare": "npm run build",
"lint": "prettier --check .",
"test": "npm run lint && ts-mocha test/**/*.spec.ts"
"test": "npm run lint && ts-mocha test/**/*.spec.ts --timeout 10000"
},
"repository": {
"type": "git",
Expand Down
Loading