Skip to content

Commit

Permalink
Add relabel options when running devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Jan 3, 2025
1 parent 807414b commit 3b54597
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ In CLion, open the Remote Development window by navigating to "File -> Remote De
configuration. When a new configuration is added, you can start a new project using `/home/celixdev/workspace` as the
project root and selecting CLion as the IDE.

Also ensure the CMake profile from the - conan generated - `CMakeUserPresets.json` is used: Enable the profile in the
Settings -> "Build, Execution, Deployment" -> CMake menu.

## Running tests
Tests can be run using ctest.
When building with conan, the conanrun.sh script will setup the environment for the
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/run-devcontainer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ ${CONTAINER_ENGINE} run -it --rm --privileged -d \
--userns=keep-id \
--net=host \
${ADDITIONAL_ARGS} \
--volume "${CELIX_REPO_ROOT}":${CELIX_CONTAINER_ROOT} \
--volume "${CELIX_REPO_ROOT}":${CELIX_CONTAINER_ROOT}:Z \
--workdir "${CELIX_CONTAINER_ROOT}" \
--security-opt label=disable \
apache/celix-conan-dev:latest bash -c "${CONTAINER_COMMAND}"
Expand Down

0 comments on commit 3b54597

Please sign in to comment.