Skip to content

Commit 5495f4c

Browse files
Add devcontainer (#263)
1 parent a84fc45 commit 5495f4c

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.devcontainer/devcontainer.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-dockerfile
3+
{
4+
"name": "Existing Dockerfile",
5+
"build": {
6+
// Sets the run context to one level up instead of the .devcontainer folder.
7+
"context": "..",
8+
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
9+
"dockerfile": "../Dockerfile",
10+
"args": {
11+
//"CXXFLAGS": "-Og -g",
12+
//"NCPU": "3",
13+
"RECLAIM": "" // Don't delete the build directories for a devcontainer!
14+
}
15+
},
16+
17+
"workspaceFolder": "/root/pharos"
18+
19+
// Features to add to the dev container. More info: https://containers.dev/features.
20+
// "features": {},
21+
22+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
23+
// "forwardPorts": [],
24+
25+
// Uncomment the next line to run commands after the container is created.
26+
// "postCreateCommand": "cat /etc/os-release",
27+
28+
// Configure tool-specific properties.
29+
// "customizations": {},
30+
31+
// Uncomment to connect as an existing user other than the container default. More info: https://aka.ms/dev-containers-non-root.
32+
// "remoteUser": "devcontainer"
33+
34+
}

.github/dependabot.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for more information:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
# https://containers.dev/guide/dependabot
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

scripts/build.bash

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ NCPU="${NCPU:-1}"
88
PREFIX="${PREFIX:-/usr/local}"
99

1010
# Pharos
11-
cd $DIR
11+
cd $DIR/..
1212

1313
sudo ldconfig
1414

@@ -17,7 +17,7 @@ mkdir build
1717
cd build
1818
cmake -GNinja -DCMAKE_INSTALL_PREFIX=$PREFIX -DROSE_ROOT=$PREFIX \
1919
-DBOOST_ROOT=$PREFIX -DZ3_ROOT=$PREFIX -DSWIPL_ROOT=$PREFIX \
20-
-DYamlCpp_ROOT=/usr ../..
20+
-DYamlCpp_ROOT=/usr ..
2121

2222
ninja -k $NCPU -j $NCPU || true
2323
ninja -j 1

0 commit comments

Comments
 (0)