From bae53816aa04272a835963a9e57ca6e7d94d64d0 Mon Sep 17 00:00:00 2001 From: Victor Nogueira Date: Sun, 5 Apr 2020 03:09:07 +0300 Subject: [PATCH] Add gitpod config (#61) * 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. --- .gitpod.Dockerfile | 23 +++++++++++++++++++++++ .gitpod.yml | 7 +++++++ README.md | 3 +++ 3 files changed, 33 insertions(+) create mode 100644 .gitpod.Dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile new file mode 100644 index 00000000..d047aee1 --- /dev/null +++ b/.gitpod.Dockerfile @@ -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} diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..784ffad2 --- /dev/null +++ b/.gitpod.yml @@ -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 diff --git a/README.md b/README.md index 3c0ff766..d025c7a0 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,9 @@ GitHub go.mod Go version + + Gitpod Ready-to-Code + GitHub Workflow Status