зеркало из https://github.com/Azure/acs-engine.git
914172d3cd
This commit reworks Dockerfile.linux to make it more in-line with Docker and Linux best practices. * Set entrypoint to acs-engine * Set default parameters to show acs-engine help * Set default ACSENGINE_VERSION to latest release * Remove unnecessary curl install * Remove unnecessary bash install * Use /opt/ as intall dir rather than root home * Newer version of alpine * Update README to use latest release version |
||
---|---|---|
.. | ||
Dockerfile.linux | ||
README.Dockerfile.md |
README.Dockerfile.md
Build Docker image
Bash
$ VERSION=0.16.0
$ docker build --no-cache --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg ACSENGINE_VERSION="$VERSION" -t microsoft/acs-engine:$VERSION --file ./Dockerfile.linux .
PowerShell
PS> $VERSION="0.16.0"
PS> docker build --no-cache --build-arg BUILD_DATE=$(Get-Date((Get-Date).ToUniversalTime()) -UFormat "%Y-%m-%dT%H:%M:%SZ") --build-arg ACSENGINE_VERSION="$VERSION" -t microsoft/acs-engine:$VERSION --file .\Dockerfile.linux .
Inspect Docker image metadata
Bash
$ docker image inspect microsoft/acs-engine:0.16.0 --format "{{json .Config.Labels}}" | jq
{
"maintainer": "Microsoft",
"org.label-schema.build-date": "2017-10-25T04:35:06Z",
"org.label-schema.description": "The Azure Container Service Engine (acs-engine) generates ARM (Azure Resource Manager) templates for Docker enabled clusters on Microsoft Azure with your choice of DCOS, Kubernetes, or Swarm orchestrators.",
"org.label-schema.docker.cmd": "docker run -v ${PWD}:/acs-engine/workspace -it --rm microsoft/acs-engine:0.16.0",
"org.label-schema.license": "MIT",
"org.label-schema.name": "Azure Container Service Engine (acs-engine)",
"org.label-schema.schema-version": "1.0",
"org.label-schema.url": "https://github.com/Azure/acs-engine",
"org.label-schema.usage": "https://github.com/Azure/acs-engine/blob/master/docs/acsengine.md",
"org.label-schema.vcs-url": "https://github.com/Azure/acs-engine.git",
"org.label-schema.vendor": "Microsoft",
"org.label-schema.version": "0.16.0"
}
PowerShell
PS> docker image inspect microsoft/acs-engine:0.16.0 --format "{{json .Config.Labels}}" | ConvertFrom-Json | ConvertTo-Json
{
"maintainer": "Microsoft",
"org.label-schema.build-date": "2017-10-25T04:35:06Z",
"org.label-schema.description": "The Azure Container Service Engine (acs-engine) generates ARM (Azure Resource Manager) templates for Docker enabled clusters on Microsoft Azure with your choice of DCOS, Kubernetes, or Swarm orchestrators.",
"org.label-schema.docker.cmd": "docker run -v ${PWD}:/acs-engine/workspace -it --rm microsoft/acs-engine:0.16.0",
"org.label-schema.license": "MIT",
"org.label-schema.name": "Azure Container Service Engine (acs-engine)",
"org.label-schema.schema-version": "1.0",
"org.label-schema.url": "https://github.com/Azure/acs-engine",
"org.label-schema.usage": "https://github.com/Azure/acs-engine/blob/master/docs/acsengine.md",
"org.label-schema.vcs-url": "https://github.com/Azure/acs-engine.git",
"org.label-schema.vendor": "Microsoft",
"org.label-schema.version": "0.16.0"
}
Run Docker image
$ docker run -v ${PWD}:/acs-engine/workspace -it --rm microsoft/acs-engine:0.16.0