dynamically create the .vscode configurations

pull/7102/head
Nils Dijk 2022-05-05 18:11:16 +02:00
parent 48d99989d3
commit 68250d25d3
5 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,16 @@
{
"configurations": [
{
"name": "Citus Development Configuration",
"includePath": [
"/usr/local/include",
"${workspaceFolder}/**",
"/home/citus/.pgenv/src/postgresql-14.2/src/",
"/home/citus/.pgenv/src/postgresql-14.2/src/include/",
"/home/citus/.pgenv/src/postgresql-14.2/src/interfaces/libpq/",
"${workspaceFolder}/src/include/",
]
}
],
"version": 4
}

View File

@ -65,7 +65,7 @@ FROM base AS pg12
RUN pgenv build 12.10
RUN rm .pgenv/src/*.tar*
# TODO remove excessive artifacts for smaller images
RUN make -C .pgenv/src/postgresql-*/ clean
#RUN #make -C .pgenv/src/postgresql-*/ clean
# create a staging directory with all files we want to copy from our pgenv build
# we will copy the contents of the staged folder into the final image at once
@ -78,7 +78,7 @@ FROM base AS pg13
RUN pgenv build 13.6
RUN rm .pgenv/src/*.tar*
# TODO remove excessive artifacts for smaller images
RUN make -C .pgenv/src/postgresql-*/ clean
#RUN make -C .pgenv/src/postgresql-*/ clean
# create a staging directory with all files we want to copy from our pgenv build
# we will copy the contents of the staged folder into the final image at once
@ -91,7 +91,7 @@ FROM base AS pg14
RUN pgenv build 14.2
RUN rm .pgenv/src/*.tar*
# TODO remove excessive artifacts for smaller images
RUN make -C .pgenv/src/postgresql-*/ clean
#RUN make -C .pgenv/src/postgresql-*/ clean
# create a staging directory with all files we want to copy from our pgenv build
# we will copy the contents of the staged folder into the final image at once

11
.devcontainer/Makefile Normal file
View File

@ -0,0 +1,11 @@
init: ../.vscode/c_cpp_properties.json ../.vscode/launch.json
../.vscode:
mkdir ../.vscode
../.vscode/launch.json: ../.vscode
cp .vscode/launch.json ../.vscode/launch.json
../.vscode/c_cpp_properties.json: ../.vscode
cp .vscode/c_cpp_properties.json ../.vscode/c_cpp_properties.json

View File

@ -13,5 +13,6 @@
"mounts": [
"type=volume,target=/data",
],
"updateContentCommand": "./configure"
"updateContentCommand": "./configure",
"postCreateCommand": "make -C .devcontainer/",
}