Skip to content

Commit

Permalink
Add devcontainer (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-eschwartz committed Mar 25, 2024
1 parent a84fc45 commit 5495f4c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
{
"name": "Existing Dockerfile",
"build": {
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerfile": "../Dockerfile",
"args": {
//"CXXFLAGS": "-Og -g",
//"NCPU": "3",
"RECLAIM": "" // Don't delete the build directories for a devcontainer!
}
},

"workspaceFolder": "/root/pharos"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "cat /etc/os-release",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "devcontainer"

}
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for more information:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
4 changes: 2 additions & 2 deletions scripts/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ NCPU="${NCPU:-1}"
PREFIX="${PREFIX:-/usr/local}"

# Pharos
cd $DIR
cd $DIR/..

sudo ldconfig

Expand All @@ -17,7 +17,7 @@ mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=$PREFIX -DROSE_ROOT=$PREFIX \
-DBOOST_ROOT=$PREFIX -DZ3_ROOT=$PREFIX -DSWIPL_ROOT=$PREFIX \
-DYamlCpp_ROOT=/usr ../..
-DYamlCpp_ROOT=/usr ..

ninja -k $NCPU -j $NCPU || true
ninja -j 1
Expand Down

0 comments on commit 5495f4c

Please sign in to comment.