https://github.com/lreimer/hands-on-tilt
Demo repository for IX magazine article on Tilt and microservice development without pain.
https://github.com/lreimer/hands-on-tilt
cloud-native developer-tools development microservice tilt
Last synced: 6 months ago
JSON representation
Demo repository for IX magazine article on Tilt and microservice development without pain.
- Host: GitHub
- URL: https://github.com/lreimer/hands-on-tilt
- Owner: lreimer
- License: mit
- Created: 2022-02-16T10:29:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-16T15:19:03.000Z (over 4 years ago)
- Last Synced: 2025-03-05T15:02:16.275Z (over 1 year ago)
- Topics: cloud-native, developer-tools, development, microservice, tilt
- Language: Starlark
- Homepage:
- Size: 4.57 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hands-on Tilt
Demo repository for IX magazine article on Tilt and microservice development without pain.
First, you need to install Tilt as described here: https://docs.tilt.dev/install.html
Create a `Tiltfile` in the project root and add the following content:
```python
# compile the binary
local_resource('hello-tilt-go-compile',
'CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build',
dir='hello-tilt-go',
deps=['./hello-tilt-go/main.go'],
labels=['Go'])
# build the Go image
docker_build('lreimer/hello-tilt-go', 'hello-tilt-go',
dockerfile='hello-tilt-go/Dockerfile',
only=['./hello-tilt-go', "./favicon.ico"])
# deploy and port forward to pod
k8s_yaml(['hello-tilt-go/k8s/deployment.yaml', 'hello-tilt-go/k8s/service.yaml'])
k8s_resource(workload='hello-tilt-go', port_forwards='19090:9090', labels=['Go'])
```
The run `tilt up` in the console and get into the flow. Once finished do a `tilt down`.
## Maintainer
M.-Leander Reimer (@lreimer),
## License
This software is provided under the MIT open source license, read the `LICENSE`
file for details.