-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize image pushes and integration tests (#5)
* Optimize image pushes and integration tests * Upgrade microk8s * Try with MicroK8s’ registry add-on * Change version * Change version and image * Change version and image * Change version and image * Change version and image * Retry until push * Retry until push * Retry until push * Debug remote * Debug remote with fix * Debug remote with fix * Namespace and image * Update travis and fix env * Update travis and remove debug * Update travis and remove debug * Update travis and remove debug * Address comments
- Loading branch information
1 parent
6606c2c
commit 5aa8a13
Showing
7 changed files
with
28 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
export DOCKER_IMAGE=flinkk8soperator:$(git rev-parse HEAD) | ||
export OPERATOR_IMAGE=127.0.0.1:32000/flinkk8soperator:local | ||
|
||
microk8s.docker build -t $DOCKER_IMAGE . | ||
microk8s.docker tag $DOCKER_IMAGE $OPERATOR_IMAGE | ||
microk8s.docker push 127.0.0.1:32000/flinkk8soperator | ||
|
||
microk8s.start | ||
microk8s.status --wait-ready | ||
microk8s.enable dns | ||
|
||
microk8s.kubectl proxy --port 8001 & | ||
|
||
# Enable our private docker registry | ||
# TODO: remove for open source | ||
microk8s.kubectl create secret docker-registry dockerhub \ | ||
--docker-server=docker.io \ | ||
--docker-username=$DOCKER_REGISTRY_USERNAME \ | ||
--docker-password=$DOCKER_REGISTRY_PASSWORD \ | ||
--docker-email=none | ||
|
||
microk8s.kubectl config view > ~/.kube/config |
This file contains 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
This file contains 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