-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deployments should be triggered from ol-home0 #4318
Labels
Lead: @cclauss
Issues overseen by Chris (Python3 & Dev-ops lead 2019-2021) [managed]
Needs: Triage
This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed]
Comments
cclauss
added
Needs: Triage
This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed]
Lead: @cclauss
Issues overseen by Chris (Python3 & Dev-ops lead 2019-2021) [managed]
labels
Dec 21, 2020
% cat distribute_docker_payload.sh # on #!/bin/bash
FILENAME=${1:-"payload.txt.gz"}
if [[ ! -f $FILENAME ]]; then
echo "$FILENAME does not exist."
exit 1
fi
echo "rsyncing $FILENAME to multiple hosts..."
REMOTE_HOSTS="ol-covers0 ol-web1 ol-web2"
for REMOTE_HOST in $REMOTE_HOSTS
do
echo "Starting rsync to $REMOTE_HOST..."
rsync -a --delete --no-owner --no-group --verbose $FILENAME "$REMOTE_HOST:/home/cclauss/"
echo "Finished rsync to $REMOTE_HOST..."
done |
% cat scripts/update_ol_repos.sh #!/bin/bash
# This deployment script is used to update the core repos on an ol-server node.
# The core Open Library repos are:
# 1. https://github.com/internetarchive/olsystem
# 2. https://git.archive.org/jake/booklending_utils
# 3. https://github.com/internetarchive/openlibrary
# 4. https://github.com/internetarchive/infogami
# This script takes a few environment variables:
# CAUTION: To git clone olsystem, environment variables must be set...
# Set $GITHUB_USERNAME or $USER will be used.
# Set $GITHUB_TOKEN or this script will halt.
if [[ -z ${GITHUB_TOKEN} ]]; then
echo "FATAL: Can not git clone olsystem" ;
exit 1 ;
fi
cd /opt/olsystem && sudo git pull origin master
cd /opt/booklending_utils && sudo git pull origin master
cd /opt/openlibrary && sudo git pull origin master
cd /opt/openlibrary/vendor/infogami && sudo git pull origin master
cd /opt/openlibrary |
Does fabfile.rsync_repo() work as is? Or will we need a script like the one above that we run on each node? |
cdrini
changed the title
Need a fabfile-based deployment script for ol-home0
Deployments should be triggered from ol-home0
Jan 8, 2021
Closing in favor of #4423 because we have too many tracking issues. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Lead: @cclauss
Issues overseen by Chris (Python3 & Dev-ops lead 2019-2021) [managed]
Needs: Triage
This issue needs triage. The team needs to decide who should own it, what to do, by when. [managed]
A subtask of #4060
We need to automate the Docker/Python3-based deployment process on ol-home0. We would like to continue using fabfiles for this work but we must shift from process-based deployments to docker-based deployments. We intend to run these services:
When we do a new deployment, we will need the fabfile to:
docker save
docker load
anddocker up
on each of the machinesDescribe the problem that you'd like solved
Proposal & Constraints
Additional context
Stakeholders
The text was updated successfully, but these errors were encountered: