46a79c3265af0c00ab66616f77248d72346a0376
[releng.git] / jjb / pharos / shell / deploy-dashboard.sh
1 #!/bin/bash -eux
2 ##############################################################################
3 # Copyright (c) 2018 Linux Foundation and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10 cp $HOME/config.env $WORKSPACE/dashboard
11 cd $WORKSPACE/dashboard
12
13 docker-compose pull
14 docker-compose up -d
15
16 # Copy JIRA keys into web container
17 WEB_CONTAINER="$(docker ps --filter 'name=dg01' -q)"
18 docker cp $HOME/rsa.pub $WEB_CONTAINER:/pharos_dashboard/account/
19 docker cp $HOME/rsa.pem $WEB_CONTAINER:/pharos_dashboard/account/