mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Added devcontainers for more reliable builds
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
FROM ubuntu:24.10
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
clang \
|
||||
cmake \
|
||||
git \
|
||||
curl \
|
||||
libsdbus-c++-dev \
|
||||
libssl-dev \
|
||||
libsystemd-dev \
|
||||
libcurlpp-dev \
|
||||
apt-transport-https \
|
||||
gnupg \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Installing bazel
|
||||
RUN curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg && mv bazel-archive-keyring.gpg /usr/share/keyrings \
|
||||
&& echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
|
||||
&& apt update && apt install -y bazel
|
||||
|
||||
RUN apt-get install -y pkg-config
|
||||
|
||||
WORKDIR /workspace
|
||||
|
||||
ENTRYPOINT ["/bin/bash"]
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "Bazel Dev Container",
|
||||
"dockerFile": "Dockerfile",
|
||||
"settings": {
|
||||
"terminal.integrated.defaultProfile.linux": "bash",
|
||||
"C_Cpp.default.compilerPath": "/usr/bin/clang++"
|
||||
},
|
||||
"extensions": [
|
||||
"ms-vscode.cpptools",
|
||||
"bazelbuild.vscode-bazel",
|
||||
"ms-vscode.cpptools-extension-pack"
|
||||
],
|
||||
"mounts": [
|
||||
"source=${localWorkspaceFolder},target=/workspace,type=bind"
|
||||
],
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ bazel_dep(name = "platforms", version = "0.0.8")
|
||||
bazel_dep(name = "rules_cc", version = "0.0.9")
|
||||
bazel_dep(name = "rules_rust", version = "0.42.1")
|
||||
bazel_dep(name = "bazel_skylib", version = "1.5.0")
|
||||
bazel_dep(name = "rules_proto", version = "7.1.0")
|
||||
bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "com_google_absl")
|
||||
bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf")
|
||||
bazel_dep(name = "googletest", version = "1.14.0", repo_name = "com_google_googletest")
|
||||
|
||||
Generated
+1022
-1113
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -18,7 +18,7 @@
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include <absl/log/check.h>
|
||||
#include "absl/log/check.h"
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "absl/time/time.h"
|
||||
|
||||
Reference in New Issue
Block a user