mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
Add a dependencies hook for plugin dependency management
This commit is contained in:
committed by
Jose Diaz-Gonzalez
parent
10b5ee0321
commit
e94b46cb0c
5
Makefile
5
Makefile
@@ -19,7 +19,7 @@ endif
|
|||||||
all:
|
all:
|
||||||
# Type "make install" to install.
|
# Type "make install" to install.
|
||||||
|
|
||||||
install: dependencies stack copyfiles plugins version
|
install: dependencies stack copyfiles plugin-dependencies plugins version
|
||||||
|
|
||||||
copyfiles: addman
|
copyfiles: addman
|
||||||
cp dokku /usr/local/bin/dokku
|
cp dokku /usr/local/bin/dokku
|
||||||
@@ -34,6 +34,9 @@ addman:
|
|||||||
version:
|
version:
|
||||||
git describe --tags > ${DOKKU_ROOT}/VERSION 2> /dev/null || echo '~${DOKKU_VERSION} ($(shell date -uIminutes))' > ${DOKKU_ROOT}/VERSION
|
git describe --tags > ${DOKKU_ROOT}/VERSION 2> /dev/null || echo '~${DOKKU_VERSION} ($(shell date -uIminutes))' > ${DOKKU_ROOT}/VERSION
|
||||||
|
|
||||||
|
plugin-dependencies: pluginhook
|
||||||
|
dokku plugins-install-dependencies
|
||||||
|
|
||||||
plugins: pluginhook docker
|
plugins: pluginhook docker
|
||||||
dokku plugins-install
|
dokku plugins-install
|
||||||
|
|
||||||
|
|||||||
4
dokku
4
dokku
@@ -108,6 +108,10 @@ case "$1" in
|
|||||||
pluginhook install
|
pluginhook install
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
plugins-install-dependencies)
|
||||||
|
pluginhook dependencies
|
||||||
|
;;
|
||||||
|
|
||||||
# temporary hack for https://github.com/progrium/dokku/issues/82
|
# temporary hack for https://github.com/progrium/dokku/issues/82
|
||||||
deploy:all)
|
deploy:all)
|
||||||
for app in $(ls -d $DOKKU_ROOT/*/); do
|
for app in $(ls -d $DOKKU_ROOT/*/); do
|
||||||
|
|||||||
7
plugins/nginx-vhosts/dependencies
Executable file
7
plugins/nginx-vhosts/dependencies
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# latest stable NGINX 1.4.x with websocket support
|
||||||
|
apt-get install -qq -y software-properties-common python-software-properties
|
||||||
|
add-apt-repository -y ppa:nginx/stable
|
||||||
|
apt-get update
|
||||||
|
apt-get install -qq -y nginx dnsutils
|
||||||
@@ -1,12 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||||
|
|
||||||
# latest stable NGINX 1.4.x with websocket support
|
|
||||||
apt-get install -qq -y software-properties-common python-software-properties
|
|
||||||
add-apt-repository -y ppa:nginx/stable
|
|
||||||
apt-get update
|
|
||||||
apt-get install -qq -y nginx dnsutils
|
|
||||||
|
|
||||||
if ! grep -q dokku-nginx-reload "/etc/sudoers"; then
|
if ! grep -q dokku-nginx-reload "/etc/sudoers"; then
|
||||||
touch /etc/sudoers.tmp
|
touch /etc/sudoers.tmp
|
||||||
cp /etc/sudoers /tmp/sudoers.new
|
cp /etc/sudoers /tmp/sudoers.new
|
||||||
|
|||||||
Reference in New Issue
Block a user