Skip to content

Commit

Permalink
Docker: make asgal run in the /data directory
Browse files Browse the repository at this point in the history
salmon and samtools create several temp files in the same directory
wheer asgal is run.
The new approach is to start asgal in the /data directory which usually
is mapped to a large disk.

Closes: #15
  • Loading branch information
gdv committed May 21, 2021
1 parent 0bf36cb commit 888263a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/asgal-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ if [ "$USER_ID" != "0" ]
then
echo "Changing user"
groupadd -g "$GROUP_ID" group
useradd --shell /bin/bash -u "$USER_ID" -g group -o -c "" -m user
useradd --shell /bin/bash -u "$USER_ID" -g "$GROUP_ID" -o -c "" -m user
chown --recursive "$USER_ID":"$GROUP_ID" /data
SU_CMD="setpriv --reuid=user --regid=group --init-groups"
SU_CMD="setpriv --reuid="$USER_ID" --regid="$GROUP_ID" --init-groups"
fi
export HOME=/

echo "Starting with UID:GID $USER_ID:$GROUP_ID"
cd /data

if [ -s /data/transcripts.fa ]
then
Expand Down

0 comments on commit 888263a

Please sign in to comment.