From 8862e3624548a704fc31a0054c6b5728c837b129 Mon Sep 17 00:00:00 2001 From: John Rampono Date: Sun, 11 Sep 2022 22:11:02 +0800 Subject: [PATCH] downgrade to python 3.8 --- .github/workflows/dbttest.yml | 2 +- .../utilities/GitHubRunnerInstall.sh | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dbttest.yml b/.github/workflows/dbttest.yml index 3dc78629..e6909e37 100644 --- a/.github/workflows/dbttest.yml +++ b/.github/workflows/dbttest.yml @@ -56,7 +56,7 @@ jobs: working-directory: ./solution/Dbt run: | chmod +x dbt_init.sh - python3 -m venv .dbtenv + python3.8 -m venv .dbtenv source .dbtenv/bin/activate pip install dbt-core --quiet diff --git a/solution/DeploymentV2/utilities/GitHubRunnerInstall.sh b/solution/DeploymentV2/utilities/GitHubRunnerInstall.sh index 21e98d64..2072c6cb 100644 --- a/solution/DeploymentV2/utilities/GitHubRunnerInstall.sh +++ b/solution/DeploymentV2/utilities/GitHubRunnerInstall.sh @@ -29,6 +29,27 @@ sudo apt-get install figlet lolcat boxes sudo apt install python3-pip -y sudo apt install python3.10-venv -y +#MSQL ODBC 18 +if ! [[ "18.04 20.04 22.04" == *"$(lsb_release -rs)"* ]]; +then + echo "Ubuntu $(lsb_release -rs) is not currently supported."; + exit; +fi + +sudo su +curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - + +curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources.list.d/mssql-release.list + +exit +sudo apt-get update +sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 +# optional: for bcp and sqlcmd +sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18 +echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc +source ~/.bashrc +# optional: for unixODBC development headers +sudo apt-get install -y unixodbc-dev #Github Runner Software mkdir actions-runner && cd actions-runner# Download the latest runner package && \