Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
  • Loading branch information
tsandall committed Aug 7, 2018
1 parent 4c9ff5e commit 9a58d7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: all build

VERSION := 0.2.2
VERSION := 0.3
OPA_VERSION := 0.8.0
GO_VERSION := 1.10
REPO := openpolicyagent/opa-docker-authz
Expand All @@ -21,7 +21,7 @@ image: build
@docker image build \
--tag $(REPO):$(VERSION) \
.

plugin: build
@docker container run --rm \
-e DOCKER_VERSION=$(DOCKER_VERSION) \
Expand Down
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,12 @@ The following steps detail how to install the managed plugin.
Download the `opa-docker-authz` plugin from the Docker Hub (depending on how your Docker environment is configured, you may need to execute the following commands using the `sudo` utility), and specify the location of the policy file, using the `opa-args` key, and an appropriate value:

```
$ docker plugin install --alias opa-docker-authz openpolicyagent/opa-docker-authz-v2:0.2.2 opa-args="-policy-file /opa/policies/authz.rego"
Plugin "openpolicyagent/opa-docker-authz-v2:0.2.2" is requesting the following privileges:
$ docker plugin install --alias opa-docker-authz openpolicyagent/opa-docker-authz-v2:0.3 opa-args="-policy-file /opa/policies/authz.rego"
Plugin "openpolicyagent/opa-docker-authz-v2:<VERSION>" is requesting the following privileges:
- mount: [/etc/docker]
Do you grant the above permissions? [y/N] y
0.2.2: Pulling from openpolicyagent/opa-docker-authz-v2
76fd01afa06c: Download complete
Digest: sha256:268b679ce15f299ef10a9894d2db5fb1b56a8de9b86348454de6feb27b52c907
Status: Downloaded newer image for openpolicyagent/opa-docker-authz-v2:0.2.2
Installed plugin openpolicyagent/opa-docker-authz-v2:0.2.2
...
Installed plugin openpolicyagent/opa-docker-authz-v2:<VERSION>
```

Check the plugin is installed and enabled:
Expand Down Expand Up @@ -74,7 +71,7 @@ If an alternate host location is preferred for the bind mount, then it's possibl

```
$ docker plugin install --alias opa-docker-authz \
openpolicyagent-v2/opa-docker-authz:0.2.2 \
openpolicyagent-v2/opa-docker-authz:0.3 \
policy.source=$HOME/opa/policies \
opa-args="-policy-file /opa/authz.rego"
Expand All @@ -88,7 +85,7 @@ If you prefer to use the legacy plugin, it needs to be started as a container, b
$ docker container run -d --restart=always --name opa-docker-authz \
-v /run/docker/plugins:/run/docker/plugins \
-v $HOME/opa/policies:/opa \
openpolicyagent/opa-docker-authz:0.2.2 -policy-file /opa/authz.rego
openpolicyagent/opa-docker-authz:0.3 -policy-file /opa/authz.rego
```

### Logs
Expand Down

0 comments on commit 9a58d7b

Please sign in to comment.