Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc_uab_rstudio_server
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bo-Chun Chen
bc_uab_rstudio_server
Commits
0e961c04
Unverified
Commit
0e961c04
authored
2 years ago
by
Ravi Tripathi
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1 from diedpigs/2.1-patch-1
2.1 patch 1
parents
2de94d70
de2d44af
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
template/script.sh.erb
+8
-3
8 additions, 3 deletions
template/script.sh.erb
with
8 additions
and
3 deletions
template/script.sh.erb
+
8
−
3
View file @
0e961c04
#!/usr/bin/env bash
#!/usr/bin/env bash
module reset
module reset
<%=
context
.
custom_environment
%>
# load RStudio Server
# load RStudio Server
module load
<%=
context
.
rstudio_version
%>
module load
<%=
context
.
rstudio_version
%>
...
@@ -21,12 +19,19 @@ export RSESSION_WRAPPER_FILE="${PWD}/rsession.sh"
...
@@ -21,12 +19,19 @@ export RSESSION_WRAPPER_FILE="${PWD}/rsession.sh"
(
(
umask 077
umask 077
sed 's/^ \{2\}//' > "${RSESSION_WRAPPER_FILE}"
<
<
EOL
sed 's/^ \{2\}//' > "${RSESSION_WRAPPER_FILE}"
<
<
EOL
#
!/
usr
/
bin
/
env
bash
#
!/
bin
/
bash
-l
#
Log
all
output
from
this
script
#
Log
all
output
from
this
script
export
RSESSION_LOG_FILE=
"${PWD}/rsession.log"
export
RSESSION_LOG_FILE=
"${PWD}/rsession.log"
exec
&
>
>"\${RSESSION_LOG_FILE}"
exec
&
>
>"\${RSESSION_LOG_FILE}"
# load R
module load
<%=
context
.
r_version
%>
<%=
context
.
custom_environment
%>
module list
# Launch the original command
# Launch the original command
echo "Launching rsession..."
echo "Launching rsession..."
set -x
set -x
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment