This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vault write auth/kubernetes/config \ | |
kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \ | |
token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \ | |
issuer="https://kubernetes.default.svc.cluster.local" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vault write auth/kubernetes/config \ | |
kubernetes_host="https://$KUBERNETES_PORT_443_TCP_ADDR:443" \ | |
token_reviewer_jwt="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt \ | |
issuer="https://kubernetes.default.svc.cluster.local" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
agent none | |
stages{ | |
stage("build"){ | |
when{ | |
changeset "**/worker/**" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
apt-get update | |
apt-get install -yq \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('deploy to dev'){ | |
agent any | |
when{ | |
branch 'master' | |
} | |
steps{ | |
echo 'Deploy instavote app with docker compose' | |
sh 'docker-compose up -d' | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
vote: | |
image: xxxxx/vote:latest | |
ports: | |
- 5000:80 | |
links: | |
- redis:redis | |
redis: | |
image: redis:alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
vote: | |
image: xxxxx/vote:latest | |
ports: | |
- 5000:80 | |
result: | |
image: xxxxx/result:latest | |
ports: | |
- 5001:80 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
vote: | |
image: xxxxx/vote:latest | |
ports: | |
- 5000:80 | |
redis: | |
image: redis:alpine | |
db: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volumes: | |
db-data: | |
networks: | |
instavote: | |
driver: bridge | |
services: | |
vote: | |
image: xxxxx/vote:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volumes: | |
db-data: | |
networks: | |
instavote: | |
driver: bridge | |
services: | |
vote: | |
image: xxxxx/vote:latest |
NewerOlder