Skip to content

Commit

Permalink
Add gitpod config (#61)
Browse files Browse the repository at this point in the history
* Add gitpod config

this commit adds support for Gitpod.io, a free automated
dev environment that makes contributing and generally working on GitHub
projects much easier. It allows anyone to start a ready-to-code dev
environment for any branch, issue and pull request with a single click.
  • Loading branch information
felladrin committed Apr 5, 2020
1 parent 53e284a commit bae5381
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM minio/minio:RELEASE.2020-01-25T02-50-51Z as minio
FROM hashicorp/terraform:0.12.20 as terraform
FROM gitpod/workspace-full

USER gitpod

# Define environment variables for Terraform
ENV TERRAFORM_PLUGINS_DIR=$HOME/.terraform.d/plugins

# Copy and install Terraform binary
COPY --from=terraform /bin/terraform /usr/local/bin/

# Define environment variables for MinIO
ENV MINIO_ACCESS_KEY=minio
ENV MINIO_SECRET_KEY=minio123
ENV MINIO_HTTP_TRACE=/dev/stdout
ENV MINIO_VOLUMES=$HOME/.minio/data

# Copy and install MinIO binary
COPY --from=minio /usr/bin/minio /usr/local/bin/

# Create folders for MinIO and Terraform
RUN mkdir -p ${MINIO_VOLUMES} ${TERRAFORM_PLUGINS_DIR}
7 changes: 7 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tasks:
- init: go get -v ./... && go test ./minio/ && make build
- command: minio server ${MINIO_VOLUMES}
name: MinIO Server
openMode: split-right
image:
file: .gitpod.Dockerfile
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<a href="https://golang.org/doc/devel/release.html">
<img alt="GitHub go.mod Go version" src="https://img.shields.io/github/go-mod/go-version/aminueza/terraform-provider-minio">
</a>
<a href="https://gitpod.io/#https://github.com/aminueza/terraform-provider-minio">
<img alt="Gitpod Ready-to-Code" src="https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod">
</a>
<a href="https://github.com/aminueza/terraform-provider-minio/actions?query=workflow%3A%22Terraform+Provider+CI%22">
<img alt="GitHub Workflow Status" src="https://img.shields.io/github/workflow/status/aminueza/terraform-provider-minio/Terraform%20Provider%20CI">
</a>
Expand Down

0 comments on commit bae5381

Please sign in to comment.