finished remote deploy script

This commit is contained in:
Jonas Heinrich 2020-04-11 11:40:53 +02:00
parent c6fc4329a8
commit 4eb19a4945
5 changed files with 34 additions and 14 deletions

View file

@ -1,7 +1,30 @@
docker_deploy: docker_deploy:
# Need to fix MaxSessions in remote ssh daemon https://github.com/docker/compose/issues/6463
# Disable nftables on remote host docker run --rm -it \
DOCKER_HOST="ssh://playground.pi" docker-compose -f wordpress.yml up -v /tmp/backup:/backup -v /var/lib/docker:/docker \
-v $(shell pwd)/kit:/docker/volumes/web-wordpress-kit_wordpress/_data/wp-content/themes/kit \
alpine:edge tar cfz /backup/volumes.tgz /docker/volumes/
rsync --progress /tmp/backup/volumes.tgz playground.pi:/tmp/
ssh playground.pi tar xvf /tmp/volumes.tgz -C /tmp
ssh playground.pi sed -i 81idefine\\\(\\\'WP_SITEURL\\\',\\\'https://beta.saai.digital\\\'\\\)\\\;\\\\ndefine\\\(\\\'WP_HOME\\\',\\\'https://beta.saai.digital\\\'\\\)\\\; /tmp/docker/volumes/web-wordpress-kit_wordpress/_data/wp-config.php
-DOCKER_HOST="ssh://playground.pi" docker stop web-wordpress-kit_db_1 web-wordpress-kit_wordpress_1
-DOCKER_HOST="ssh://playground.pi" docker rm web-wordpress-kit_db_1 web-wordpress-kit_wordpress_1
-DOCKER_HOST="ssh://playground.pi" docker volume rm web-wordpress-kit_db web-wordpress-kit_wordpress
DOCKER_HOST="ssh://playground.pi" docker run --rm -it \
-v /var/lib/docker:/docker \
-v /tmp/docker/volumes:/volume-backup \
alpine:edge cp -r /volume-backup/. /docker/volumes/
# # Need to fix MaxSessions in remote ssh daemon https://github.com/docker/compose/issues/6463
# # Disable nftables on remote host
cp wordpress.yml /tmp/wordpress.yml
sed -e '/kit/ s/^#*/#/' -i /tmp/wordpress.yml
DOCKER_HOST="ssh://playground.pi" docker-compose -p web-wordpress-kit -f /tmp/wordpress.yml create
DOCKER_HOST="ssh://playground.pi" docker-compose -p web-wordpress-kit -f /tmp/wordpress.yml start
docker_up: docker_up:
docker-compose -f wordpress.yml up docker-compose -f wordpress.yml up

View file

@ -5,10 +5,8 @@ Fork of the experimental KIT theme from kit-ausbildung.de, adapted to Wordpres.
## Features ## Features
- [x] Browse hundreds of radio stations world wide and play them directly - [x] Responsive interface, mobile friendly
- [x] Save stations to your favorites list - [ ] Support for internationalization
- [x] Smooth playback with audio transitions
- [x] Explore new stations in the category section
## Maintainers ## Maintainers
* [Jonas Heinrich](https://git.scc.kit.edu/ubezi) * [Jonas Heinrich](https://git.scc.kit.edu/ubezi)

View file

@ -49,14 +49,14 @@
} }
.meta-footer-contact-entity .phone::before { .meta-footer-contact-entity .phone::before {
content: url(img/phone-grey.svg); content: url(../img/phone-grey.svg);
top: 0; top: 0;
width: 0.94444rem; width: 0.94444rem;
height: 1.11111rem; height: 1.11111rem;
} }
.meta-footer-contact-entity .email::before { .meta-footer-contact-entity .email::before {
content: url(img/mail-grey.svg); content: url(../img/mail-grey.svg);
top: -2px; top: -2px;
width: 1.11111rem; width: 1.11111rem;
height: 0.77778rem; height: 0.77778rem;
@ -310,6 +310,7 @@
.footer-bottom .content-wrap { .footer-bottom .content-wrap {
height: 100%; height: 100%;
display: flex;
} }
.footer-bottom .content-wrap ul { .footer-bottom .content-wrap ul {

View file

@ -88,9 +88,6 @@
</div><!--googleon: all--> </div><!--googleon: all-->
</div> </div>
<header> <header>
<div class="content-wrap"> <div class="content-wrap">

View file

@ -6,7 +6,8 @@
'container' => 'false' 'container' => 'false'
) ); ) );
?> ?>
</div>
lol <div class="lang-select">
</div> </div>
</section> </section>