Skip to content

Commit d1addd1

Browse files
authored
Fix mount-farm (#10)
* Update mount-farm script * Update poststart.sh
1 parent 7afcfe0 commit d1addd1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ COPY files/data /home/jovyan/data
216216
COPY files/notebooks /home/jovyan/notebooks
217217

218218
# copy mount script
219-
COPY mount-farm.sh /
219+
COPY mount-farm /usr/local/bin/mount-farm
220+
RUN chmod +x /usr/local/bin/mount-farm
220221

221222
# copy poststart script
222223
COPY poststart.sh /

mount-farm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
FARM_LOGIN=farm5-login
3+
FARM_LOGIN=farm5-login.internal.sanger.ac.uk
44

55
MOUNTED_DIRS=$(mount | grep sshfs | awk '{print $3}' | grep -E "^(/nfs|/lustre|/warehouse)$")
66
if [[ ! -z ${MOUNTED_DIRS} ]];

poststart.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ sudo mkdir -p /nfs
1919
sudo mkdir -p /lustre
2020
sudo mkdir -p /warehouse
2121

22-
# copy mount-farm so its avaiable on the user's path
23-
sudo chmod +x /mount-farm.sh
24-
sudo cp /mount-farm.sh /usr/local/bin/mount-farm
25-
2622
# start docker service
2723
sudo service docker start
2824

0 commit comments

Comments
 (0)