Skip to content
This repository was archived by the owner on Mar 15, 2019. It is now read-only.

Commit f81eb30

Browse files
author
Julien Neuhart
authored
fixing #13, #14 (#15)
Docker Sync issue (#13) and Toolbox scripts are not called (#14)
1 parent 334a278 commit f81eb30

File tree

8 files changed

+17
-13
lines changed

8 files changed

+17
-13
lines changed

.docker/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
docker-compose.yml
22
docker-compose-graylog.yml
33
docker-compose-proxy.yml
4-
docker-compose-toolbox.yml
5-
docker-sync.yml
4+
docker-compose-toolbox.yml

.docker/.orbit/orbit-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ commands:
2525
- use: "toolbox-build"
2626
run:
2727
{{- if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
28-
- orbit generate -t=.docker/docker-sync.blueprint.yml -o=.docker/docker-sync.yml -v=Kickoff,kickoff.yml -e=Kickoff,.env
28+
- orbit generate -t=docker-sync.blueprint.yml -o=docker-sync.yml -v=Kickoff,kickoff.yml -e=Kickoff,.env
2929
{{- end }}
3030
- orbit generate -t=.docker/toolbox/Dockerfile.blueprint -o=.docker/toolbox/Dockerfile -v=Kickoff,kickoff.yml -e=Kickoff,.env
3131
- orbit generate -t=.docker/toolbox/conf.d/memory-limit.blueprint.ini -o=.docker/toolbox/conf.d/memory-limit.ini -v=Kickoff,kickoff.yml -e=Kickoff,.env

.docker/.orbit/orbit-down.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ commands:
2424
- use: "toolbox-down"
2525
run:
2626
{{- if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
27-
- docker-sync stop -c=.docker/docker-sync.yml
27+
- docker-sync stop -c=docker-sync.yml
2828
{{- end }}
2929
- docker-compose -p {{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }} -f .docker/docker-compose-toolbox.yml down
3030

.docker/.orbit/orbit-up.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ commands:
2424
- use: "toolbox-up"
2525
run:
2626
{{- if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
27-
- docker-sync start -c=.docker/docker-sync.yml
27+
- docker-sync start -c=docker-sync.yml
2828
{{- end }}
2929
- docker-compose -p {{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }} -f .docker/docker-compose-toolbox.yml up -d
30+
- orbit run traefik-self-signed-certificate -c=.docker/.orbit/orbit-docker-commands.yml -v=Kickoff,kickoff.yml -e=Kickoff,.env -s
31+
- orbit run traefik-htdigest -c=.docker/.orbit/orbit-docker-commands.yml -v=Kickoff,kickoff.yml -e=Kickoff,.env -s
32+
- orbit run graylog-passwords -c=.docker/.orbit/orbit-docker-commands.yml -v=Kickoff,kickoff.yml -e=Kickoff,.env -s
33+
3034

3135
# |--------------------------------------------------------------------------
3236
# | orbit run proxy-up

.docker/docker-compose-toolbox.blueprint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
- traefik.enable=false
3131
volumes:
3232
{{- if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
33-
- sync_{{ .EnvFiles.Kickoff.ENV }}_{{ .Values.Kickoff.project.name }}_app:/var/www/html:nocopy
33+
- {{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }}_sync_app:/var/www/html:nocopy
3434
{{- else }}
3535
- ../app:/var/www/html:{{ if eq "darwin" .Os }}cached{{ else }}ro{{ end }}
3636
{{- end }}
@@ -49,6 +49,6 @@ networks:
4949
volumes:
5050

5151

52-
sync_{{ .EnvFiles.Kickoff.ENV }}_{{ .Values.Kickoff.project.name }}_app:
52+
{{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }}_sync_app:
5353
external: true
5454
{{- end }}

.docker/docker-compose.blueprint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ services:
2424
- backend
2525
volumes:
2626
{{- if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
27-
- sync_{{ .EnvFiles.Kickoff.ENV }}_{{ .Values.Kickoff.project.name }}_app:/var/www/html:nocopy
27+
- {{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }}_sync_app:/var/www/html:nocopy
2828
{{- else }}
2929
- ../app:/var/www/html:{{ if eq "darwin" .Os }}cached{{ else }}ro{{ end }}
3030
{{- end }}
@@ -48,7 +48,7 @@ services:
4848
- traefik.enable=false
4949
volumes:
5050
{{- if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
51-
- sync_{{ .EnvFiles.Kickoff.ENV }}_{{ .Values.Kickoff.project.name }}_app:/var/www/html:nocopy
51+
- {{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }}_sync_app:/var/www/html:nocopy
5252
{{- else }}
5353
- ../app:/var/www/html:{{ if eq "darwin" .Os }}cached{{ else }}ro{{ end }}
5454
{{- end }}
@@ -207,6 +207,6 @@ volumes:
207207
driver: local
208208
{{ end }}
209209
{{ if eq "true" .EnvFiles.Kickoff.ENABLE_DOCKER_SYNC }}
210-
sync_{{ .EnvFiles.Kickoff.ENV }}_{{ .Values.Kickoff.project.name }}_app:
210+
{{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }}_sync_app:
211211
external: true
212212
{{- end }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.env
22
.docker-sync
3-
.idea
3+
.idea
4+
docker-sync.yml

.docker/docker-sync.blueprint.yml renamed to docker-sync.blueprint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ options:
44
verbose: false
55

66
syncs:
7-
sync_{{ .EnvFiles.Kickoff.ENV }}_{{ .Values.Kickoff.project.name }}_app:
8-
src: '../app'
7+
{{ .EnvFiles.Kickoff.ENV }}{{ .Values.Kickoff.project.name }}_sync_app:
8+
src: './app/'
99
sync_strategy: {{ if eq "darwin" .Os }}'native_osx'{{ else }}'unison'{{ end }}

0 commit comments

Comments
 (0)