Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Mark the app plugin as an experimental plugin. Only a cli with experi…
Browse files Browse the repository at this point in the history
…mental flag enabled will list docker app as a plugin.

Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
  • Loading branch information
silvin-lubecki committed May 24, 2019
1 parent f5f3873 commit fefc7ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get install -y -q --no-install-recommends \

WORKDIR /go/src/github.com/docker/cli

RUN git clone https://github.com/docker/cli . && git checkout 2432af701a7973ea582196b4b9488831156f3458
RUN git clone https://github.com/docker/cli . && git checkout 8aebc318062963ba861b65cc2a43425dfdd80fe7

RUN make binary-osx binary-windows binary && \
cp build/docker-linux-amd64 /usr/bin/docker
Expand Down
1 change: 1 addition & 0 deletions cmd/docker-app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ func main() {
SchemaVersion: "0.1.0",
Vendor: "Docker Inc.",
Version: internal.Version,
Experimental: true,
})
}
4 changes: 3 additions & 1 deletion e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ func (d dockerCliCommand) createTestCmd(ops ...ConfigFileOperator) (icmd.Cmd, fu
cleanup := func() {
os.RemoveAll(configDir)
}
env := append(os.Environ(), "DOCKER_CONFIG="+configDir)
env := append(os.Environ(),
"DOCKER_CONFIG="+configDir,
"DOCKER_EXPERIMENTAL_CLI=enabled") // TODO: Remove this once docker app plugin is no more experimental
return icmd.Cmd{Env: env}, cleanup
}

Expand Down

0 comments on commit fefc7ae

Please sign in to comment.