-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated to v0.8.2 * Fix lints * Remove flate2 dependency * Fix CI database setup due to exasol Docker image changes * Fix self-signed certificate generation due to dependencies version update * Increase timeouts in CI * Make use of rustls CryptoProvider in tests * Fix Windows cargo check * Update CHANGELOG
- Loading branch information
Showing
43 changed files
with
456 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,38 +33,45 @@ runs: | |
run: docker image load --input ~/ci/cache/docker/exasol-${{ inputs.exasol-version }}.tar | ||
shell: bash | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Set up Docker network | ||
run: docker network create --driver=bridge --subnet=10.10.10.0/24 sqlx | ||
shell: bash | ||
|
||
- name: Install dependencies | ||
- name: Initialize Exasol cluster | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipenv | ||
docker run -v $HOME/sqlx1:/exa --rm --privileged -i exasol/docker-db:${{ inputs.exasol-version }} init-sc --template --num-nodes ${{ inputs.num-nodes }} | ||
docker run --rm -v $HOME/sqlx1:/exa exasol/docker-db:${{ inputs.exasol-version }} exaconf modify-volume -n DataVolume1 -s 4GiB | ||
sudo truncate -s 6G $HOME/sqlx1/data/storage/dev.1 | ||
for (( i=2; i<=${{ inputs.num-nodes }}; i++ )); do | ||
sudo cp -R $HOME/sqlx1 $HOME/sqlx$i | ||
done | ||
shell: bash | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
repository: Exasol/docker-db | ||
ref: ${{ inputs.exasol-version }} | ||
- name: Start Exasol cluster | ||
run: | | ||
for (( i=1; i<=${{ inputs.num-nodes }}; i++ )); do | ||
docker run --name sqlx$i --detach --network=sqlx --ip 10.10.10.1$i --privileged --stop-timeout 120 -v $HOME/sqlx$i:/exa exasol/docker-db:${{ inputs.exasol-version }} init-sc --node-id 1$i | ||
done | ||
shell: bash | ||
|
||
- name: Set up Exasol Cluster | ||
- name: Wait until Exasol cluster is live | ||
run: | | ||
pipenv install -r exadt_requirements.txt | ||
pipenv run ./exadt create-cluster --root ~/sqlx --create-root sqlx | ||
pipenv run ./exadt init-cluster --image exasol/docker-db:${{ inputs.exasol-version }} --license ./license/license.xml --num-nodes ${{ inputs.num-nodes }} --auto-storage sqlx | ||
pipenv run ./exadt start-cluster sqlx | ||
set +e | ||
RC=1 | ||
while [[ $RC -ne 0 ]]; do | ||
docker exec sqlx1 /bin/bash -c '`find /usr/opt -name exaplus | head -1` -c localhost:8563 -u sys -p exasol -sql "SELECT * FROM DUAL;"' &>/dev/null | ||
RC=$? | ||
sleep 5 | ||
done | ||
shell: bash | ||
|
||
# The exadt tool always creates the Exasol cluster with this subnet | ||
# The Exasol cluster is created with this subnet by default | ||
- name: Create connection strings | ||
id: connection-strings | ||
run: | | ||
DATABASE_URL="exa://sys:[email protected]$NUM_NODES:8563" | ||
echo "no-tls-url=$DATABASE_URL?ssl-mode=disabled" >> $GITHUB_OUTPUT | ||
echo "tls-url=$DATABASE_URL?ssl-mode=required" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
# Checkout the main repository again | ||
- uses: actions/checkout@v3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.