Skip to content

Commit

Permalink
Merge pull request #237 from loopbackio/setup
Browse files Browse the repository at this point in the history
chore: update docker image in setup.sh
  • Loading branch information
dhmlau authored Oct 17, 2021
2 parents 80d555c + f0fb4f3 commit 7ae5ea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ printf "\n${CYAN}Clean up complete.${PLAIN}\n"

## pull latest mssql image
printf "\n${RED}>> Pulling latest mssql image${PLAIN} ${GREEN}...${PLAIN}"
docker pull microsoft/mssql-server-linux:latest > /dev/null 2>&1
docker pull mcr.microsoft.com/mssql/server:2019-latest > /dev/null 2>&1
printf "\n${CYAN}Image successfully built.${PLAIN}\n"

## run the mssql container
printf "\n${RED}>> Starting the mssql container${PLAIN} ${GREEN}...${PLAIN}"
CONTAINER_STATUS=$(docker run --name $MSSQL_CONTAINER -e ACCEPT_EULA=Y -e SA_PASSWORD=$PASSWORD -p $PORT:1433 -d microsoft/mssql-server-linux:latest 2>&1)
CONTAINER_STATUS=$(docker run --name $MSSQL_CONTAINER -e ACCEPT_EULA=Y -e SA_PASSWORD=$PASSWORD -p $PORT:1433 -d mcr.microsoft.com/mssql/server:2019-latest 2>&1)
if [[ "$CONTAINER_STATUS" == *"Error"* ]]; then
printf "\n\n${CYAN}Status: ${PLAIN}${RED}Error starting container. Terminating setup.${PLAIN}\n\n"
exit 1
Expand Down

0 comments on commit 7ae5ea7

Please sign in to comment.