1
0
Fork 0

added gcloud to windows playbook

This commit is contained in:
Christian Kühnel 2019-11-04 14:48:00 +01:00
parent 11f4c9c525
commit c05b7091c8

View file

@ -62,7 +62,8 @@ These are the steps to set up the build server on a clean infrastructure:
If you want to build/update/test docker container for Windows, you need to do this on a Windows machine. Here are the instructions to set up such a machine on GCP. If you want to build/update/test docker container for Windows, you need to do this on a Windows machine. Here are the instructions to set up such a machine on GCP.
General hints: General hints:
* Do *not ever ever* use paths with white spaces in them. * Use a GCP instance with "presistent SSD". This is much faster the the "persistent Disk".
* Try to avoid paths with white spaces in them.
* You need to [configure Internet Explorer to allow downloads](https://improveandrepeat.com/2018/03/internet-explorer-on-windows-server-enable-file-downloads/). * You need to [configure Internet Explorer to allow downloads](https://improveandrepeat.com/2018/03/internet-explorer-on-windows-server-enable-file-downloads/).
* Install Chrome, as Internet Explorer is a bit outdated. * Install Chrome, as Internet Explorer is a bit outdated.
* Install a nice IDE to edit Dockerfiles and scripts. [VS Code](https://code.visualstudio.com/Download) is a good option. * Install a nice IDE to edit Dockerfiles and scripts. [VS Code](https://code.visualstudio.com/Download) is a good option.
@ -78,5 +79,7 @@ General hints:
* You will need a DockerHub account to download the installer. * You will need a DockerHub account to download the installer.
* Select "use Windows containers" during installation. * Select "use Windows containers" during installation.
* Start the "Docker Desktop" application, it will set up the required services for you. * Start the "Docker Desktop" application, it will set up the required services for you.
6. Install [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/).
7. Install [gcloud](https://cloud.google.com/sdk/docs/quickstart-windows) and set it up according to the instructions. Then run `gcloud auth configure-docker` to authorize docker to push images.
Check your installation by running "docker build ." in the `containers/agent_windows` folder. Check your installation by running "docker build ." in the `containers/agent_windows` folder.