|
31 | 31 | ## Removes all containers and volumes
|
32 | 32 | destroy: stop
|
33 | 33 | echo "$(EMOJI_litter) Removing the project"
|
34 |
| - git clean -dfx |
35 | 34 | docker-compose down -v --remove-orphans
|
| 35 | + git clean -dfx |
36 | 36 |
|
37 | 37 | ## Starts docker-compose up -d
|
38 | 38 | start:
|
@@ -82,6 +82,15 @@ create-certificate: install-mkcert
|
82 | 82 | if [[ ! -f $(HOME)/.dinghy/certs/${HOST}.key ]]; then mkcert -cert-file $(HOME)/.dinghy/certs/${HOST}.crt -key-file $(HOME)/.dinghy/certs/${HOST}.key ${HOST}; fi;
|
83 | 83 | if [[ ! -f $(HOME)/.dinghy/certs/${MAIL}.key ]]; then mkcert -cert-file $(HOME)/.dinghy/certs/${MAIL}.crt -key-file $(HOME)/.dinghy/certs/${MAIL}.key ${MAIL}; fi;
|
84 | 84 |
|
| 85 | +## Choose the right docker-compose file for your environment |
| 86 | +link-compose-file: |
| 87 | + echo "$(EMOJI_triangular_ruler) Linking the OS specific compose file" |
| 88 | +ifeq ($(shell uname -s), Darwin) |
| 89 | + ln -snf .project/docker/docker-compose.darwin.yml docker-compose.yml |
| 90 | +else |
| 91 | + ln -snf .project/docker/docker-compose.unix.yml docker-compose.yml |
| 92 | +endif |
| 93 | + |
85 | 94 | ## Initialize the docker setup
|
86 | 95 | init-docker: create-dirs create-certificate
|
87 | 96 | echo "$(EMOJI_rocket) Initializing docker environment"
|
@@ -116,7 +125,7 @@ typo3-install-autocomplete:
|
116 | 125 | curl -sLO https://raw.githubusercontent.com/TYPO3/TYPO3.CMS/master/dynamicReturnTypeMeta.json
|
117 | 126 |
|
118 | 127 | ## To start an existing project incl. rsync from fileadmin, uploads and database dump
|
119 |
| -install-project: destroy add-hosts-entry init-docker composer-install typo3-add-dockerconfig typo3-install-autocomplete typo3-setupinstall mysql-restore typo3-clearcache typo3-comparedb |
| 128 | +install-project: destroy link-compose-file add-hosts-entry init-docker composer-install typo3-add-dockerconfig typo3-install-autocomplete typo3-setupinstall mysql-restore typo3-clearcache typo3-comparedb |
120 | 129 | echo "---------------------"
|
121 | 130 | echo ""
|
122 | 131 | echo "The project is online $(EMOJI_thumbsup)"
|
@@ -208,3 +217,4 @@ EMOJI_helicopter := "🚁️"
|
208 | 217 | EMOJI_broom := "🧹"
|
209 | 218 | EMOJI_nutandbolt := "🔩"
|
210 | 219 | EMOJI_crystal_ball := "🔮"
|
| 220 | +EMOJI_triangular_ruler := "📐" |
0 commit comments