1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-16 03:06:28 +00:00

Update CI workflow for rsync vs S3

This commit is contained in:
David Young
2017-07-29 20:53:06 +12:00
parent 22fbf25cfb
commit 6d10c92803
2 changed files with 20 additions and 4 deletions

View File

@@ -22,15 +22,24 @@ test site:
- echo fake result as a placeholder - echo fake result as a placeholder
deploy dev: deploy dev:
image: garland/docker-s3cmd # image: garland/docker-s3cmd
image: alpine
stage: deploy stage: deploy
environment: production environment: development
except: except:
- master - master
script: script:
- apk add rsync openssh --no-cache
- export LC_ALL=C.UTF-8 - export LC_ALL=C.UTF-8
- export LANG=C.UTF-8 - export LANG=C.UTF-8
- s3cmd --no-mime-magic --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY --acl-public --delete-removed --delete-after --no-ssl --host=$S3HOST --host-bucket='$S3HOSTBUCKET' sync public s3://geeks-cookbook-dev - mkdir .ssh
- chmod 700 .ssh
- echo $SSHKEY > .ssh/id_rsa
- chmod 600 .ssh/id_rsa
- rsync -avr public $SSHUSER@$SSHHOST:$SSHPATH/geeks-cookbook-dev
# - export LC_ALL=C.UTF-8
# - export LANG=C.UTF-8
# - s3cmd --no-mime-magic --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY --acl-public --delete-removed --delete-after --no-ssl --host=$S3HOST --host-bucket='$S3HOSTBUCKET' sync public s3://geeks-cookbook-dev
deploy prod: deploy prod:
image: garland/docker-s3cmd image: garland/docker-s3cmd

View File

@@ -53,7 +53,7 @@ docker run -d --net=host \
ceph/daemon mon ceph/daemon mon
``` ```
Now **copy** the contents of /etc/ceph on this first node to the remaining nodes, and **then** run the docker command above on each remaining node. You'll end up with a cluster with 3 monitors (odd number is required for quorum, same as Docker Swarm), and no OSDs (yet) Now **copy** the contents of /etc/ceph on this first node to the remaining nodes, and **then** run the docker command above (_customizing MON_IP as you go_) on each remaining node. You'll end up with a cluster with 3 monitors (odd number is required for quorum, same as Docker Swarm), and no OSDs (yet)
### Setup OSDs ### Setup OSDs
@@ -162,6 +162,13 @@ name=dockerswarm\
0 2" >> /etc/fstab 0 2" >> /etc/fstab
mount -a mount -a
``` ```
### Install docker-volume plugin
Upstream bug for docker-latest reported at https://bugs.centos.org/view.php?id=13609
And the alpine fault:
https://github.com/gliderlabs/docker-alpine/issues/317
## Serving ## Serving