Skip to content

Commit

Permalink
add echo
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Sep 23, 2024
1 parent 0669ad5 commit 3bf77fa
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,31 @@ jobs:
set -e
apt-get update -qq
apt-get install -qqy curl gnupg2 python3 ca-certificates libgdiplus libicu66 --no-install-recommends -y
curl https://packages.microsoft.com/keys/microsoft.asc | tee /etc/apt/trusted.gpg.d/microsoft.asc
echo "RDMP:A"
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | tee /etc/apt/sources.list.d/msprod.list
apt-get update -y
ACCEPT_EULA=y apt-get install mssql-tools unixodbc-dev -y
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | tee /etc/apt/sources.list.d/mssql-release.list
# curl -sL https://packages.microsoft.com/keys/microsoft.asc | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add -
# curl -sL https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-preview.list >> /etc/apt/sources.list
# echo >> /etc/apt/sources.list
# curl -sL https://packages.microsoft.com/config/ubuntu/20.04/prod.list >> /etc/apt/sources.list
# echo >> /etc/apt/sources.list
# apt-get update -qq
# ACCEPT_EULA=y apt-get install -qqy mssql-tools mssql-server --no-install-recommends
echo "RDMP:B"
curl -sL https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-preview.list >> /etc/apt/sources.list
echo "RDMP:C"
echo >> /etc/apt/sources.list
echo "RDMP:D"
curl -sL https://packages.microsoft.com/config/ubuntu/20.04/prod.list >> /etc/apt/sources.list
echo "RDMP:E"
echo >> /etc/apt/sources.list
echo "RDMP:F"
apt-get update -qq
echo "RDMP:G"
ACCEPT_EULA=y apt-get install -qqy mssql-tools mssql-server --no-install-recommends
echo "RDMP:H"
curl -sL https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl3.py > /usr/bin/systemctl
echo "RDMP:I"
chmod +x /usr/bin/systemctl
echo "RDMP:J"
MSSQL_PID=Express ACCEPT_EULA=Y MSSQL_SA_PASSWORD='YourStrong#Passw0rd' /opt/mssql/bin/mssql-conf -n setup
echo "RDMP:K"
/opt/mssql-tools/bin/sqlcmd -l 180 -S localhost -U sa -P 'YourStrong#Passw0rd' -Q 'SELECT @@VERSION;'
echo "RDMP:L"
/rdmp/rdmp install -u sa -p 'YourStrong#Passw0rd' -e localhost RDMPDock_
echo "RDMP:M"
cat <<EOT > /rdmp/Databases.yaml
CatalogueConnectionString: Server=localhost;user=SA;password=YourStrong#Passw0rd;Database=RDMPDock_Catalogue;
DataExportConnectionString: Server=localhost;user=SA;password=YourStrong#Passw0rd;Database=RDMPDock_DataExport;
Expand Down

0 comments on commit 3bf77fa

Please sign in to comment.