-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: WIP mac dev environment #50
base: master
Are you sure you want to change the base?
Conversation
roles/ckan/tasks/deploy.yml
Outdated
# - name: Check if DB is alive [local] (10 tries, 5sec interval) | ||
# community.postgresql.postgresql_ping: | ||
# db: ckan | ||
# login_host: "{{ ckan_fqdn }}" | ||
# login_user: "{{ rds_admin_username }}" | ||
# login_password: "{{ ckan_postgres_password }}" | ||
# when: (fjelltopp_env_type == 'local') | ||
# register: db_ping_result | ||
# retries: 10 | ||
# delay: 5 | ||
# until: db_ping_result is defined and db_ping_result.get('is_available') | ||
# failed_when: db_ping_result is not defined or not db_ping_result.is_available | ||
# # For this check to work psycopg2 must be installed for the venv python referenced from your inventory |
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 didn't work, probably didn't have psycopg2 installed or something. Will deal with another time
|
||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
creationTimestamp: null | ||
name: ingress-nginx-controller | ||
namespace: ingress-nginx | ||
labels: | ||
addonmanager.kubernetes.io/mode: EnsureExists | ||
app.kubernetes.io/component: controller | ||
app.kubernetes.io/instance: ingress-nginx | ||
app.kubernetes.io/name: ingress-nginx | ||
data: | ||
allow-snippet-annotations: "true" |
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.
allow-snippet-annotations: "true"
is required on all the versions of helm i've installed 🤷
Ok, it kind of works but I can't get the ingresses working, as I get 502 bad gateways, even with a new ingress following https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/ (it works ok pointed at the dummy web service) Also, im not entirely sure of the workflow once it's running. Do ckan changes and then docker build? with the same tag? Or is it only rebuild on dep changes? |
I think that my Nginx woes come from using a later version of minikube (
Downgrading minikube and nginx feels like a very temp fix so i'll fix the problem at the ckan (or whatever) level |
NGINX is 'fixed" by dropping the rogue header with uWSGI https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Transfer-Encoding |
All WIP including the following instructions, but should get close...
When it comes to:
"Run the setup_local_dev playbook:"
append
-t setup_arm_mac
to the command (this will skip the install minikube/helm playbooks`Then deploy ckan as instructed.
There are now ARM images build in GH packages which help, I've got as far as CKAN starting and the init container failed.
TO BE CONTINUED....