Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Remove Tiltfile
Browse files Browse the repository at this point in the history
  • Loading branch information
trisberg committed Jan 7, 2022
1 parent 2bc14d1 commit b0c81e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 63 deletions.
48 changes: 8 additions & 40 deletions DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,21 @@

> NOTE: The provided `config/workload.yaml` file uses the Git URL for this sample. When you want to modify the source, you must push the code to your own Git repository and then update the `spec.source.git` information in the `config/workload.yaml` file.
## Deploying to Kubernetes as a TAP workload with Tilt

You can containerize this template app and deploy it as a Tanzu Application Platform (TAP) workload.
You need to have TAP installed on your cluster.
See the [VMware Tanzu Application Platform documentation](https://docs.vmware.com/en/VMware-Tanzu-Application-Platform/index.html) for details.

We have included a `Tiltfile` file to make this easier when deploying to a cluster.

For best results use Tilt version v0.23.2 or later. You can install Tilt by following these instructions: https://docs.tilt.dev/install.html

To set up the deployment environment set the CURRENT_CONTEXT environment variable.

Set CURRENT_CONTEXT using:

```
export CURRENT_CONTEXT=$(kubectl config current-context)
```
## Deploying to Kubernetes as a TAP workload with Tanzu CLI

To build and deploy the app run:
When you are done developing your app, you can simply deploy it using:

```
tilt up
tanzu apps workload apply -f config/workload.yaml
```

and follow the instructions (hitting space bar brings up the Tilt interface in your browser).

To uninstall the app run:
If you would like deploy the code from your local working directory you can use the following command:

```
tilt down
tanzu apps workload create node-express -f config/workload.yaml \
--local-path . \
--source-image <REPOSITORY-PREFIX>/node-express-source \
--type web
```

## Accessing the app deployed to your cluster
Expand All @@ -47,20 +32,3 @@ tanzu apps workload get node-express
To access the deployed app open the URL shown in your browser.

This depends on the TAP installation having DNS configured for the Knative ingress.

## Deploying to Kubernetes as a TAP workload with Tanzu CLI

When you are done developing your app, you can simply deploy it using:

```
tanzu apps workload apply -f config/workload.yaml
```

If you would like deploy the code from your local working directory you can use the following command:

```
tanzu apps workload create node-express -f config/workload.yaml \
--local-path . \
--source-image <REPOSITORY-PREFIX>/node-express-source \
--type web
```
15 changes: 0 additions & 15 deletions Tiltfile

This file was deleted.

9 changes: 1 addition & 8 deletions accelerator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ accelerator:
engine:
merge:
- include: [ "**" ]
exclude: [ "package.json", "config/**", "catalog/**", "README.md", "DEPLOYING.md", "TILTFILE" ]
exclude: [ "package.json", "config/**", "catalog/**", "README.md", "DEPLOYING.md" ]
- include: [ "package.json" ]
chain:
- type: ReplaceText
Expand All @@ -39,13 +39,6 @@ engine:
substitutions:
- text: node-express
with: "#artifactId"
- include: [ "Tiltfile" ]
condition: "#includeTap"
chain:
- type: ReplaceText
substitutions:
- text: node-express
with: "#artifactId"
- name: README
type: Combo
onConflict: Append
Expand Down

0 comments on commit b0c81e5

Please sign in to comment.