Skip to content

Commit

Permalink
[VSCode] Created devcontainers files to develop inside the container
Browse files Browse the repository at this point in the history
  • Loading branch information
felipesantosk committed Sep 10, 2024
1 parent a045798 commit dac86ff
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y \
ninja-build \
g++ \
python3 \
curl \
zip \
unzip \
git \
pkg-config \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*

# Install cmake
ENV CMAKE_VERSION=3.29.2

RUN curl -L "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh" -o cmake.sh \
&& chmod +x cmake.sh \
&& ./cmake.sh --skip-license --prefix=/usr/local \
&& rm cmake.sh

WORKDIR /workspace
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"build": {
"dockerfile": "Dockerfile",
"context": "."
},
"customizations": {
"vscode": {
"extensions": [
"ms-vscode.cpptools-extension-pack"
]
}
}
}

0 comments on commit dac86ff

Please sign in to comment.