Skip to content

Commit f8c9a40

Browse files
committed
add devcontainer
add devcontainer
1 parent d16f781 commit f8c9a40

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

.devcontainer/Dockerfile.dev

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
FROM otel/cpp_format_tools
2+
3+
ARG GRPC_VERSION=v1.55.0
4+
5+
COPY ci/setup_googletest.sh /opt/ci/setup_googletest.sh
6+
COPY ci/setup_ci_environment.sh /opt/ci/setup_ci_environment.sh
7+
COPY ci/setup_cmake.sh /opt/ci/setup_cmake.sh
8+
COPY ci/setup_grpc.sh /opt/ci/setup_grpc.sh
9+
10+
RUN apt update && apt install -y wget \
11+
ninja-build \
12+
libcurl4-openssl-dev
13+
14+
RUN bash /opt/ci/setup_ci_environment.sh \
15+
&& bash /opt/ci/setup_cmake.sh \
16+
&& bash /opt/ci/setup_googletest.sh \
17+
&& bash /opt/ci/setup_grpc.sh -r ${GRPC_VERSION}
18+
19+
ADD https://github.com/bazelbuild/bazelisk/releases/download/v1.22.1/bazelisk-linux-amd64 /usr/local/bin
20+
21+
RUN git config --global core.autocrlf input \
22+
&& chmod +x /usr/local/bin/bazelisk-linux-amd64

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.162.0/containers/javascript-node
3+
{
4+
"name": "opentelemetry-cpp",
5+
"build": {
6+
"context": "..",
7+
"dockerfile": "Dockerfile.dev",
8+
"args": { "GRPC_VERSION": "v1.55.0" }
9+
},
10+
// Set *default* container specific settings.json values on container create.
11+
"settings": {
12+
"terminal.integrated.shell.linux": "/bin/sh"
13+
},
14+
"extensions": [
15+
"ms-vscode.cpptools"
16+
],
17+
18+
"remoteUser": "root"
19+
}

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ updates:
66
interval: "daily"
77
labels:
88
- "GHA"
9+
10+
- package-ecosystem: "devcontainers"
11+
directory: "/"
12+
schedule:
13+
interval: daily

0 commit comments

Comments
 (0)