ADD MSSQL_PID
DEL  scale
ADD README.md
This commit is contained in:
JJmomark 2018-04-11 18:05:33 +08:00
parent a4991d3ded
commit 7741196235
4 changed files with 56 additions and 14 deletions

View File

@ -0,0 +1,38 @@
# Microsoft Sqlserver 2017
Before you start, please read this first.
### ACCEPT_EULA
the container of this package will start with 'ACCEPT_EULA=Y' environment variable.
Which means you accepted the [EULA](https://go.microsoft.com/fwlink/?linkid=857698) from Microsoft.
By passing the value "Y" to the environment variable "ACCEPT_EULA", you are expressing that you have a valid and existing license for the edition and version of SQL Server that you intend to use. You also agree that your use of SQL Server software running in a Docker container image will be governed by the terms of your SQL Server license.
### MSSQL_PID
MSSQL_PID is the Product ID (PID) or Edition that the container will run with. Acceptable values:
* Developer : This will run the container using the Developer Edition (this is the default if no MSSQL_PID environment variable is supplied)
* Express : This will run the container using the Express Edition
* Standard : This will run the container using the Standard Edition
* Enterprise : This will run the container using the Enterprise Edition
* EnterpriseCore : This will run the container using the Enterprise Edition Core
For a complete list of environment variables that can be used, refer to the documentation here
[https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker](https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker).
### SA_PASSWORD
A strong system administrator (SA) password: At least 8 characters including uppercase, lowercase letters, base-10 digits and/or non-alphanumeric symbols.
### For more information
please check out here:
[https://hub.docker.com/r/microsoft/mssql-server-linux/](https://hub.docker.com/r/microsoft/mssql-server-linux/)
[https://github.com/Microsoft/mssql-docker](https://github.com/Microsoft/mssql-docker)

View File

@ -5,16 +5,14 @@ services:
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: ${mssql_password}
MSSQL_PID: ${mssql_pid}
stdin_open: true
volumes:
- mssqlvolume:/var/opt/mssql
tty: true
ports:
- ${mssql_port}:1433/tcp
labels:
io.rancher.container.pull_image: always
volumes:
mssqlvolume:
driver: ${VOLUME_DRIVER}
per_container: true

View File

@ -1,26 +1,34 @@
version: '2'
.catalog:
name: MSSQLServer
version: 2017-CU5-rancher1
description: sqlserver
maintainer: "JagJag <kyukou@gmail.com>"
maintainer: "Jiang Jiang <kyukou@gmail.com>"
questions:
- variable: "mssqlscale"
type: "int"
- variable: "mssql_pid"
label: "Mssql edition:"
description: |
Choose mssql edition to be run.
default: Developer
required: true
label: "# of mssql instance "
description: "# of mssql instance"
default: 3
type: enum
options:
- Developer
- Express
- Standard
- Enterprise
- EnterpriseCore
- variable: "mssql_password"
type: "string"
required: true
label: "SA Password"
description: "require Strong Password"
description: " At least 8 characters including uppercase, lowercase letters, base-10 digits and/or non-alphanumeric symbols."
default: <YourStrong!Passw0rd>
- variable: "mssql_port"
type: "string"
required: true
label: "mssql_port"
description: "connect port"
description: "connect to mssql by this port"
default: 1433
- variable: "VOLUME_DRIVER"
description: "The VOLUME driver to associate with this server"
@ -34,8 +42,6 @@
- rancher-efs
- rancher-ebs
version: '2'
services:
mssql-linux:
scale: ${mssqlscale}
start_on_create: true

View File

@ -1,4 +1,4 @@
name: Microsoft SQLSERVER
name: Microsoft Sqlserver
description: |
Microsoft sqlserver 2017 docker edition
version: 2017-CU5-rancher1