-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from scilus/feat/nf_core_remote
[IMPROV] Quality of Life improvments for the devcontainer
- Loading branch information
Showing
11 changed files
with
154 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
npm install -g --save-dev --save-exact prettier | ||
npm install -g editorconfig | ||
npm install -g --save-dev editorconfig-checker | ||
|
||
mkdir -p $XDG_CONFIG_HOME/nf-scil | ||
touch $XDG_CONFIG_HOME/nf-scil/.env | ||
echo "source $XDG_CONFIG_HOME/nf-scil/.env" >> ~/.bashrc | ||
|
||
mkdir -p /nf-test/bin | ||
cd /nf-test/bin/ | ||
curl -fsSL https://code.askimed.com/install/nf-test | bash -s ${NFTEST_VERSION} | ||
echo "PATH=$PATH:/nf-test/bin" >> ~/.bashrc |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
GIT_REMOTE=$(git remote get-url origin) | ||
# Get tracked remote branch associated to current branch (default to main) | ||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo "main") | ||
|
||
cat <<EOF > $XDG_CONFIG_HOME/nf-scil/.env | ||
# This file is used to store environment variables for the project. | ||
# It is sourced by the shell on startup of every terminals. | ||
export PROFILE=docker | ||
export NFCORE_MODULES_GIT_REMOTE=$GIT_REMOTE | ||
export NFCORE_MODULES_BRANCH=$CURRENT_BRANCH | ||
export NFCORE_SUBWORKFLOWS_GIT_REMOTE=$GIT_REMOTE | ||
export NFCORE_SUBWORKFLOWS_BRANCH=$CURRENT_BRANCH | ||
EOF | ||
|
||
poetry install --no-root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[virtualenvs] | ||
in-project = false | ||
in-project = true |