mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 06:58:59 -07:00
Updated example for Prometheus, updated Go modules, and tweaked the devcontainer.
This commit is contained in:
parent
31c6551cce
commit
8fea3b2527
6 changed files with 57 additions and 27 deletions
|
@ -1,7 +1,7 @@
|
|||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.3/containers/go/.devcontainer/base.Dockerfile
|
||||
|
||||
# [Choice] Go version: 1, 1.16, 1.17
|
||||
ARG VARIANT="1.17"
|
||||
ARG VARIANT="1.18"
|
||||
FROM mcr.microsoft.com/vscode/devcontainers/go:0-${VARIANT}
|
||||
|
||||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
|
||||
|
@ -9,9 +9,8 @@ ARG NODE_VERSION="none"
|
|||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
|
||||
|
||||
# [Optional] Uncomment this section to install additional OS packages.
|
||||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
# && apt-get -y install --no-install-recommends <your-package-list-here>
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends libzmq3-dev libzmq5
|
||||
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
|
||||
&& apt-get -y install --no-install-recommends libzmq3-dev libzmq5
|
||||
|
||||
# [Optional] Uncomment the next line to use go get to install anything else you need
|
||||
# RUN go get -x <your-dependency-or-tool>
|
||||
|
|
|
@ -33,13 +33,22 @@
|
|||
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [9000],
|
||||
"forwardPorts": [9101, 35570, 35571, 35572],
|
||||
|
||||
// Use 'portsAttributes' to set default properties for specific forwarded ports. More info: https://code.visualstudio.com/docs/remote/devcontainerjson-reference.
|
||||
"portsAttributes": {
|
||||
"9000": {
|
||||
"label": "Hello Remote World",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
"9101": {
|
||||
"label": "Prometheus",
|
||||
},
|
||||
"35570": {
|
||||
"label": "Router To Router",
|
||||
},
|
||||
"35571": {
|
||||
"label": "Worker To Router",
|
||||
},
|
||||
"35572": {
|
||||
"label": "Client To Router",
|
||||
},
|
||||
},
|
||||
|
||||
// Use 'otherPortsAttributes' to configure any ports that aren't configured using 'portsAttributes'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue