Skip to content

Commit 378ac6f

Browse files
author
Keerthan Mala
committed
ref(Dockerfile):use the latest release of distribution to support IAM instance profiles on aws instances
1 parent 4b1f311 commit 378ac6f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const (
1313
registryConfig = "/etc/docker/registry/config.yml"
1414
minioHostEnvVar = "DEIS_MINIO_SERVICE_HOST"
1515
minioPortEnvVar = "DEIS_MINIO_SERVICE_PORT"
16+
command = "serve"
1617
)
1718

1819
func main() {
@@ -99,7 +100,7 @@ func main() {
99100

100101
}
101102

102-
cmd := exec.Command(registryBinary, registryConfig)
103+
cmd := exec.Command(registryBinary, command, registryConfig)
103104
cmd.Stdout = os.Stdout
104105
cmd.Stderr = os.Stderr
105106
if err := cmd.Run(); err != nil {

rootfs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update \
88
golang \
99
make \
1010
--no-install-recommends \
11-
&& export DOCKER_REGISTRY_TAG=minio \
11+
&& export DOCKER_REGISTRY_TAG=deis \
1212
DOCKER_REGISTRY_REPO=https://github.com/deis/distribution.git \
1313
DISTRIBUTION_DIR=/go/src/github.com/docker/distribution \
1414
&& export GOPATH=/go:$DISTRIBUTION_DIR/Godeps/_workspace \

0 commit comments

Comments
 (0)