Skip to content

Commit

Permalink
Prepare for v2019.CU4.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmoe committed Apr 29, 2020
1 parent 6139310 commit 2f083a4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM mcr.microsoft.com/mssql/server:2019-CTP2.1-ubuntu
FROM mcr.microsoft.com/mssql/server:2019-CU4-ubuntu-16.04

# Create a config directory
RUN mkdir -p /usr/config
WORKDIR /usr/config

# Bundle config source
COPY . /usr/config
# Bundle config source - https://go.microsoft.com/fwlink/?linkid=2099216 - 2019 now runs as non root `mssql` user
COPY --chown=mssql:root . /usr/config

# Grant permissions for to our scripts to be executable
# Grant our scripts permission to be executable
RUN chmod +x /usr/config/entrypoint.sh
RUN chmod +x /usr/config/configure-db.sh

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,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 '2019-CTP2.1-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 '2019-CU4-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:2019-CTP2.1-ubuntu
FROM mcr.microsoft.com/mssql/server:2019-CU4-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:v2019.CTP21.0
image: mcmoe/mssqldocker:v2019.CU4.0
environment:
ACCEPT_EULA: Y
SA_PASSWORD: 2astazeY
Expand Down

0 comments on commit 2f083a4

Please sign in to comment.