Gut all the elation crap

This commit is contained in:
Colin Powell
2019-04-29 22:28:48 -04:00
parent b065b14e61
commit 3c5c73aea0
22 changed files with 3 additions and 90 deletions

View File

@ -1,6 +1,4 @@
function checkmail
notmuch search --output=files tag:deleted | tr '\n' '\0' | xargs -0 -L 1 rm
notmuch new
mbsync -a
notmuch new
end

View File

@ -1,3 +0,0 @@
function datastage-admin
ssh colinpowell@172.16.10.46
end

View File

@ -1,8 +0,0 @@
function db_1_get_baseline
docker rm -f old_baseline
docker rm -f old_es_baseline
docker pull 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-es:latest
docker pull 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-db:latest
docker run -d --rm --name old_baseline 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-db:latest
docker run -d --rm --name old_es_baseline 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-es:latest
end

View File

@ -1,6 +0,0 @@
function db_2_build_new_images
docker build -t elation/hippo-db:new_baseline -f Dockerfile-DB .
docker run -d --rm --name new_baseline elation/hippo-db:new_baseline
docker build -t elation/hippo-es:new_baseline -f Dockerfile-ES .
docker run -d --rm --name new_es_baseline elation/hippo-es:new_baseline
end

View File

@ -1,4 +0,0 @@
function db_3_copy_old_to_new
docker exec -i new_baseline mysql -e 'CREATE DATABASE el8_dev'
docker exec old_baseline mysqldump el8_dev | docker exec -i new_baseline mysql el8_dev
end

View File

@ -1,12 +0,0 @@
function db_4_copy_es_index
docker pull taskrabbit/elasticsearch-dump
docker run --link old_es_baseline --link new_es_baseline --rm -ti taskrabbit/elasticsearch-dump \
--input=http://old_es_baseline:9200/haystack \
--output=http://new_es_baseline:9200/haystack \
--type=mapping
docker run --link old_es_baseline --link new_es_baseline --rm -ti taskrabbit/elasticsearch-dump \
--input=http://old_es_baseline:9200/haystack \
--output=http://new_es_baseline:9200/haystack \
--limit 5000 \
--type=data
end

View File

@ -1,6 +0,0 @@
function db_5_push_new_images
docker commit new_baseline 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-db:latest
docker push 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-db:latest
docker commit new_es_baseline 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-es:latest
docker push 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo-es:latest
end

View File

@ -1,3 +0,0 @@
function db_dj_manage_new_db
docker run -i -t --link old_es_baseline:elasticsearch -w /opt/hippo/elation --link old_baseline:mysql -e HAYSTACK_HOST=elasticsearch -e DJANGO_DATABASE_HOST=mysql 570488747013.dkr.ecr.us-west-1.amazonaws.com/elation/hippo python manage.py $argv
end

View File

@ -1,3 +0,0 @@
function el8aws
aws ecr get-login --no-include-email --region us-west-1 | source
end

View File

@ -1,5 +0,0 @@
function el8clog
pushd ~/devel/elationemr/hippo/
docker-compose logs --tail=50 -f celery
popd
end

View File

@ -1,5 +0,0 @@
function el8down
pushd ~/devel/elationemr/hippo
docker-compose down
popd
end

View File

@ -1,5 +0,0 @@
function el8up
pushd ~/devel/elationemr/hippo
docker-compose exec hippo bash
popd
end

View File

@ -1,3 +0,0 @@
function evpn
sudo openvpn --config ~/Nextcloud/vpns/elation.ovpn
end

View File

@ -1,4 +0,0 @@
# Defined in /Users/colinpowell/.config/fish/functions/pophealth-admin.fish @ line 1
function pophealth-admin
ssh colinpowell@10.202.2.29
end

View File

@ -1,3 +0,0 @@
function pophealth-celery
ssh colinpowell@10.202.14.112
end

View File

@ -1,3 +0,0 @@
function prod-admin
ssh colinpowell@172.16.10.116
end

View File

@ -1,3 +0,0 @@
function pvpn
sudo openvpn --config ~/Nextcloud/vpns/protonvpn.ovpn
end

View File

@ -1,3 +0,0 @@
function stage-admin
ssh colinpowell@172.17.10.48
end

View File

@ -1,3 +0,0 @@
function stage-pophealth-admin
ssh colinpowell@10.202.2.234
end

View File

@ -1,3 +0,0 @@
function stagewest-admin
ssh colinpowell@10.201.2.166
end

View File

@ -1,3 +0,0 @@
function stagewest-worker
ssh 10.201.15.199
end

View File

@ -0,0 +1,3 @@
function sysu
systemctl --user $argv
end