| # Copyright 2017 The Go Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style |
| # license that can be found in the LICENSE file. |
| gcloud compute instances delete vcs-test --zone=us-central1-a |
| gcloud compute instances create vcs-test --zone=us-central1-a \ |
| --image-project debian-cloud --image-family debian-9 \ |
| --machine-type e2-standard-1 \ |
| --service-account=vcs-test@symbolic-datum-552.iam.gserviceaccount.com \ |
| --scopes cloud-platform \ |
| --tags=allow-ssh,http-server,https-server |
| while sleep 5 && ! gcloud compute ssh vcs-test -- date; do |
| echo 'waiting for machine to respond to ssh...' |
| gcloud compute ssh vcs-test -- sudo -n bash -c \'' |
| chown -R uucp:uucp /home/vcweb |
| apt-get install -y mercurial fossil bzr git apache2 ed subversion libapache2-mod-svn |
| perl -pie 's/80/8888/' /etc/apache2/ports.conf |
| SVNParentPath /home/vcweb/svn |
| <LimitExcept GET PROPFIND OPTIONS REPORT> |
| " >/etc/apache2/mods-enabled/dav_svn.conf |
| systemctl enable apache2.service |