diff --git a/TAP/.gitkeep b/TAP/.gitkeep deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/TAP/readme.txt b/TAP/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..d5aa87dd9ec0b3f23d65dd2cfb678f669bd756aa --- /dev/null +++ b/TAP/readme.txt @@ -0,0 +1,130 @@ + +# WORKSTATION +#Download tanzu-cluster-essentials-linux-amd64-1.2.0.tgz and the README +pscp tanzu-cluster-essentials-linux-amd64-1.2.0.tgz root@arcas13:/root/ + +# ON ARCAS +docker login harbor.dersllc.com +docker login registry.tanzu.vmware.com + +export IMGPKG_REGISTRY_HOSTNAME=harbor.dersllc.com +export IMGPKG_REGISTRY_USERNAME=admin +export IMGPKG_REGISTRY_PASSWORD=DERS4me! +export TAP_VERSION=1.3.0-build.20 +export REGISTRY_CA_PATH=/root/ders-ca.crt + +------------------------------------------------------------------------------------------------------------- +#IF CLUSTER_ESSENTIALS ARE NOT INSTALLED +imgpkg copy \ + -b registry.tanzu.vmware.com/tanzu-cluster-essentials/cluster-essentials-bundle@sha256:e00f33b92d418f49b1af79f42cb13d6765f1c8c731f4528dfff8343af042dc3e \ + --to-tar essentials.tar \ + --include-non-distributable-layers + +# Add new harbor repository named tanzu-cluster-essentials +imgpkg copy \ + --tar essentials.tar \ + --to-repo $IMGPKG_REGISTRY_HOSTNAME/tanzu-cluster-essentials/cluster-essentials-bundle \ + --include-non-distributable-layers \ + --registry-ca-cert-path $REGISTRY_CA_PATH \ + --registry-username $IMGPKG_REGISTRY_USERNAME \ + --registry-password $IMGPKG_REGISTRY_PASSWORD + +tar -zxvf tanzu-cluster-essentials-linux-amd64-1.2.0.tgz +export INSTALL_REGISTRY_HOSTNAME=$IMGPKG_REGISTRY_HOSTNAME +export INSTALL_REGISTRY_USERNAME=$IMGPKG_REGISTRY_USERNAME +export INSTALL_REGISTRY_PASSWORD=$IMGPKG_REGISTRY_PASSWORD +export INSTALL_BUNDLE=$IMGPKG_REGISTRY_HOSTNAME/tanzu-cluster-essentials/cluster-essentials-bundle@sha256:e00f33b92d418f49b1af79f42cb13d6765f1c8c731f4528dfff8343af042dc3e +./install.sh --yes +------------------------------------------------------------------------------------------------------------- + +imgpkg copy \ + -b registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:$TAP_VERSION \ + --to-tar tap-packages-$TAP_VERSION.tar \ + --include-non-distributable-layers + +# Add new harbor repository named tap-$TAP_VERSION +imgpkg copy \ + --tar tap-packages-$TAP_VERSION.tar \ + --to-repo $IMGPKG_REGISTRY_HOSTNAME/tap-$TAP_VERSION/tap-packages \ + --include-non-distributable-layers \ + --registry-ca-cert-path $REGISTRY_CA_PATH \ + --registry-username $IMGPKG_REGISTRY_USERNAME \ + --registry-password $IMGPKG_REGISTRY_PASSWORD + +kubectl create ns tap-install + +tanzu secret registry add tap-registry \ + --server $IMGPKG_REGISTRY_HOSTNAME \ + --username $IMGPKG_REGISTRY_USERNAME \ + --password $IMGPKG_REGISTRY_PASSWORD \ + --namespace tap-install \ + --export-to-all-namespaces \ + --yes + +kubectl create secret docker-registry registry-credentials \ + --docker-server=${IMGPKG_REGISTRY_HOSTNAME} \ + --docker-username=${IMGPKG_REGISTRY_USERNAME} \ + --docker-password=${IMGPKG_REGISTRY_PASSWORD} \ + -n tap-install + +tanzu package repository add tanzu-tap-repository \ + --url $IMGPKG_REGISTRY_HOSTNAME/tap-$TAP_VERSION/tap-packages:$TAP_VERSION \ + --namespace tap-install + +tanzu package repository get tanzu-tap-repository --namespace tap-install + +tanzu package available list --namespace tap-install + +vi tap-values.yaml + +tanzu package install tap -p tap.tanzu.vmware.com -v $TAP_VERSION --values-file tap-values.yaml -n tap-install + +tanzu package available list buildservice.tanzu.vmware.com --namespace tap-install + +export TBS_VERSION='1.7.0-rc.7' + +imgpkg copy -b registry.tanzu.vmware.com/tanzu-application-platform/full-tbs-deps-package-repo:$TBS_VERSION \ + --to-tar=tbs-full-deps.tar\ + --include-non-distributable-layers + +imgpkg copy --tar tbs-full-deps.tar \ + --to-repo=${IMGPKG_REGISTRY_HOSTNAME}/tbs-$TBS_VERSION/tbs-full-deps:$TBS_VERSION \ + --include-non-distributable-layers \ + --registry-ca-cert-path $REGISTRY_CA_PATH \ + --registry-username $IMGPKG_REGISTRY_USERNAME \ + --registry-password $IMGPKG_REGISTRY_PASSWORD + + +tanzu package repository add tbs-full-deps-repository \ + --url ${IMGPKG_REGISTRY_HOSTNAME}/tbs-$TBS_VERSION/tbs-full-deps:$TBS_VERSION \ + --namespace tap-install + +tanzu package install full-tbs-deps -p full-tbs-deps.tanzu.vmware.com -v $TBS_VERSION -n tap-install + + + + + + + + + +kubectl create secret docker-registry registry-credentials \ + --docker-server=${IMGPKG_REGISTRY_HOSTNAME} \ + --docker-username=${IMGPKG_REGISTRY_USERNAME} \ + --docker-password=${IMGPKG_REGISTRY_PASSWORD} \ + -n default +tanzu secret registry add tap-registry \ + --server $IMGPKG_REGISTRY_HOSTNAME \ + --username $IMGPKG_REGISTRY_USERNAME \ + --password $IMGPKG_REGISTRY_PASSWORD \ + --namespace default \ + --yes + +kubectl apply -f prep-default-ns.yaml -n default + +tanzu apps workload create -f workload.yaml +tanzu apps workload tail tanzu-java-web-app +tanzu apps workload get tanzu-java-web-app + +