diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 745e0fd3..def19581 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -98,15 +98,6 @@ jobs: volumes: - ./njord_examples/oracle/init_scripts:/container-entrypoint-initdb.d - ./njord/db/test/oracle:/container-entrypoint-initdb.d - command: | - bash -c "\ - wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \ - unzip instantclient-basiclite-linuxx64.zip && \ - rm -f instantclient-basiclite-linuxx64.zip && \ - cd instantclient* && \ - rm -f *jdbc* *occi* *mysql* *jar uidrvci genezi adrci && \ - echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && \ - ldconfig" env: ORACLE_PASSWORD: njord_password APP_USER: test @@ -134,6 +125,19 @@ jobs: - name: Build Project run: cargo build --release --features "oracle" + - name: Install Oracle Instant Client + run: | + docker exec oracle sh -c "\ + wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \ + wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-sqlplus-linuxx64.zip && \ + unzip instantclient-basiclite-linuxx64.zip && \ + unzip instantclient-sqlplus-linuxx64.zip && \ + rm -f instantclient-basiclite-linuxx64.zip instantclient-sqlplus-linuxx64.zip && \ + cd instantclient* && \ + rm -f *jdbc* *occi* *mysql* *jar uidrvci genezi adrci && \ + echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf && \ + ldconfig" + - name: Wait for Oracle to be ready run: | echo "Waiting for Oracle to be ready..."