-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
896 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
.idea/ | ||
env_make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM wodby/drupal-php:5.3 | ||
|
||
COPY make.yml /var/www/html | ||
|
||
RUN chown -R www-data:www-data /var/www/html/ && \ | ||
su-exec www-data drush make make.yml -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-include env_make | ||
|
||
VERSION ?= 6-5.3 | ||
|
||
REPO = wodby/drupal | ||
NAME = drupal-$(VERSION) | ||
|
||
.PHONY: build test push shell run start stop logs clean release | ||
|
||
build: | ||
docker build -t $(REPO):$(VERSION) ./ | ||
|
||
test: | ||
NAME=$(NAME) ./test.sh | ||
|
||
push: | ||
docker push $(REPO):$(VERSION) | ||
|
||
shell: | ||
docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) /bin/bash | ||
|
||
run: | ||
docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) $(CMD) | ||
|
||
start: | ||
docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) | ||
|
||
stop: | ||
docker stop $(NAME) | ||
|
||
logs: | ||
docker logs $(NAME) | ||
|
||
clean: | ||
-docker rm -f $(NAME) | ||
|
||
release: build | ||
make push -e VERSION=$(VERSION) | ||
|
||
default: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#production.make.yml: | ||
api: 2 | ||
core: 6.x | ||
projects: | ||
- drupal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
make start | ||
|
||
docker exec --user=82 $NAME drush -r /var/www/html status | grep 'Drupal version *: *6\.38' | ||
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM wodby/drupal-php:5.6 | ||
|
||
COPY make.yml /var/www/html | ||
|
||
RUN chown -R www-data:www-data /var/www/html/ && \ | ||
su-exec www-data drush make make.yml -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-include env_make | ||
|
||
VERSION ?= 6-5.6 | ||
|
||
REPO = wodby/drupal | ||
NAME = drupal-$(VERSION) | ||
|
||
.PHONY: build test push shell run start stop logs clean release | ||
|
||
build: | ||
docker build -t $(REPO):$(VERSION) ./ | ||
|
||
test: | ||
NAME=$(NAME) ./test.sh | ||
|
||
push: | ||
docker push $(REPO):$(VERSION) | ||
|
||
shell: | ||
docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) /bin/bash | ||
|
||
run: | ||
docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) $(CMD) | ||
|
||
start: | ||
docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) | ||
|
||
stop: | ||
docker stop $(NAME) | ||
|
||
logs: | ||
docker logs $(NAME) | ||
|
||
clean: | ||
-docker rm -f $(NAME) | ||
|
||
release: build | ||
make push -e VERSION=$(VERSION) | ||
|
||
default: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#production.make.yml: | ||
api: 2 | ||
core: 6.x | ||
projects: | ||
- drupal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
make start | ||
|
||
docker exec --user=82 $NAME drush -r /var/www/html status | grep 'Drupal version *: *6\.38' | ||
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM wodby/drupal-php:7.0 | ||
|
||
COPY composer.json /var/www/html | ||
|
||
RUN chown -R www-data:www-data /var/www/html/ && \ | ||
su-exec www-data composer require && \ | ||
su-exec www-data composer clear-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-include env_make | ||
|
||
VERSION ?= 7-5.6 | ||
|
||
REPO = wodby/drupal | ||
NAME = drupal-$(VERSION) | ||
|
||
.PHONY: build test push shell run start stop logs clean release | ||
|
||
build: | ||
docker build -t $(REPO):$(VERSION) ./ | ||
|
||
test: | ||
NAME=$(NAME) ./test.sh | ||
|
||
push: | ||
docker push $(REPO):$(VERSION) | ||
|
||
shell: | ||
docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) /bin/bash | ||
|
||
run: | ||
docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) $(CMD) | ||
|
||
start: | ||
docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) | ||
|
||
stop: | ||
docker stop $(NAME) | ||
|
||
logs: | ||
docker logs $(NAME) | ||
|
||
clean: | ||
-docker rm -f $(NAME) | ||
|
||
release: build | ||
make push -e VERSION=$(VERSION) | ||
|
||
default: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "drupal-composer/drupal-project", | ||
"description": "Composer template for Drupal projects", | ||
"repositories": { | ||
"drupal": { | ||
"type": "composer", | ||
"url": "https://packages.drupal.org/7" | ||
} | ||
}, | ||
"require": { | ||
"composer/installers": "~1.0", | ||
"derhasi/composer-preserve-paths": "0.1.*", | ||
"drupal/drupal": "7.*" | ||
}, | ||
"conflict": { | ||
"drupal/core": "8.*" | ||
}, | ||
"scripts": { | ||
"post-create-project-cmd": [ | ||
"rm README.md LICENSE .travis.yml phpunit.xml.dist" | ||
] | ||
}, | ||
"config": { | ||
"vendor-dir": "vendor" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"extra": { | ||
"installer-paths": { | ||
"web/": ["type:drupal-core"], | ||
"web/sites/all/modules/contrib/{$name}/": ["type:drupal-module"], | ||
"web/sites/all/themes/contrib/{$name}/": ["type:drupal-theme"], | ||
"web/sites/all/libraries/{$name}/": ["type:drupal-library"], | ||
"web/sites/all/drush/{$name}/": ["type:drupal-drush"], | ||
"web/profiles/{$name}/": ["type:drupal-profile"] | ||
}, | ||
"preserve-paths": [ | ||
"web/sites/all/modules/contrib", | ||
"web/sites/all/themes/contrib", | ||
"web/sites/all/libraries", | ||
"web/sites/all/drush", | ||
"web/sites/default/settings.php", | ||
"web/sites/default/files" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
make start | ||
|
||
docker exec --user=82 $NAME drush -r /var/www/html/web status | grep 'Drupal version *: *7\.' | ||
make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM wodby/drupal-php:7.0 | ||
|
||
COPY composer.json /var/www/html | ||
|
||
RUN chown -R www-data:www-data /var/www/html/ && \ | ||
su-exec www-data composer require && \ | ||
su-exec www-data composer clear-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-include env_make | ||
|
||
VERSION ?= 7-7.0 | ||
|
||
REPO = wodby/drupal | ||
NAME = drupal-$(VERSION) | ||
|
||
.PHONY: build test push shell run start stop logs clean release | ||
|
||
build: | ||
docker build -t $(REPO):$(VERSION) ./ | ||
|
||
test: | ||
NAME=$(NAME) ./test.sh | ||
|
||
push: | ||
docker push $(REPO):$(VERSION) | ||
|
||
shell: | ||
docker run --rm --name $(NAME) -i -t $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) /bin/bash | ||
|
||
run: | ||
docker run --rm --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) $(CMD) | ||
|
||
start: | ||
docker run -d --name $(NAME) $(PORTS) $(VOLUMES) $(ENV) $(REPO):$(VERSION) | ||
|
||
stop: | ||
docker stop $(NAME) | ||
|
||
logs: | ||
docker logs $(NAME) | ||
|
||
clean: | ||
-docker rm -f $(NAME) | ||
|
||
release: build | ||
make push -e VERSION=$(VERSION) | ||
|
||
default: build |
Oops, something went wrong.