Skip to content

Conversation

@misterbisson
Copy link
Contributor

  • Updated Nginx for changes in cache the curl nginx#49
    • This required moving the config file around
  • Added a makefile for easier building and pushing

# An demo version of WordPress for easy scaling
wordpress:
image: autopilotpattern/wordpress:4.7.3-r4.0.0
image: autopilotpattern/wordpress:branch-add-makefile
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to the new version, once pushed

# Nginx as a load-balancing tier and reverse proxy
nginx:
image: autopilotpattern/wordpress-nginx:4.7.3-r4.0.0
image: autopilotpattern/wordpress-nginx:branch-add-makefile
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be updated to the new version, once pushed

# it is included here for demo purposes and is not required
prometheus:
image: autopilotpattern/prometheus:latest
image: autopilotpattern/prometheus:branch-triton-support
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is waiting on autopilotpattern/prometheus#18

nginx/Dockerfile Outdated
@@ -1,5 +1,5 @@
# a minimal Nginx container including containerbuddy and a simple virtulhost config
FROM autopilotpattern/nginx:1-r6.1.0
FROM autopilotpattern/nginx:branch-48-nginx_connections_unhandled_total-appears-incorrect
Copy link
Contributor Author

@misterbisson misterbisson May 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be autopilotpattern/nginx:1.13-rXXX once autopilotpattern/nginx#49 is merged

{
"consul": "{{ if .CONSUL_AGENT }}localhost{{ else }}{{ .CONSUL }}{{ end }}:8500",
"preStart": "/usr/local/bin/reload.sh preStart",
"preStart": "generate-config",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed after autopilotpattern/nginx:1-r6.1.0

"name": "wordpress",
"poll": 7,
"onChange": "/usr/local/bin/reload.sh"
"onChange": "reload"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed after autopilotpattern/nginx:1-r6.1.0

"type": "gauge",
"poll": 5,
"check": ["/usr/local/bin/sensor.sh", "unhandled"]
"check": ["sensor", "unhandled"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed after autopilotpattern/nginx:1-r6.1.0

"type": "gauge",
"poll": 5,
"check": ["/usr/local/bin/sensor.sh", "connections_load"]
"check": ["sensor", "connections_load"]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changed after autopilotpattern/nginx:1-r6.1.0

@@ -1,107 +0,0 @@
user nginx;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After autopilotpattern/nginx:1-r6.1.0 the config files were moved around. See new conf files added elsewhere.

alias /var/www/acme/challenge;
}

{{ if service "wordpress" }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block inside {{ if service "wordpress" }} is the only block that's needed here. Everything else is likely to be repeated for other consumers of the Nginx image.

include ssl.conf;
{{ end }}

{{ if service "wordpress" }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block inside {{ if service "wordpress" }} is the only block that's needed here. Everything else is likely to be repeated for other consumers of the Nginx image.

@misterbisson misterbisson merged commit c6dd24a into master May 18, 2017
@misterbisson misterbisson deleted the add-makefile branch June 27, 2017 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants