-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Tilt for local development #1396
Conversation
engine/Dockerfile
Outdated
@@ -28,7 +28,8 @@ RUN mkdir -p /tmp/silk_profiles; | |||
RUN chown -R 1000:2000 /tmp/silk_profiles | |||
|
|||
FROM base AS dev | |||
RUN apt-get install -y sqlite3 default-mysql-client postgresql-client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change should be reverted prior to merging. This is a temporary workaround to this issue when building the engine docker image:
→ E: Failed to fetch http://deb.debian.org/debian-security/pool/updates/main/m/mariadb-10.3/mariadb-client-core-10.3_10.3.36-0+deb10u2_arm64.deb 404 Not Found [IP: 199.232.150.132 80]
→ E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
ERROR IN: [dev 1/1] RUN apt-get install -y sqlite3 default-mysql-client [redacted secret helm-testing-postgresql:postgres-password]ql-client
Build Failed: ImageBuild: executor failed running [/bin/sh -c apt-get install -y sqlite3 default-mysql-client [redacted secret helm-testing-postgresql:postgres-password]ql-client]: exit code: 100
@@ -6,3 +6,6 @@ venv | |||
.idea | |||
.DS_Store | |||
.env | |||
|
|||
yarn.lock | |||
node_modules |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding these as tilt up
seems to generate them
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 30 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically closed because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
If you happen to `helm uninstall helm-testing` be sure to delete all the Persistent Volume Claims, as Postgres stores | ||
the auto-generated password on disk, and the next `helm install` will fail. | ||
|
||
```bash | ||
kubectl delete pvc --all | ||
kubectl delete pv --all | ||
``` | ||
|
||
This, of course, will delete all the PVs and PVCs also :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added hardcoded passwords for local development to avoid deletions (see here)
Tiltfile
Outdated
set=extra_helm_values(), | ||
# The values file to substitute into the chart. | ||
values=['./helm/simple.yml', | ||
'./helm/values-arm64.yml', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./helm/values-arm64.yml
no longer exists as all of our Chart dependencies now have multi-arch support
Tiltfile
Outdated
@@ -15,7 +20,25 @@ yaml = helm( | |||
|
|||
k8s_yaml(yaml) | |||
|
|||
k8s_resource(workload='grafana', port_forwards="3000:3000", resource_deps=['mariadb', 'engine', 'oncall-ui'], labels=['Grafana']) | |||
# Generate and load the grafana deploy yaml | |||
k8s_yaml(local("cat ./dev/cm-grafana-oncall-app-provisioning.yaml")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is missing
Makefile
Outdated
|
||
See https://github.com/grafana/oncall/pull/2751 for instructions on how to use the helm/k8s commands. | ||
See https://github.com/grafana/oncall/pull/2751 for instructions on how to use tilt helm/k8s commands. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe remove this comment or point it to this PR
# What this PR does PR adds Tilt for local development ## Which issue(s) this PR fixes ## Checklist - [ ] Tests updated - [ ] Documentation added - [ ] `CHANGELOG.md` updated --------- Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com> Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com> Co-authored-by: Michael Derynck <michael.derynck@grafana.com> Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
What this PR does
PR adds Tilt for local development
Which issue(s) this PR fixes
Checklist
CHANGELOG.md
updated