Skip to content

Instantly share code, notes, and snippets.

@aharonamir
aharonamir / Dockerfile.develop
Created September 1, 2020 12:54
vscode-remote-develop Dockerfile
FROM aharonamir/vscode-remote-gcc-vcpkg
# install project specific dependencies
# install deb packages
USER root
COPY ./script/install-deb-dependencies.sh /usr/
RUN chmod +x /usr/install-deb-dependencies.sh
RUN apt-get update
RUN /usr/install-deb-dependencies.sh
# Clean up APT when done.
@aharonamir
aharonamir / CMake
Last active September 2, 2020 15:41
Cmake vcpkg integration
...
# add vcpkg toochain
include(/home/vscode/vcpkg/scripts/buildsystems/vcpkg.cmake)
# find packages:
# some packages in vcpkg will require to add find_package
# e.g find_package(nlohmann_json CONFIG REQUIRED)
# vcpkg will notify that when installing the specific package
# libs
@aharonamir
aharonamir / Dockerfile
Created September 2, 2020 15:59
Multi-Stage vscode Dockerfile
# MULTI STAGE BUILD
FROM aharonamir/vscode-remote-gcc-vcpkg as builder
# install project specific dependencies
# install deb packages
USER root
COPY ./script/install-deb-dependencies.sh /usr/
RUN chmod +x /usr/install-deb-dependencies.sh
RUN apt-get update
@aharonamir
aharonamir / launch.json
Created September 3, 2020 17:08
setup for cpp debug
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Test Sqlite",
"type": "cppdbg",
"request": "launch",