Skip to content

Commit

Permalink
add flags to skip the lifecycle scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Jan 5, 2024
1 parent fbef6e8 commit 641d0f6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion features/src/rapids-build-utils/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "NVIDIA RAPIDS devcontainer build utilities",
"id": "rapids-build-utils",
"version": "24.2.5",
"version": "24.2.6",
"description": "A feature to install the RAPIDS devcontainer build utilities",
"containerEnv": {
"BASH_ENV": "/etc/bash.bash_env"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#! /usr/bin/env bash

if test -n "${SKIP_POST_ATTACH_COMMAND:-}"; then
exit 0;
fi

if test -n "${PYTHON_PACKAGE_MANAGER:-}"; then
rapids-make-${PYTHON_PACKAGE_MANAGER}-env || true;
fi
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#! /usr/bin/env bash

if test -n "${SKIP_POST_START_COMMAND:-}"; then
exit 0;
fi

rapids-make-vscode-workspace --update;
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#! /usr/bin/env bash

if test -n "${SKIP_UPDATE_CONTENT_COMMAND:-}"; then
exit 0;
fi

rapids-generate-scripts;

rapids-make-vscode-workspace --update;
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

SKIP_POST_ATTACH_COMMAND=;

. devcontainer-utils-post-attach-command;

exec "$@";
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#! /usr/bin/env bash

if test -n "${SKIP_POST_ATTACH_COMMAND:-}"; then
exit 0;
fi

find ~/ -maxdepth 1 -exec bash -c "\
[ \$(stat --format '%u:%g' '{}') != $(id -u):$(id -g) ] \
&& sudo chown -R $(id -u):$(id -g) {}" \;
Expand Down

0 comments on commit 641d0f6

Please sign in to comment.