Skip to content
Draft
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
2 changes: 1 addition & 1 deletion jobs/colin-extract-refresh/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN apt-get update; \

ENV PATH="${DBSCHEMA_HOME}:${PATH}"

COPY src/ ./colin-exrtact-refresh/src/
COPY src/ ./colin-extract-refresh/src/
RUN mkdir -p /opt/app-root/colin-extract-refresh/src/subset/generated && \
chmod -R 777 /opt/app-root/colin-extract-refresh/src/subset/generated /opt/app-root/.DbSchema

Expand Down
1 change: 1 addition & 0 deletions jobs/colin-extract-refresh/src/corp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BC123456
9 changes: 8 additions & 1 deletion jobs/colin-extract-refresh/src/dbschemacli_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ def write_dbschema_init(cfg: _Config) -> Path:
host = cfg.DB_HOST_COLIN_MIGR
port = int(cfg.DB_PORT_COLIN_MIGR)
name = cfg.DB_NAME_COLIN_MIGR

ora_user = cfg.DB_USER_COLIN_ORACLE
ora_password = cfg.DB_PASSWORD_COLIN_ORACLE
ora_host = cfg.DB_HOST_COLIN_ORACLE
ora_port = int(cfg.DB_PORT_COLIN_ORACLE)
ora_name = cfg.DB_NAME_COLIN_ORACLE

lines = [
'register driver PostgreSql org.postgresql.Driver jdbc:postgresql://<host>:<port>/<db>?reWriteBatchedInserts=true "port=5432"',
'register driver Oracle oracle.jdbc.OracleDriver jdbc:oracle:thin:@<host>:<port>:<db> "port=1521"',
f'connection my_proxy_test -d PostgreSql -u {user} -p {password} -h {host} -P {port} -D {name}',

f'connection ctst -d Oracle -u {ora_user} -p {ora_password} -h {ora_host} -P {ora_port} -D {ora_name}',
]

init_path.write_text('\n'.join(lines) + '\n')
Expand Down