VPN connection to vSphere lab

This commit is contained in:
Michael Kuzmin 2017-12-12 13:33:16 +03:00
parent 707039eb26
commit e202ad4166
3 changed files with 26 additions and 2 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ packer-builder-vsphere*
bin/
test*.json
crash.log
vpn/

View File

@ -1,6 +1,16 @@
build:
version: '2'
services:
build:
image: jetbrainsinfra/golang:1.9.4
volumes:
- .:/go/src/github.com/jetbrains-infra/packer-builder-vsphere
- .:/go/src/github.com/jetbrains-infra/packer-builder-vsphere
working_dir: /go/src/github.com/jetbrains-infra/packer-builder-vsphere
command: ./build.sh
test:
image: jetbrainsinfra/golang:1.9.4
volumes:
- .:/go/src/github.com/jetbrains-infra/packer-builder-vsphere
working_dir: /go/src/github.com/jetbrains-infra/packer-builder-vsphere
# network_mode: "container:vpn"
command: ./test.sh

13
teamcity-services.yml Normal file
View File

@ -0,0 +1,13 @@
version: '2'
services:
vpn:
container_name: vpn
image: jetbrainsinfra/openvpn
volumes:
- ./vpn:/vpn:ro
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
dns: 10.0.0.1
command: --config /vpn/jetbrains-vsphere-lab.ovpn --script-security 2 --auth-user-pass /vpn/creds.txt