Skip to content

Commit

Permalink
test: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kumarak committed Aug 30, 2024
1 parent ba0df91 commit 189cd16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ RUN apt-get update && \
apt-get clean --yes && \
rm -rf /var/lib/apt/lists/*

# Install Docker
RUN curl -fsSL https://get.docker.com -o get-docker.sh \
&& sh get-docker.sh \
&& rm get-docker.sh

RUN apt-get -y purge llvm-14 clang-14

RUN pip3 install lit codespell jinja2 Pygments

COPY ./install-llvm.sh /tmp/
RUN chmod +x /tmp/install-llvm.sh && /tmp/install-llvm.sh ${LLVM_VERSION} all

RUN groupadd docker || true && usermod -aG docker root
8 changes: 5 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"name": "C++",
// to run local build of devcontainer
"build": { "dockerfile": "./Dockerfile" },
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],

"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", "--privileged"],
"mounts": [
"source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind"
],
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
Expand All @@ -18,7 +20,7 @@
}
},

"remoteUser": "vscode",
"remoteUser": "root",
"features": {
"git": "os-provided",
"python": "os-provided"
Expand Down

0 comments on commit 189cd16

Please sign in to comment.