Skip to content

Commit

Permalink
Add Dockerfile and update README with build flow
Browse files Browse the repository at this point in the history
  • Loading branch information
screeley44 committed May 1, 2019
1 parent 7e6732c commit 1bdc38c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Dockerfile
@@ -0,0 +1,6 @@
FROM fedora:29

COPY ./bin/aws-s3-provisioner /usr/bin/

ENTRYPOINT ["/usr/bin/aws-s3-provisioner"]
CMD ["-v=2", "-alsologtostderr"]
28 changes: 27 additions & 1 deletion README.md
@@ -1 +1,27 @@
# aws-s3-provisioner
# aws-s3-provisioner

### Build and Push the image

1. Build the provisioner binary.
```
# go build -a -o ./bin/aws-s3-provisioner ./cmd/...
```

2. Login to docker and quay.io.
```
# docker login
# docker login quay.io
```

3. Build the image and push it to quay.io.
```
# docker build . -t quay.io/<your_quay_account>/aws-s3-provisioner:v1.0.0
# docker push quay.io/<your_quay_account>/aws-s3-provisioner:v1.0.0
```

i.e.

```
# docker build . -t quay.io/screeley44/aws-s3-provisioner:v1.0.0
# docker push quay.io/screeley44/aws-s3-provisioner:v1.0.0
```

0 comments on commit 1bdc38c

Please sign in to comment.