Skip to content
Permalink
Browse files

Fix deployment script. Use gcr.io consistently (#1347)

* us.gcr -> gcr

* Remove pushes for trillian images
  • Loading branch information...
gdbelvin committed Aug 23, 2019
1 parent 25f4fc3 commit b7edc8fb4eab33a7cc2441ea7212023ed4c55925
@@ -27,7 +27,7 @@ spec:
value: "yes"
- name: MYSQL_USER
value: test
image: us.gcr.io/key-transparency/db
image: gcr.io/key-transparency/db
name: db
ports:
- containerPort: 3306
@@ -14,7 +14,7 @@ spec:
- -k
- https://sequencer:8080/v1/directories
- -d{"directory_id":"default","min_interval":"1s","max_interval":"60s"}
image: us.gcr.io/key-transparency/init:latest
image: gcr.io/key-transparency/init:latest
name: init
resources: {}
restartPolicy: OnFailure
@@ -25,7 +25,7 @@ spec:
"--http_endpoint=0.0.0.0:8091",
"--alsologtostderr"
]
image: us.gcr.io/key-transparency/log-server:latest
image: gcr.io/key-transparency/log-server:latest
livenessProbe:
httpGet:
path: /metrics
@@ -29,7 +29,7 @@ spec:
"--force_master=true",
"--alsologtostderr"
]
image: us.gcr.io/key-transparency/log-signer:latest
image: gcr.io/key-transparency/log-signer:latest
livenessProbe:
httpGet:
path: /metrics
@@ -25,7 +25,7 @@ spec:
"--http_endpoint=0.0.0.0:8091",
"--alsologtostderr"
]
image: us.gcr.io/key-transparency/map-server:latest
image: gcr.io/key-transparency/map-server:latest
livenessProbe:
httpGet:
path: /metrics
@@ -30,7 +30,7 @@ spec:
- --password=towel
- --alsologtostderr
- --v=3
image: us.gcr.io/key-transparency/keytransparency-monitor:latest
image: gcr.io/key-transparency/keytransparency-monitor:latest
name: monitor
ports:
- containerPort: 8099
@@ -18,7 +18,7 @@ spec:
io.kompose.service: prometheus
spec:
containers:
- image: us.gcr.io/key-transparency/prometheus:latest
- image: gcr.io/key-transparency/prometheus:latest
name: prometheus
ports:
- containerPort: 9090
@@ -27,7 +27,7 @@ spec:
- --map-url=map-server:8090
- --alsologtostderr
- --v=5
image: us.gcr.io/key-transparency/keytransparency-sequencer:latest
image: gcr.io/key-transparency/keytransparency-sequencer:latest
livenessProbe:
httpGet:
path: /metrics
@@ -30,7 +30,7 @@ spec:
- --auth-type=insecure-fake
- --alsologtostderr
- --v=5
image: us.gcr.io/key-transparency/keytransparency-server:latest
image: gcr.io/key-transparency/keytransparency-server:latest
livenessProbe:
httpGet:
path: /metrics
@@ -50,21 +50,18 @@ echo "Pushing docker images..."
docker-compose push

echo "Tagging docker images..."
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/prometheus:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/prometheus:latest
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/log-server:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/log-server:latest
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/log-signer:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/log-signer:latest
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/map-server:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/map-server:latest
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/keytransparency-server:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/keytransparency-server:latest
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/keytransparency-sequencer:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/keytransparency-sequencer:latest
gcloud --quiet container images add-tag us.gcr.io/${PROJECT_NAME_CI}/keytransparency-monitor:${TRAVIS_COMMIT} us.gcr.io/${PROJECT_NAME_CI}/keytransparency-monitor:latest
gcloud --quiet container images add-tag gcr.io/${PROJECT_NAME_CI}/prometheus:${TRAVIS_COMMIT} gcr.io/${PROJECT_NAME_CI}/prometheus:latest
gcloud --quiet container images add-tag gcr.io/${PROJECT_NAME_CI}/keytransparency-server:${TRAVIS_COMMIT} gcr.io/${PROJECT_NAME_CI}/keytransparency-server:latest
gcloud --quiet container images add-tag gcr.io/${PROJECT_NAME_CI}/keytransparency-sequencer:${TRAVIS_COMMIT} gcr.io/${PROJECT_NAME_CI}/keytransparency-sequencer:latest
gcloud --quiet container images add-tag gcr.io/${PROJECT_NAME_CI}/keytransparency-monitor:${TRAVIS_COMMIT} gcr.io/${PROJECT_NAME_CI}/keytransparency-monitor:latest


echo "Updating jobs..."
kubectl apply -f deploy/kubernetes/.
kubectl set image deploy/prometheus prometheus=us.gcr.io/${PROJECT_NAME_CI}/prometheus:${TRAVIS_COMMIT}
kubectl set image deploy/log-server log-server=us.gcr.io/${PROJECT_NAME_CI}/log-server:${TRAVIS_COMMIT}
kubectl set image deploy/log-signer log-signer=us.gcr.io/${PROJECT_NAME_CI}/log-signer:${TRAVIS_COMMIT}
kubectl set image deploy/map-server map-server=us.gcr.io/${PROJECT_NAME_CI}/map-server:${TRAVIS_COMMIT}
kubectl set image deploy/server server=us.gcr.io/${PROJECT_NAME_CI}/keytransparency-server:${TRAVIS_COMMIT}
kubectl set image deploy/sequencer sequencer=us.gcr.io/${PROJECT_NAME_CI}/keytransparency-sequencer:${TRAVIS_COMMIT}
kubectl set image deploy/monitor monitor=us.gcr.io/${PROJECT_NAME_CI}/keytransparency-monitor:${TRAVIS_COMMIT}
kubectl set image deploy/prometheus prometheus=gcr.io/${PROJECT_NAME_CI}/prometheus:${TRAVIS_COMMIT}
kubectl set image deploy/log-server log-server=gcr.io/${PROJECT_NAME_CI}/log-server:${TRAVIS_COMMIT}
kubectl set image deploy/log-signer log-signer=gcr.io/${PROJECT_NAME_CI}/log-signer:${TRAVIS_COMMIT}
kubectl set image deploy/map-server map-server=gcr.io/${PROJECT_NAME_CI}/map-server:${TRAVIS_COMMIT}
kubectl set image deploy/server server=gcr.io/${PROJECT_NAME_CI}/keytransparency-server:${TRAVIS_COMMIT}
kubectl set image deploy/sequencer sequencer=gcr.io/${PROJECT_NAME_CI}/keytransparency-sequencer:${TRAVIS_COMMIT}
kubectl set image deploy/monitor monitor=gcr.io/${PROJECT_NAME_CI}/keytransparency-monitor:${TRAVIS_COMMIT}

0 comments on commit b7edc8f

Please sign in to comment.
You can’t perform that action at this time.