Skip to content

Commit

Permalink
Correct post-create
Browse files Browse the repository at this point in the history
  • Loading branch information
wusatosi committed Nov 8, 2024
1 parent fce7581 commit 24b10ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-22.04

USER vscode

# Install latest cmake
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
Expand Down
3 changes: 1 addition & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": {
"dockerfile": "Dockerfile"
},
// TODO: these commands are failing
"postCreateCommand": ["bash postcreate.sh"],
"postCreateCommand": "bash .devcontainer/postcreate.sh",
"customizations": {
"vscode": {
"extensions": [
Expand Down
4 changes: 0 additions & 4 deletions .devcontainer/postcreate.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
cd ..

# Setup cmake build directory
cmake --workflow --preset gcc-debug
# Setup pre-commit
pre-commit
pre-commit install

0 comments on commit 24b10ba

Please sign in to comment.