Skip to content

Commit

Permalink
Remove support for VS Code Dev Container
Browse files Browse the repository at this point in the history
  • Loading branch information
felladrin committed Jan 20, 2022
1 parent 0ab5aac commit 23614b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 34 deletions.
18 changes: 0 additions & 18 deletions .devcontainer/devcontainer.json

This file was deleted.

13 changes: 3 additions & 10 deletions .devcontainer/Dockerfile → .gitpod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
ARG GO_VERSION="1.17"

FROM hashicorp/terraform:0.14.0 as terraform
FROM minio/minio:RELEASE.2021-04-06T23-11-00Z as minio
FROM minio/mc:RELEASE.2021-04-22T17-40-00Z as mc
FROM rzrbld/adminio-api:v1.82 as adminio-api
FROM rzrbld/adminio-ui:v1.93 as adminio-ui
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${GO_VERSION}
FROM gitpod/workspace-full

# Copy and install Terraform binary
COPY --from=terraform /bin/terraform /usr/local/bin/
Expand Down Expand Up @@ -36,12 +34,7 @@ ENV ADMINIO_UI_PATH=/usr/local/share/adminio-ui

# Copy and install pre-built AdminIO-UI
COPY --from=adminio-ui /usr/share/nginx/html ${ADMINIO_UI_PATH}
RUN chmod -R 777 ${ADMINIO_UI_PATH}
RUN sudo chmod -R 777 ${ADMINIO_UI_PATH}

# Install Task
RUN go install github.com/go-task/task/v3/cmd/task@latest

# Install Node.js
ARG INSTALL_NODE="true"
ARG NODE_VERSION="lts/*"
RUN if [ "${INSTALL_NODE}" = "true" ]; then su vscode -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
RUN sudo sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
image:
file: .devcontainer/Dockerfile
file: .gitpod.Dockerfile

tasks:
- command: minio server ${MINIO_VOLUMES}
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
- [Examples](#examples)
- [Testing](#testing)
- [Usage](#usage)
- [Developing inside a container](#developing-inside-a-container)
- [Roadmap](#roadmap)
- [License](#license)
- [Acknowledgements](#acknowledgements)
Expand Down Expand Up @@ -120,10 +119,6 @@ Access http://localhost on your browser, apply your terraform templates and watc

See our [Examples](examples/) folder.

## Developing inside a container

Inside `.devcontainer` folder is the configuration of a Docker Container with all tools needed to develop this project. It's meant to be used with [VS Code](https://code.visualstudio.com), requiring only the installation of [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension. For usage instructions, refer to [this tutorial](https://code.visualstudio.com/docs/remote/containers).

## Roadmap

See the [open issues](https://github.com/aminueza/terraform-provider-minio/issues) for a list of proposed features (and known issues). See [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
Expand Down

0 comments on commit 23614b8

Please sign in to comment.