diff --git a/installer/Gopkg.lock b/installer/Gopkg.lock
index 6c41b3f4bc..6e16f83456 100644
--- a/installer/Gopkg.lock
+++ b/installer/Gopkg.lock
@@ -2,9 +2,13 @@
[[projects]]
- branch = "master"
name = "github.com/GoASTScanner/gas"
- packages = [".","core","output","rules"]
+ packages = [
+ ".",
+ "core",
+ "output",
+ "rules"
+ ]
revision = "6de76c92610b387855cdfdd53c99b149928916f7"
[[projects]]
@@ -23,8 +27,8 @@
[[projects]]
name = "github.com/Sirupsen/logrus"
packages = ["."]
- revision = "d26492970760ca5d33129d2d799e34be5c4782eb"
- version = "v0.11.0"
+ revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
+ version = "v1.0.5"
[[projects]]
branch = "master"
@@ -38,10 +42,17 @@
revision = "2f1ce7a837dcb8da3ec595b1dac9d0632f0f99e8"
version = "v1.3.1"
+[[projects]]
+ name = "github.com/cenkalti/backoff"
+ packages = ["."]
+ revision = "2ea60e5f094469f9e65adb9cd103795b73ae743e"
+ version = "v2.0.0"
+
[[projects]]
name = "github.com/coreos/go-systemd"
packages = ["daemon"]
- revision = "24036eb3df68550d24a2736c5d013f4e83366866"
+ revision = "39ca1b05acc7ad1220e09f133283b8859a8b71ab"
+ version = "v17"
[[projects]]
name = "github.com/davecgh/go-spew"
@@ -57,49 +68,63 @@
[[projects]]
name = "github.com/docker/docker"
- packages = ["pkg/ioutils","pkg/longpath","pkg/progress"]
+ packages = [
+ "pkg/ioutils",
+ "pkg/longpath",
+ "pkg/progress",
+ "pkg/pubsub"
+ ]
revision = "092cba3727bb9b4a2f0e922cd6c0f93ea270e363"
version = "v1.13.1"
[[projects]]
name = "github.com/docker/go-units"
packages = ["."]
- revision = "0dadbb0345b35ec7ef35e228dabb8de89a65bf52"
- version = "v0.3.2"
+ revision = "47565b4f722fb6ceae66b95f853feed578a4a51c"
+ version = "v0.3.3"
[[projects]]
+ branch = "master"
name = "github.com/dustin/go-humanize"
packages = ["."]
- revision = "259d2a102b871d17f30e3cd9881a642961a1e486"
+ revision = "02af3965c54e8cacf948b97fef38925c4120652c"
[[projects]]
name = "github.com/gizak/termui"
packages = ["."]
- revision = "798ffb9cbbe4073ef1f88e6069ca4a2c6aa6676b"
+ revision = "24acd523c756fd9728824cdfac66aad9d8982fb7"
+ version = "v2.2.0"
[[projects]]
- branch = "v2"
name = "github.com/go-yaml/yaml"
packages = ["."]
- revision = "eb3733d160e74a9c7e442f435eb3bea458e1d19f"
+ revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183"
+ version = "v2.2.1"
[[projects]]
name = "github.com/golang/dep"
- packages = [".","internal/fs","internal/gps","internal/gps/internal/pb","internal/gps/paths","internal/gps/pkgtree"]
+ packages = [
+ ".",
+ "internal/fs",
+ "internal/gps",
+ "internal/gps/internal/pb",
+ "internal/gps/paths",
+ "internal/gps/pkgtree"
+ ]
revision = "8ddfc8afb2d520d41997ebddd921b52152706c01"
version = "v0.3.2"
[[projects]]
branch = "master"
name = "github.com/golang/lint"
- packages = [".","golint"]
- revision = "6aaf7c34af0f4c36a57e0c429bace4d706d8e931"
+ packages = ["golint"]
+ revision = "470b6b0bb3005eda157f0275e2e4895055396a81"
[[projects]]
branch = "master"
name = "github.com/golang/protobuf"
packages = ["proto"]
- revision = "1643683e1b54a9e88ad26d98f81400c8c9d9f4f9"
+ revision = "927b65914520a8b7d44f5c9057611cfec6b2e2d0"
[[projects]]
name = "github.com/google/uuid"
@@ -114,26 +139,28 @@
version = "v0.2.0"
[[projects]]
- branch = "master"
name = "github.com/kr/pretty"
packages = ["."]
- revision = "cfb55aafdaf3ec08f0db22699ab822c50091b1c4"
+ revision = "73f6ac0b30a98e433b289500d779f50c1a6f0712"
+ version = "v0.1.0"
[[projects]]
- branch = "master"
name = "github.com/kr/text"
packages = ["."]
- revision = "7cafcd837844e784b526369c9bce262804aebc60"
+ revision = "e2ffdb16a802fe2bb95e2e35ff34f0e53aeef34f"
+ version = "v0.1.0"
[[projects]]
name = "github.com/maruel/panicparse"
packages = ["stack"]
- revision = "25bcac0d793cf4109483505a0d66e066a3a90a80"
+ revision = "785840568bdc7faa0dfb1cd6c643207f03271f64"
+ version = "v1.1.1"
[[projects]]
name = "github.com/mattn/go-runewidth"
packages = ["."]
- revision = "14207d285c6c197daabb5c9793d63e7af9ab2d50"
+ revision = "9e777a8366cce605130a531d2cd6363d07ad7317"
+ version = "v0.0.2"
[[projects]]
branch = "master"
@@ -143,7 +170,17 @@
[[projects]]
name = "github.com/nbutton23/zxcvbn-go"
- packages = [".","adjacency","data","entropy","frequency","match","matching","scoring","utils/math"]
+ packages = [
+ ".",
+ "adjacency",
+ "data",
+ "entropy",
+ "frequency",
+ "match",
+ "matching",
+ "scoring",
+ "utils/math"
+ ]
revision = "eafdab6b0663b4b528c35975c8b0e78be6e25261"
version = "v0.1"
@@ -154,15 +191,16 @@
revision = "6a197d5ea61168f2ac821de2b7f011b250904900"
[[projects]]
+ branch = "master"
name = "github.com/nsf/termbox-go"
packages = ["."]
- revision = "91bae1bb5fa9ee504905ecbe7043fa30e92feaa3"
+ revision = "21a4d435a86280a2927985fd6296de56cbce453e"
[[projects]]
branch = "master"
name = "github.com/pelletier/go-toml"
packages = ["."]
- revision = "4e9e0ee19b60b13eb79915933f44d8ed5f268bdd"
+ revision = "66540cf1fcd2c3aee6f6787dfa32a6ae9a870f12"
[[projects]]
name = "github.com/pkg/errors"
@@ -191,75 +229,174 @@
[[projects]]
name = "github.com/spf13/pflag"
packages = ["."]
- revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
- version = "v1.0.0"
+ revision = "583c0c0531f06d5278b7d917446061adc344b5cd"
+ version = "v1.0.1"
[[projects]]
name = "github.com/stretchr/testify"
- packages = ["assert"]
- revision = "69483b4bd14f5845b5a1e55bca19e954e827f1d0"
- version = "v1.1.4"
+ packages = [
+ "assert",
+ "require"
+ ]
+ revision = "12b6f73e6084dad08a7c6e575284b177ecafbc71"
+ version = "v1.2.1"
[[projects]]
- branch = "master"
name = "github.com/vmware/govmomi"
- packages = [".","find","govc/cli","govc/flags","govc/host/esxcli","internal","license","list","nfc","object","ovf","property","session","task","toolbox","toolbox/hgfs","toolbox/vix","vim25","vim25/debug","vim25/methods","vim25/mo","vim25/progress","vim25/soap","vim25/types","vim25/xml"]
- revision = "3619c1d9adde46bd8f0c0ac02de1316caec90cdb"
+ packages = [
+ ".",
+ "find",
+ "govc/cli",
+ "govc/flags",
+ "govc/host/esxcli",
+ "internal",
+ "license",
+ "list",
+ "nfc",
+ "object",
+ "ovf",
+ "performance",
+ "property",
+ "session",
+ "task",
+ "toolbox",
+ "toolbox/hgfs",
+ "toolbox/vix",
+ "view",
+ "vim25",
+ "vim25/debug",
+ "vim25/methods",
+ "vim25/mo",
+ "vim25/progress",
+ "vim25/soap",
+ "vim25/types",
+ "vim25/xml"
+ ]
+ revision = "123ed177021588bac57b5c87c1a84270ddf2eca8"
+ version = "v0.17.1"
[[projects]]
- branch = "master"
name = "github.com/vmware/vic"
- packages = ["cmd/vic-machine/common","lib/config","lib/config/dynamic","lib/config/executor","lib/constants","lib/guest","lib/install/data","lib/install/validate","lib/migration/feature","lib/spec","pkg/certificate","pkg/errors","pkg/fetcher","pkg/flags","pkg/ip","pkg/log","pkg/log/syslog","pkg/registry","pkg/trace","pkg/version","pkg/vsphere/datastore","pkg/vsphere/extraconfig","pkg/vsphere/extraconfig/vmomi","pkg/vsphere/optmanager","pkg/vsphere/session","pkg/vsphere/sys","pkg/vsphere/tags","pkg/vsphere/tasks","pkg/vsphere/test/env","pkg/vsphere/vm"]
- revision = "a3d7a5ff74a3c34695daf848a189ea0994ca68df"
+ packages = [
+ "cmd/vic-machine/common",
+ "lib/config",
+ "lib/config/dynamic",
+ "lib/config/executor",
+ "lib/constants",
+ "lib/guest",
+ "lib/install/data",
+ "lib/install/opsuser",
+ "lib/install/validate",
+ "lib/migration/feature",
+ "lib/spec",
+ "pkg/certificate",
+ "pkg/errors",
+ "pkg/fetcher",
+ "pkg/flags",
+ "pkg/ip",
+ "pkg/log",
+ "pkg/log/syslog",
+ "pkg/registry",
+ "pkg/retry",
+ "pkg/trace",
+ "pkg/version",
+ "pkg/vsphere/compute",
+ "pkg/vsphere/compute/placement",
+ "pkg/vsphere/datastore",
+ "pkg/vsphere/extraconfig",
+ "pkg/vsphere/extraconfig/vmomi",
+ "pkg/vsphere/optmanager",
+ "pkg/vsphere/performance",
+ "pkg/vsphere/rbac",
+ "pkg/vsphere/session",
+ "pkg/vsphere/sys",
+ "pkg/vsphere/tags",
+ "pkg/vsphere/tasks",
+ "pkg/vsphere/test/env",
+ "pkg/vsphere/vm"
+ ]
+ revision = "6c385b0f31264c3b18f4d773f0fe799b2396b860"
+ version = "v1.4.0"
[[projects]]
+ branch = "master"
name = "github.com/vmware/vmw-guestinfo"
- packages = ["bdoor","message","rpcout","rpcvmx","vmcheck"]
- revision = "0b8dbcdd226303bf776dcac49c2d5f3b8a8190fd"
+ packages = [
+ "bdoor",
+ "message",
+ "rpcout",
+ "rpcvmx",
+ "vmcheck"
+ ]
+ revision = "25eff159a728be87e103a0b8045e08273f4dbec4"
[[projects]]
branch = "master"
name = "golang.org/x/crypto"
- packages = ["nacl/secretbox","poly1305","salsa20/salsa","ssh/terminal"]
- revision = "bd6f299fb381e4c3393d1c4b1f0b94f5e77650c8"
+ packages = [
+ "nacl/secretbox",
+ "poly1305",
+ "salsa20/salsa",
+ "ssh/terminal"
+ ]
+ revision = "1a580b3eff7814fc9b40602fd35256c63b50f491"
[[projects]]
+ branch = "master"
+ name = "golang.org/x/lint"
+ packages = ["."]
+ revision = "470b6b0bb3005eda157f0275e2e4895055396a81"
+
+[[projects]]
+ branch = "master"
name = "golang.org/x/net"
- packages = ["context","context/ctxhttp"]
- revision = "a6577fac2d73be281a500b310739095313165611"
+ packages = [
+ "context",
+ "context/ctxhttp"
+ ]
+ revision = "2491c5de3490fced2f6cff376127c667efeed857"
[[projects]]
branch = "master"
name = "golang.org/x/sync"
packages = ["errgroup"]
- revision = "fd80eb99c8f653c847d294a001bdf2a3a6f768f5"
+ revision = "1d60e4601c6fd243af51cc01ddf169918a5407ca"
[[projects]]
+ branch = "master"
name = "golang.org/x/sys"
- packages = ["unix","windows"]
- revision = "99f16d856c9836c42d24e7ab64ea72916925fa97"
+ packages = [
+ "unix",
+ "windows"
+ ]
+ revision = "7c87d13f8e835d2fb3a70a2912c811ed0c1d241b"
[[projects]]
branch = "master"
name = "golang.org/x/time"
packages = ["rate"]
- revision = "6dc17368e09b0e8634d71cac8168d853e869a0c7"
+ revision = "fbb02b2291d28baffd63558aa44b4b56f178d650"
[[projects]]
branch = "master"
name = "golang.org/x/tools"
- packages = ["go/gcexportdata","go/gcimporter15","go/types/typeutil"]
- revision = "c84da9fa1c1dbcae4557e8c8509abeb814ed9632"
+ packages = [
+ "go/ast/astutil",
+ "go/gcexportdata",
+ "go/internal/gcimporter",
+ "go/types/typeutil"
+ ]
+ revision = "48418e5732e1b1e2a10207c8007a5f959e422f20"
[[projects]]
name = "gopkg.in/urfave/cli.v1"
packages = ["."]
- revision = "0bdeddeeb0f650497d603c4ad7b20cfe685682f6"
- version = "v1.19.1"
+ revision = "cfb38830724cc34fedffe9a2a29fb54fa9169cd1"
+ version = "v1.20.0"
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
- inputs-digest = "3c09d851e1b0d042e18b46ec5a8f504bf5662bb3e9b81f8c150c22df95b18c5d"
+ inputs-digest = "3d2c42f997954ab87dcb4e1d9e0e53bcafabec022e52b26883118ec410ce2488"
solver-name = "gps-cdcl"
solver-version = 1
diff --git a/installer/Gopkg.toml b/installer/Gopkg.toml
index 9f5dd71259..6902b45da6 100644
--- a/installer/Gopkg.toml
+++ b/installer/Gopkg.toml
@@ -22,41 +22,23 @@
required = ["github.com/golang/dep", "github.com/GoASTScanner/gas", "github.com/go-yaml/yaml", "github.com/golang/lint/golint"]
-[[constraint]]
- name = "github.com/Sirupsen/logrus"
- version = "0.11.0"
-
-[[constraint]]
- name = "github.com/coreos/go-systemd"
-
-[[constraint]]
- name = "github.com/dustin/go-humanize"
-
-[[constraint]]
- name = "github.com/gizak/termui"
-
-[[constraint]]
- name = "github.com/gorilla/websocket"
-
-[[constraint]]
- name = "github.com/spf13/pflag"
- version = "1.0.0"
-
-[[constraint]]
- name = "github.com/vmware/govmomi"
-
[[constraint]]
name = "github.com/vmware/vic"
- branch = "master"
+ version = "v1.4.0"
[[constraint]]
- name = "github.com/vmware/vmw-guestinfo"
-
-[[constraint]]
- name = "gopkg.in/urfave/cli.v1"
- version = "1.19.1"
+ name = "github.com/vmware/govmomi"
+ version = "v0.17.1"
[[constraint]]
name = "github.com/golang/dep"
version = "0.3.2"
+[[constraint]]
+ name = "github.com/GoASTScanner/gas"
+ revision = "6de76c92610b387855cdfdd53c99b149928916f7"
+
+[prune]
+ non-go = true
+ go-tests = true
+ unused-packages = true
diff --git a/installer/Makefile b/installer/Makefile
index b595525200..fcc19c605d 100644
--- a/installer/Makefile
+++ b/installer/Makefile
@@ -54,7 +54,7 @@ vendor: $(DEP)
gas: $(GAS)
@echo running go AST tool
- @$(GAS) -quiet fileserver/... landing_server/... lib/... ovatools/... pkg/... tagvm/... toolbox/... 2> /dev/null
+ @$(GAS) -quiet fileserver/... landing_server/... lib/... ovatools/... pkg/... toolbox/... 2> /dev/null
golint: $(GOLINT)
@echo checking go lint...
@@ -97,8 +97,6 @@ golintf = $(GOLINT) $(1) | sh -c "! grep -v 'lib/apiservers/portlayer/restapi/op
$(ovfenv): $(call godeps,ovatools/ovfenv/*.go)
@echo building ovfenv linux...
- @echo build $(dir $<)
- @echo output $@
@GOARCH=amd64 GOOS=linux $(TIME) $(GO) build $(RACE) -ldflags "$(LDFLAGS)" -o ./$@ ./$(dir $<)
$(vic-ova-ui): $(call godeps,ovatools/vic-ova-ui/*.go)
diff --git a/installer/build/bootable/build-base.sh b/installer/build/bootable/build-base.sh
index 2acc7ab5bf..8643fe17cc 100755
--- a/installer/build/bootable/build-base.sh
+++ b/installer/build/bootable/build-base.sh
@@ -57,7 +57,7 @@ function set_base() {
pkgconfig dbus cpio\
photon-release tdnf \
openssh linux-esx sed \
- gzip tar xz bzip2 \
+ gzip zip tar xz bzip2 \
glibc iana-etc \
ca-certificates \
curl which initramfs \
diff --git a/installer/build/bootable/build-main.sh b/installer/build/bootable/build-main.sh
index 4bec6f086e..293381b3c1 100755
--- a/installer/build/bootable/build-main.sh
+++ b/installer/build/bootable/build-main.sh
@@ -86,6 +86,11 @@ function build_app {
SOURCE=$(jq '.['$LINE_NUM'] | .source' "${MANIFEST}" | tr -d '"')
DESTINATION=$(echo "${ROOT}/$(cat "${MANIFEST}" | jq '.['$LINE_NUM'] | .destination')" | tr -d '"' )
mkdir -p "$(dirname "$DESTINATION")" && cp -R $SOURCE "$DESTINATION"
+ if [[ "$DESTINATION" == *"fileserver/html"* ]]; then
+ pushd $DESTINATION
+ rm -fr .gitignore karma* package* js/fixtures js/specs
+ popd
+ fi
fi
LINE_NUM=$((LINE_NUM+1))
done
@@ -104,6 +109,7 @@ function build_app {
TERM="$TERM" \
DEBUG="$DEBUG" \
BUILD_VICENGINE_FILE="${BUILD_VICENGINE_FILE}" \
+ BUILD_VICUI_FILE="${BUILD_VICUI_FILE}" \
BUILD_HARBOR_FILE="${BUILD_HARBOR_FILE}" \
BUILD_ADMIRAL_REVISION="${BUILD_ADMIRAL_REVISION}" \
BUILD_OVA_REVISION="${BUILD_OVA_REVISION}" \
diff --git a/installer/build/build-cache.sh b/installer/build/build-cache.sh
index f290a154fe..adb8248bbb 100755
--- a/installer/build/build-cache.sh
+++ b/installer/build/build-cache.sh
@@ -36,6 +36,7 @@ images=(
downloads=(
${BUILD_HARBOR_URL}
${BUILD_VICENGINE_URL}
+ ${BUILD_VICUI_URL}
)
function timecho {
@@ -84,7 +85,7 @@ function cacheOther() {
else
timecho "${yarrow} downloading and saving ${brprpl}${filename}${reset}"
set +e
- basefile=$(ls "$(dirname "$archive")/$(echo "${filename}" | cut -f1 -d"-" | cut -f1 -d"_" | cut -f1 -d".")"* 2>/dev/null)
+ basefile=$(ls "$(dirname "$archive")/$(echo "${filename}" | grep -v vic | cut -f1 -d"-" | cut -f1 -d"_" | cut -f1 -d".")"* 2>/dev/null)
[ $? -eq 0 ] && [ -f "$basefile" ] && rm "$basefile"*
set -e
add "${download}" "$archive"
diff --git a/installer/build/build-ova.sh b/installer/build/build-ova.sh
index 336e799979..fd13928116 100755
--- a/installer/build/build-ova.sh
+++ b/installer/build/build-ova.sh
@@ -57,6 +57,10 @@ do
VICENGINE="$2"
shift 2 # past argument
;;
+ --vicui)
+ VICUI="$2"
+ shift 2 # past argument
+ ;;
--vicmachineserver)
VIC_MACHINE_SERVER="$2"
shift 2 # past argument
@@ -84,6 +88,12 @@ if [ -z "${VICENGINE}" ]; then
fi
setenv VICENGINE "$url"
+url=""
+if [ -z "${VICUI}" ]; then
+ url=$(gsutil ls -l "gs://vic-ui-builds" | grep -v TOTAL | grep vic_ | sort -k2 -r | (trap '' PIPE; head -1) | xargs | cut -d " " -f 3 | sed 's/gs:\/\//https:\/\/storage.googleapis.com\//')
+fi
+setenv VICUI "$url"
+
#set Harbor
url=""
if [ -z "${HARBOR}" ]; then
@@ -104,6 +114,8 @@ export BUILD_HARBOR_FILE=${BUILD_HARBOR_FILE:-}
export BUILD_HARBOR_URL=${BUILD_HARBOR_URL:-}
export BUILD_VICENGINE_FILE=${BUILD_VICENGINE_FILE:-}
export BUILD_VICENGINE_URL=${BUILD_VICENGINE_URL:-}
+export BUILD_VICUI_FILE=${BUILD_VICUI_FILE:-}
+export BUILD_VICUI_URL=${BUILD_VICUI_URL:-}
export BUILD_VIC_MACHINE_SERVER_REVISION=${BUILD_VIC_MACHINE_SERVER_REVISION:-}
export BUILD_ADMIRAL_REVISION=${BUILD_ADMIRAL_REVISION:-}
export BUILD_OVA_REVISION=${BUILD_OVA_REVISION:-}
@@ -134,6 +146,7 @@ drone deploy --param VICENGINE=${BUILD_VICENGINE_URL:-} \\
--param VIC_MACHINE_SERVER=${BUILD_VIC_MACHINE_SERVER_REVISION:-} \\
--param ADMIRAL=${BUILD_ADMIRAL_REVISION:-} \\
--param HARBOR=${BUILD_HARBOR_URL:-} \\
+ --param VICUI=${BUILD_VICUI_URL:-} \\
vmware/vic-product ${DRONE_BUILD_NUMBER:-} staging
EOF
elif [ "deployment" == "${DRONE_BUILD_EVENT}" -a "staging" == "${DRONE_DEPLOY_TO}" ]; then
@@ -144,6 +157,7 @@ drone deploy --param VICENGINE=${BUILD_VICENGINE_URL:-} \\
--param VIC_MACHINE_SERVER=${BUILD_VIC_MACHINE_SERVER_REVISION:-} \\
--param ADMIRAL=${BUILD_ADMIRAL_REVISION:-} \\
--param HARBOR=${BUILD_HARBOR_URL:-} \\
+ --param VICUI=${BUILD_VICUI_URL:-} \\
vmware/vic-product ${DRONE_BUILD_NUMBER:-} release
EOF
fi
diff --git a/installer/build/build.sh b/installer/build/build.sh
index b5215d62df..1903c75a66 100755
--- a/installer/build/build.sh
+++ b/installer/build/build.sh
@@ -39,8 +39,8 @@ function usage() {
echo -e "Usage:
The VIC Appliance Fileserver failed to configure the VIC archive. It may contain incorrect values required to install the VIC UI plugin.
- In order to correct this error, you must do one of the following:
- Error starting VIC Appliance Fileserver.
-
-
- systemctl restart fileserver