Skip to content

Commit

Permalink
Revert "uodate devcontainer (#2138)"
Browse files Browse the repository at this point in the history
This reverts commit 38de959.
  • Loading branch information
ykadowak committed Nov 30, 2023
1 parent 880fe54 commit af7d449
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"name": "Vald",
"image": "vdaas/vald-dev-container:nightly",
// Specify the Dockerfile below directly if you need to make customizations
// "dockerFile": "../dockers/dev/Dockerfile",
// "context": "..",
"dockerFile": "../dockers/dev/Dockerfile",
"context": "..",
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
Expand All @@ -13,17 +11,7 @@
}
},
"remoteUser": "root",
"workspaceFolder": "/go/src/github.com/vdaas/vald",
"workspaceMount": "source=${localWorkspaceFolder},target=/go/src/github.com/vdaas/vald,type=bind,consistency=delegated",

// To access grafana
"appPort": "3000:3000",

// Persist zsh history settings below
// overwrite HISTFILE to store history file in the named volume defined below
// also setting INC_APPEND_HISTORY to immediately flush command history to the file to keep history when rebuilding the devcontainer
"postStartCommand": "echo 'export HISTFILE=/commandhistory/.zsh_history' >> /root/.zshrc && echo 'setopt INC_APPEND_HISTORY' >> /root/.zshrc",
// define named volume to store zsh history file
"mounts": ["source=zshhistory-named-volume,target=/commandhistory,type=volume"],
"postAttachCommand": "mkdir -p /etc/server && ln -s $(pwd)/cmd/agent/core/ngt/sample.yaml /etc/server/config.yaml"
"postCreateCommand": "go version",
"postAttachCommand": "mkdir -p /etc/server && ln -s $(pwd)/cmd/agent/core/ngt/sample.yaml /etc/server/config.yaml",
"appPort": "3000:3000"
}

0 comments on commit af7d449

Please sign in to comment.