Commit ff38a5b 1 parent 103a0a5 commit ff38a5b Copy full SHA for ff38a5b
File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ services:
18
18
image : ' atmoz/sftp'
19
19
volumes :
20
20
- ./sftp/bib_search:/home/alma/bib_search
21
- - ./sftp/ssh/id_rsa .pub:/home/alma/.ssh/keys/id_rsa.pub:ro
21
+ - ./sftp/ssh/ssh_client_rsa_key .pub:/home/alma/.ssh/keys/id_rsa.pub:ro
22
22
- ./sftp/ssh/ssh_host_ed25519_key:/etc/ssh/ssh_host_ed25519_key
23
23
- ./sftp/ssh/ssh_host_rsa_key:/etc/ssh/ssh_host_rsa_key
24
24
command : alma:1001
@@ -29,6 +29,7 @@ services:
29
29
- ' redis'
30
30
volumes :
31
31
- ./umich_catalog_indexing/.:/app
32
+ - ./sftp/ssh/ssh_client_rsa_key:/etc/secret-volume/id_rsa:ro
32
33
- gem_cache:/gems
33
34
environment :
34
35
- SOLR_URL=http://solr:8026/solr/biblio
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# clear out any current ssh keys
4
- rm umich_catalog_indexing/.ssh/*
5
- rm sftp/ssh/ssh_host*
6
- rm ssh_host*
4
+ rm sftp/ssh/ssh_*
5
+ rm ssh_*
7
6
8
7
9
8
# generate the host ssh keys for the sftp service
@@ -24,6 +23,5 @@ rm ssh_host*
24
23
# generate actual host login keys
25
24
ssh-keygen -t rsa -b 4096 -f ssh_client_rsa_key < /dev/null
26
25
27
- cp ssh_client_rsa_key.pub sftp/ssh/id_rsa.pub
28
- mv ssh_client_rsa_key.pub umich_catalog_indexing/.ssh/id_rsa.pub
29
- mv ssh_client_rsa_key umich_catalog_indexing/.ssh/id_rsa
26
+ mv ssh_client_rsa_key.pub sftp/ssh/
27
+ mv ssh_client_rsa_key sftp/ssh/
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ HATHI_OVERLAP_PASSWORD=pass
9
9
ALMA_API_HOST='https://api-na.hosted.exlibrisgroup.com'
10
10
SFTP_USER=alma
11
11
SFTP_HOST=sftp
12
+ SSH_KEY_PATH="/etc/secret-volume/id_rsa"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ pkg_file=$1
7
7
8
8
# copy file from alma-integrations to scratch directory
9
9
# '@' removes printing interactive session
10
- sftp -b - alma@sftp << EOT
10
+ sftp -oIdentityFile=/etc/secret-volume/id_rsa - b - alma@sftp << EOT
11
11
@get $pkg_file scratch
12
12
EOT
13
13
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ pkg_file=$1
14
14
15
15
# copy file from alma-integrations to scratch directory
16
16
# '@' removes printing interactive session
17
- sftp -b - alma@sftp << EOT
17
+ sftp -oIdentityFile=/etc/secret-volume/id_rsa - b - alma@sftp << EOT
18
18
@get $pkg_file scratch
19
19
EOT
20
20
You can’t perform that action at this time.
0 commit comments