Skip to content

Commit

Permalink
Bypass computed canada default config
Browse files Browse the repository at this point in the history
  • Loading branch information
poquirion committed Sep 5, 2019
1 parent 41cf16c commit 9cec12d
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 15 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ RUN wget http://ccl.cse.nd.edu/software/files/cctools-${CCTOOLS_VERSION}-x86_64-
&& tar xvf cctools-${CCTOOLS_VERSION}-x86_64-centos7.tar.gz && mv cctools-${CCTOOLS_VERSION}-x86_64-centos7 \
/opt/cctools && rm cctools-${CCTOOLS_VERSION}-x86_64-centos7.tar.gz

ADD cvmfs-config.computecanada.ca.pub /etc/cvmfs/keys/.
RUN mkdir /etc/parrot
ADD keys /etc/parrot/keys
RUN chmod 4755 /bin/ping
RUN mkdir /etc/parrot
# adding local config to containe. These will overwrite the cvmfs-config.computecanada ones
ADD config.d /etc/parrot/.
ADD config.d /etc/parrot/config.d
RUN mkdir /cvmfs-cache && chmod 777 /cvmfs-cache

# module
Expand Down
4 changes: 2 additions & 2 deletions config.d/ref.mugqic.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CVMFS_SERVER_URL="http://cvmfs-s0-genomic.vhost38.genap.ca/cvmfs/@fqrn@"
CVMFS_KEYS_DIR=/tmp/cvmfs-config.computecanada.ca/etc/cvmfs/keys/mugqic
CVMFS_SERVER_URL="http://cvmfs-1-west-c3g.computecanada.ca:8000/cvmfs/@fqrn@;http://cvmfs-s0-genomic.vhost38.genap.ca/cvmfs/@fqrn@"
CVMFS_KEYS_DIR=/etc/cvmfs/keys/mugqic
4 changes: 2 additions & 2 deletions config.d/soft.mugqic.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
CVMFS_SERVER_URL="http://cvmfs-s0-genomic.vhost38.genap.ca/cvmfs/@fqrn@"
CVMFS_KEYS_DIR=/tmp/cvmfs-config.computecanada.ca/etc/cvmfs/keys/mugqic
CVMFS_SERVER_URL="http://cvmfs-1-west-c3g.computecanada.ca:8000/cvmfs/@fqrn@;http://cvmfs-s0-genomic.vhost38.genap.ca/cvmfs/@fqrn@"
CVMFS_KEYS_DIR=/etc/cvmfs/keys/mugqic
11 changes: 3 additions & 8 deletions init_genpipes
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
# It also loads the lmod software to load mugqic modules

export PARROT_ALLOW_SWITCHING_CVMFS_REPOSITORIES=yes
CVMFS_CONFIG_CC="cvmfs-s1-beluga.computecanada.ca:8000/cvmfs/cvmfs-config.computecanada.ca,pubkey=/etc/cvmfs/keys/cvmfs-config.computecanada.ca.pub;cvmfs-s1-arbutus.computecanada.ca:8000/cvmfs/cvmfs-config.computecanada.ca,pubkey=/etc/cvmfs/keys/cvmfs-config.computecanada.ca.pub;cvmfs-s1-east.computecanada.ca:8000/cvmfs/cvmfs-config.computecanada.ca,pubkey=/etc/cvmfs/keys/cvmfs-config.computecanada.ca.pub"
export PARROT_CVMFS_REPO="${CVMFS_CONFIG_CC}"
export HTTP_PROXY='DIRECT'
export HTTP_PROXY='DIRECT'

LOCAL_CONFIG_PATH=/etc/parrot
PARROT_CVMFS_ALIEN_CACHE=/tmp/parrot.${UID}
Expand Down Expand Up @@ -84,12 +82,9 @@ if [ $# -gt 0 ] ; then
chmod 755 ${genpipe_script}
echo $@ > ${genpipe_script}
fi

# copy the compute.canada config locally, this will let the other repo be mounted.
/opt/cctools/bin/parrot_run $QUIET cp -r /cvmfs/cvmfs-config.computecanada.ca /tmp/. 2>/dev/null

CONFIG_PATH=/tmp/cvmfs-config.computecanada.ca/etc/cvmfs/config.d
KEY_PATH=/tmp/cvmfs-config.computecanada.ca/etc/cvmfs/keys/mugqic
CONFIG_PATH=/etc/parrot/config.d
KEY_PATH=/etc/parrot/keys

cvmfs_to_parrot() {
repo_name=$1
Expand Down
File renamed without changes.
9 changes: 9 additions & 0 deletions keys/ref.mugqic.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4lrXZ+70U+0Gh0rL6HX3
UUuArl7XqvcHiMQViSiXW7/OpjrbyN806lr3DWrCoMsQ6qA9KYWNke56fIfpQgXO
RhaMKQnsfYbgIf7Ei1nz7XCjs1Pm0uDF5RWQrGLmTUmdd5MsEbB6/ZfsS0sspInK
aRW8XTi1YcRVTL1vEWm6gE75V4gplUNPpMXzBQKGqAaXrG9q7yVA2A19YSj8FqI/
TaQQN1mKoqKECgLzxG7ng3YKafUt8BcsE+kC7TThdnNRCq/E31Bz0sc8RIk6UCEO
WcEhx7+HKAoMejFryO9bO7vEsbh9rkXmtPUwKz/PikX5hf2h2BV9pmKqyl2HusvG
wQIDAQAB
-----END PUBLIC KEY-----
9 changes: 9 additions & 0 deletions keys/soft.mugqic.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm64Ql1uLgxomMkiLb4zq
xh4ieF3Ivr6R4CWxy2LGY8DvxohtDgTqnnj4lSeL3vROuKJ1hARgcggDSjpbDb86
qTb/dNwfOIwJ6OBR/X50RcpM+dB22NhH1Tc1imSjdYBvOVejf7BqfODnMjyRyK6u
wQM6JYjKcEpTQyjnRAftzZUawvXaLZuqn9gVzfS4zk+eeM9FvCkcpFQIbkNvZn5j
r05R1nBj7LTQ8U+KW/Vzj/x8aP6VjJkq3/anS+WU4AFls+6zd01W6KNw0wiQv9C2
2r6vQ3egAdwrjXTNfJJsX+7e0egN+TvDJMRuDq7Sn+vivQ7XqJN0+7YhRkG47TpL
4wIDAQAB
-----END PUBLIC KEY-----

0 comments on commit 9cec12d

Please sign in to comment.