-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters