-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make images fully amalthea ready
The goal of this is to move maintain as much of the current bahaviour with Amalthea-based sessions, while also keeping the images backwards compatible for now.
- Loading branch information
Showing
5 changed files
with
62 additions
and
40 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
# Setup git user | ||
if [ -z "$(git config --global --get user.name)" ]; then | ||
if [[ -z "$(git config --global --get user.name)" && -v GIT_AUTHOR_NAME ]]; then | ||
git config --global user.name "$GIT_AUTHOR_NAME" | ||
fi | ||
if [ -z "$(git config --global --get user.email)" ]; then | ||
if [[ -z "$(git config --global --get user.email)" && -v EMAIL ]]; then | ||
git config --global user.email "$EMAIL" | ||
fi |
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,6 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Make the default terminal folder the project folder in the vnc | ||
echo "cd /work/${CI_PROJECT}" >> ~/.bashrc | ||
if [[ -v CI_PROJECT ]] | ||
then | ||
echo "cd /work/${CI_PROJECT}" >> ~/.bashrc | ||
fi | ||
if [[ -v NOTEBOOK_DIR ]] | ||
then | ||
echo "cd ${NOTEBOOK_DIR}" >> ~/.bashrc | ||
fi | ||
# Turn the bell off | ||
echo "bind 'set bell-style none'" >> ~/.bashrc |