Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
cpage-pivotal committed Jan 18, 2022
2 parents 77323f5 + ec2a303 commit e23957a
Show file tree
Hide file tree
Showing 7 changed files with 65 additions and 0 deletions.
13 changes: 13 additions & 0 deletions choco-nonadmin-install.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set directory for installation - Chocolatey does not lock
# down the directory if not the default
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"

# If your PowerShell Execution policy is restrictive, you may
# not be able to get around that. Try setting your session to
# Bypass.
Set-ExecutionPolicy Bypass -Scope Process -Force;

# All install options - offline, proxy, etc at
# https://chocolatey.org/install
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
21 changes: 21 additions & 0 deletions download-dependencies.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#VENDIR_GITHUB_API_TOKEN=<your-github-token>
$ENV:VENDIR_GITHUB_API_TOKEN = "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"

# Download installation files
ytt -f setup/vendir.yml --data-values-file config.yaml | vendir sync --chdir setup -f-

# Make binaries executable and put them in the PATH
if ( -not (Test-Path -Path $HOME\tce))
{
mkdir $HOME\tce
mkdir $HOME\tce\bin
}

# Copy files to the bin directory under $HOME\tce
copy setup\vendir\binaries\kn\kn*.exe $HOME\tce\bin\kn.exe
copy setup\vendir\binaries\kp\kp*.exe $HOME\tce\bin\kp.exe
copy setup\vendir\binaries\yq\yq*.exe $HOME\tce\bin\yq.exe
copy setup\vendir\binaries\kubectl\kubectl.exe $HOME\tce\bin\

# Add location for tools to path
$ENV:PATH = "$ENV:PATH;$HOME\tce\bin;"
16 changes: 16 additions & 0 deletions install-cartographer.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Install SecretGen Controller
kapp deploy --yes -a secretgen-controller -f setup/vendir/secretgen-controller

# Install Cert Manager
kapp deploy --yes -a cert-manager -f setup/vendir/cert-manager

# Install Cartographer
kapp deploy --yes -a cartographer -f setup/overlays/cartographer -f setup/vendir/cartographer

# Install source controller, the source part of the supply chain
kubectl create namespace gitops-toolkit --dry-run=client -o yaml | kubectl apply -f -
kapp deploy --yes -a gitops-toolkit --into-ns gitops-toolkit -f setup/vendir/source-controller

## install sample supply chain
ytt --data-values-file config.yaml --ignore-unknown-comments -f source-to-knative-service | kapp deploy -y -a source-to-knative-service -f-

2 changes: 2 additions & 0 deletions install-knative.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tanzu package install contour --package-name contour.community.tanzu.vmware.com --version 1.18.1 -f config.yaml
tanzu package install knative-serving --package-name knative-serving.community.tanzu.vmware.com --version 0.22.0 -f config.yaml
7 changes: 7 additions & 0 deletions install-kpack.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$ENV:REGISTRY_USERNAME=$(yq eval '.registry.username' config.yaml)
$ENV:REGISTRY_PASSWORD=$(yq eval '.registry.password' config.yaml)
$ENV:REGISTRY_URL=$(yq eval '.registry.server' config.yaml)

kubectl create secret docker-registry registry-credentials --docker-username=$ENV:REGISTRY_USERNAME --docker-password=$ENV:REGISTRY_PASSWORD --docker-server=$ENV:REGISTRY_URL --namespace default

ytt -f setup/vendir/kpack -f setup/overlays/kpack --data-values-file config.yaml | kapp deploy -a kpack -f- --yes
5 changes: 5 additions & 0 deletions set-env.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Add the tools path to the session
# * Path can be added to the environment variables or via the Powershell profile

$ENV:PATH += ";$HOME\tce\bin"

1 change: 1 addition & 0 deletions tce/1-tce.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Use your system's package manager to install Tanzu Community Edition:
**Mac/Linux:**
```
brew install vmware-tanzu/tanzu/tanzu-community-edition
{HOMEBREW-INSTALL-LOCATION}/configure-tce.sh
```

When the brew install completes, it will give you the location of a post-install script to run: `{HOMEBREW-INSTALL-LOCATION}/configure-tce.sh`. Execute that script to complete the install
Expand Down

0 comments on commit e23957a

Please sign in to comment.