Skip to content

Commit

Permalink
Prepare for V2017.CU20.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmoe committed Apr 29, 2020
1 parent 6a07933 commit 852b145
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
FROM mcr.microsoft.com/mssql/server:2017-CU20-ubuntu-16.04

# Create a config directory
RUN mkdir -p /usr/config
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ If you just want to use the image, you only need the `docker-compose.yml`.

Pulling the image
```
docker-compose pull
docker-compose pull mcmoe/mssqldocker
```

/!\ Look at the available tags on DockerHub if you would like to use a specific version

## Building the image for the first time
If you want to modify the files in the image, then you'll have to build locally.

Expand Down Expand Up @@ -71,13 +73,13 @@ You can then simple call `docker-compose up` instead of the long `docker run...`
## Dockerfile
The Dockerfile defines how the image will be built. Each of the commands in the Dockerfile is described below.

The Dockerfile defines the base image (the first layer) using the official Microsoft SQL Server Linux image that can be found on [Docker Hub](http://hub.docker.com/r/microsoft/mssql-server). The Dockerfile will pull the image with the '2017-CU12-ubuntu' tag. This image requires two environment variables to be passed to it at run time - `ACCEPT_EULA` and `SA_PASSWORD`. The Microsoft SQL Server Linux image is in turn based on the official Ubuntu Linux image `Ubuntu:16.04`.
The Dockerfile defines the base image (the first layer) using the official Microsoft SQL Server Linux image that can be found on [Docker Hub](http://hub.docker.com/r/microsoft/mssql-server). The Dockerfile will pull the image with the '2017-CU20-ubuntu-16.04' tag. This image requires two environment variables to be passed to it at run time - `ACCEPT_EULA` and `SA_PASSWORD`. The Microsoft SQL Server Linux image is in turn based on the official Ubuntu Linux image `Ubuntu:16.04`.

In addition, we will need to pass the following env variables `$MSSQL_DB` `$MSSQL_USER` `$MSSQL_PASSWORD`.
They will be used to configure the server with a new database and a user with admin permissions.

```
FROM mcr.microsoft.com/mssql/server:2017-CU12-ubuntu
FROM mcr.microsoft.com/mssql/server:2017-CU20-ubuntu-16.04
```

This RUN command creates a new directory _inside_ the container at /usr/config and then sets the working directory to that directory.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: '3.2'
services:
db:
build: .
image: mcmoe/mssqldocker:v2017.CU12.1
image: mcmoe/mssqldocker:v2017.CU20.0
environment:
ACCEPT_EULA: Y
SA_PASSWORD: 2astazeY
Expand Down

0 comments on commit 852b145

Please sign in to comment.