-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e envs to devcontainer (#2032)
* add e2e envs to devcontainer * style: Format code with gofumpt and prettier * move Dockerfile * refactor * update readme for dev Dockerfile * style: Format code with gofumpt and prettier * remove unnecesary sudo * Set the SHELL option -o pipefail before RUN with a pipe in * replace wget to curl * Update dockers/dev/README.md Co-authored-by: Kiichiro YUKAWA <[email protected]> * add link to the image * update install make commands * refactor comment * update kubectl/install --------- Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Kiichiro YUKAWA <[email protected]>
- Loading branch information
1 parent
e655f53
commit 23c422c
Showing
5 changed files
with
23 additions
and
49 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 |
---|---|---|
@@ -1,24 +1,14 @@ | ||
{ | ||
"name": "Vald", | ||
"image": "vdaas/vald-dev-container:nightly", | ||
"dockerFile": "../dockers/dev/Dockerfile", | ||
"context": "..", | ||
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], | ||
|
||
"settings": { | ||
"terminal.integrated.shell.linux": "/bin/bash", | ||
"go.useGoProxyToCheckForToolUpdates": false, | ||
"go.useLanguageServer": true, | ||
"go.autocompleteUnimportedPackages": true, | ||
"go.buildOnSave": true, | ||
"go.vetOnSave": true, | ||
"go.lintOnSave": true, | ||
"go.testOnSave": true, | ||
"go.gopath": "/go" | ||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2": { | ||
"version": "latest", | ||
"enableNonRootDocker": "true", | ||
"moby": "true" | ||
} | ||
}, | ||
"extensions": [ | ||
"golang.Go", | ||
"zxh404.vscode-proto3", | ||
"wayou.vscode-todo-highlight", | ||
"esbenp.prettier-vscode" | ||
], | ||
"postCreateCommand": "go version" | ||
} |
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
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
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 |
---|---|---|
|
@@ -16,18 +16,6 @@ | |
|
||
ARG MAINTAINER="vdaas.org vald team <[email protected]>" | ||
|
||
FROM ubuntu:devel AS builder | ||
|
||
# skipcq: DOK-DL3008 | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
unzip \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR /tmp | ||
|
||
# skipcq: DOK-DL3026 | ||
FROM mcr.microsoft.com/vscode/devcontainers/go:1 AS base | ||
LABEL maintainer "${MAINTAINER}" | ||
|
@@ -64,12 +52,18 @@ COPY versions versions | |
RUN make ngt/install \ | ||
&& make helm/install \ | ||
&& make helm-docs/install \ | ||
&& make kind/install \ | ||
&& make valdcli/install \ | ||
&& make yq/install \ | ||
&& make golangci-lint/install \ | ||
&& make reviewdog/install \ | ||
&& make protobuf/install \ | ||
&& make kubectl/install \ | ||
&& make protobuf/install | ||
&& make k3d/install | ||
|
||
# k9s installs the binary to the current user which is root for devcontainer | ||
# so change the current user to vscode to user afterwards | ||
USER vscode | ||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
RUN curl -sS https://webinstall.dev/k9s | bash | ||
|
||
WORKDIR ${GOPATH} |
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