VPN connection to vSphere lab
This commit is contained in:
parent
707039eb26
commit
e202ad4166
|
@ -5,3 +5,4 @@ packer-builder-vsphere*
|
||||||
bin/
|
bin/
|
||||||
test*.json
|
test*.json
|
||||||
crash.log
|
crash.log
|
||||||
|
vpn/
|
||||||
|
|
|
@ -1,6 +1,16 @@
|
||||||
build:
|
version: '2'
|
||||||
|
services:
|
||||||
|
build:
|
||||||
image: jetbrainsinfra/golang:1.9.4
|
image: jetbrainsinfra/golang:1.9.4
|
||||||
volumes:
|
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
|
working_dir: /go/src/github.com/jetbrains-infra/packer-builder-vsphere
|
||||||
command: ./build.sh
|
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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue