Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
b65d02ed
Commit
b65d02ed
authored
Jan 21, 2017
by
Martin Bless
Browse files
[TASK] Improve Makefile
- Add better help - Declare targets as .PHONY for better robustness
parent
782ab28a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
b65d02ed
# Makefile for t3o/ter
#
# Type 'make' for help.
#
DOCKER_COMPOSE
=
"
$
$(pwd)
/data/scripts/docker-compose.sh"
COMPOSER
=
"
$
$(pwd)
/data/scripts/composer.sh"
include
.env
.PHONY
:
help
help
:
@
echo
"Please use 'make <target>' where <target> is one of"
@
echo
" help to show this menu."
@
echo
" help2 for more help."
@
echo
" init for: composer-install, install-typo3"
@
echo
" reset for: kill, down, init"
@echo " pull docker-compose
:
Pull images for services."
@
echo
" build docker-compose: Build or rebuild services."
@
echo
" ps docker-compose: List containers."
@
echo
" up docker-compose: Build, (re)create, start, and attach"
@
echo
" to containers for a service."
@
echo
" down docker-compose: Stops containers and removes containers, networks,"
@
echo
" volumes, and images created by 'up'."
@
echo
" stop docker-compose: Stop running containers without removing them."
@
echo
" kill docker-compose: Force stop service containers."
@
echo
" install-typo3 docker-compose: Start TYPO3"
@echo
" log Constantly echo log items to the console."
@echo " composer-install PHP Composer
:
Install."
@
echo
" composer-update PHP Composer: Update."
@
echo
@
echo
"Recommended:"
@
echo
" make init up log"
.PHONY
:
help2
help2
:
@
echo
@
echo
"help2"
@
echo
"====="
@
echo
@
echo
"Once TYPO3 is running direct your browser to one of:"
@
echo
" https://ter.typo3.127.0.0.1.xip.io/typo3/"
@
echo
" https://ter.typo3.127.0.0.1.xip.io/typo3/sysext/install/Start/Install.php"
@
echo
@
echo
"For a local installation it may be necessary to have file:"
@
echo
" ./data/typo3/html/typo3conf/AdditionalConfiguration.sample.php"
@
echo
"being active as file:"
@
echo
" ./data/typo3/html/typo3conf/AdditionalConfiguration.php"
@
echo
"Copy if necessary."
@
echo
@
echo
"End of help2."
@
echo
.PHONY
:
init
init
:
composer-install install-typo3
@
echo
@
echo
"Direct your browser to:"
@
echo
" https://ter.typo3.127.0.0.1.xip.io/typo3/"
@
echo
@
echo
"Type 'make help2' for more help."
@
echo
.PHONY
:
reset
reset
:
kill down init
up
:
$(DOCKER_COMPOSE)
up
-d
.PHONY
:
pull
pull
:
$(DOCKER_COMPOSE)
pull
.PHONY
:
build
build
:
$(DOCKER_COMPOSE)
build
--no-cache
.PHONY
:
ps
ps
:
$(DOCKER_COMPOSE)
ps
.PHONY
:
up
up
:
$(DOCKER_COMPOSE)
up
-d
.PHONY
:
down
down
:
$(DOCKER_COMPOSE)
down
--remove-orphans
.PHONY
:
stop
stop
:
$(DOCKER_COMPOSE)
stop
.PHONY
:
kill
kill
:
$(DOCKER_COMPOSE)
kill
build
:
$(DOCKER_COMPOSE)
build
--no-cache
pull
:
$(DOCKER_COMPOSE)
pull
log
:
$(DOCKER_COMPOSE)
logs
-f
--tail
=
100
down
:
$(DOCKER_COMPOSE)
down
--remove-orphans
composer-install
:
$(COMPOSER)
--working-dir
=
data/typo3
install
composer-update
:
$(COMPOSER)
--working-dir
=
data/typo3 up
.PHONY
:
install-typo3
install-typo3
:
up
$(DOCKER_COMPOSE)
run
--rm
db /src/data/scripts/wait-for-it.sh
-h
$(DATABASE_HOST_NAME)
-p
$(DATABASE_PORT)
-t
30
$(DOCKER_COMPOSE)
run
--rm
php ./bin/typo3cms
install
:setup
\
...
...
@@ -39,3 +121,19 @@ install-typo3: up
--admin-password
$(ADMIN_PASSWORD)
\
--site-name
$(TYPO3_SITENAME)
\
--site-setup-type
site
.PHONY
:
log
log
:
$(DOCKER_COMPOSE)
logs
-f
--tail
=
100
.PHONY
:
composer-install
composer-install
:
$(COMPOSER)
--working-dir
=
data/typo3
install
.PHONY
:
composer-update
composer-update
:
$(COMPOSER)
--working-dir
=
data/typo3 up
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment