Skip to content

Commit

Permalink
Add GitHub Codespaces integration
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Oct 11, 2020
1 parent 283a73d commit aadccc3
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .devcontainer/Dockerfile
@@ -0,0 +1,26 @@
FROM ubuntu:focal
ARG DEBIAN_FRONTEND=noninteractive
ARG VSCODE_USERNAME=vscode
ARG VSCODE_UID=1000
ARG VSCODE_GID=1000
RUN apt-get update \
&& apt-get install --no-install-recommends -y apt-utils dialog sudo 2>&1 \
&& groupadd --gid $VSCODE_GID $VSCODE_USERNAME \
&& useradd -s /bin/bash --uid $VSCODE_UID --gid $VSCODE_GID -m $VSCODE_USERNAME \
&& echo $VSCODE_USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$VSCODE_USERNAME\
&& chmod 0440 /etc/sudoers.d/$VSCODE_USERNAME \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install --no-install-recommends -y git procps lsb-release \
build-essential libtool autotools-dev automake pkg-config \
bsdmainutils python3 libevent-dev libboost-system-dev \
libboost-filesystem-dev libboost-test-dev libboost-thread-dev \
libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 \
qttools5-dev qttools5-dev-tools libqrencode-dev libdb-dev \
libdb++-dev gdb man manpages manpages-dev manpages-posix lynx links \
emacs vim mc cppcheck python3-pip pylint black pyflakes3 \
python3-jedi python3-autopep8 black yapf3 isort pylint flake8 mypy \
pydocstyle pylama wget curl lsof htop net-tools clang bear \
&& pip3 install prospector==1.3.0 rope==0.18.0
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
@@ -0,0 +1,22 @@
{
"postCreateCommand": "./autogen.sh && ./configure --with-incompatible-bdb && make -C src/ config/bitcoin-config.h bench/data/block413567.raw.h test/data/asmap.raw.h",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined"
],
"remoteUser": "vscode",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"terminal.integrated.shellArgs.linux": ["-l"]
},
"name": "",
"extensions": [
"ms-python.python",
"ms-vscode.cpptools",
"jbenden.c-cpp-flylint"
]
}
19 changes: 19 additions & 0 deletions .vscode/c_cpp_properties.json
@@ -0,0 +1,19 @@
{
"configurations": [
{
"defines": [
"HAVE_CONFIG_H"
],
"includePath": [
"${workspaceFolder}/src/**",
"/usr/include/"
],
"intelliSenseMode": "gcc-x64",
"name": "",
"compilerPath": "/usr/bin/gcc",
"cppStandard": "gnu++11",
"cStandard": "gnu11"
}
],
"version": 4
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,8 @@
{
"c-cpp-flylint.clang.enable": false,
"c-cpp-flylint.flexelint.enable": false,
"extensions.ignoreRecommendations": true,
"extensions.showRecommendationsOnlyOnDemand": true,
"python.showStartPage": false,
"telemetry.enableTelemetry": false
}

0 comments on commit aadccc3

Please sign in to comment.