mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-21 23:41:41 -04:00
VPN connection to vSphere lab
This commit is contained in:
@@ -5,3 +5,4 @@ packer-builder-vsphere*
|
||||
bin/
|
||||
test*.json
|
||||
crash.log
|
||||
vpn/
|
||||
|
||||
+12
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user