-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (110 loc) · 5.51 KB
/
docker-compose.yml
File metadata and controls
112 lines (110 loc) · 5.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
x-commons: &commons
networks: [ internal ]
env_file: .env
volumes :
- ".:/app"
- "./tests/Unit/sandbox:/tmp" # Diretório sandbox para testes que podem precisar de um local no host
networks :
internal: # Rede interna para comunicação entre os contêineres de serviço
services :
composer :
<< : *commons # Herda configurações comuns
image : composer:2 # Imagem oficial do Composer v2
command: install # Comando padrão para instalar dependências
sftp :
image : jmcombs/sftp # Imagem para servidor SFTP
<< : *commons # Herda configurações comuns
networks: [ internal ]
ports : [ "2222:22" ] # Mapeia a porta 2222 do host para a 22 do contêiner
command : sftp:sftp:::upload # Configura usuário 'sftp', senha 'sftp', sem restrição de diretório, com diretório home em /upload
s3 :
image : quay.io/minio/minio:latest # Imagem para servidor S3 compatível (MinIO)
<< : *commons # Herda configurações comuns
networks: [ internal ]
ports : [ "9000:9000" ] # Mapeia a porta 9000 para acesso ao MinIO
command : server /data # Inicia o servidor MinIO com o diretório de dados /data
ftp :
<< : *commons # Herda configurações comuns
image : garethflowers/ftp-server # Imagem para servidor FTP
ports : [ "2121:21" ] # Mapeia a porta 2121 do host para a 21 do contêiner
networks: [ internal ]
test_local :
<< : *commons # Herda configurações comuns
build : tests/Unit # Constrói a imagem a partir do Dockerfile em tests/Unit
command: phpunit --stderr ./tests/Unit/LocalProviderTest.php # Comando para rodar testes do LocalProvider, com --stderr para exibir detalhes de depreciações
test_dropbox :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: phpunit ./tests/Unit/DropboxProviderTest.php # Comando para rodar testes do DropboxProvider
test_mega :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: phpunit ./tests/Unit/MegaProviderTest.php # Comando para rodar testes do MegaProvider
test_gdrive :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: phpunit ./tests/Unit/GDriveProviderTest.php # Comando para rodar testes do GDriveProvider
test_sftp :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/SFtpProviderTest.php # Comando para rodar testes do SFtpProvider
depends_on: [ sftp ] # Garante que o serviço sftp esteja pronto antes de rodar os testes
test_ftp :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/FtpProviderTest.php # Comando para rodar testes do FtpProvider
depends_on: [ ftp ] # Garante que o serviço ftp esteja pronto
test_s3 :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/S3ProviderTest.php # Comando para rodar testes do S3Provider
depends_on: [ s3 ] # Garante que o serviço s3 (MinIO) esteja pronto
test_upload_download:
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/UploadDownloadOperationsTest.php # Comando para rodar o novo teste
depends_on: [ sftp ] # Depende do serviço sftp para estar operacional
test_extra_commands :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: phpunit ./tests/Unit/ExtraCommandsTest.php
test_crypt_provider :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: phpunit ./tests/Unit/CryptProviderTest.php
test_union_provider :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: phpunit ./tests/Unit/UnionProviderTest.php
test_configuration :
<< : *commons
build : tests/Unit
command: phpunit ./tests/Unit/ConfigurationTest.php
test_edge_cases :
<< : *commons
build : tests/Unit
command: phpunit ./tests/Unit/EdgeCasesTest.php
test_sftp_to_s3 :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/FromSFtpToS3ProviderTest.php # Teste de transferência SFTP para S3
depends_on: [ sftp, s3 ] # Depende dos serviços sftp e s3
test_s3_to_local :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/FromS3ToLocalProviderTest.php # Teste de transferência S3 para Local
depends_on: [ s3 ] # Depende do serviço s3
test_s3_to_sftp :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/FromS3ToSFtpProviderTest.php # Teste de transferência S3 para SFTP
depends_on: [ s3, sftp ] # Depende dos serviços s3 e sftp
test_local_to_s3 :
<< : *commons # Herda configurações comuns
build : tests/Unit
command : phpunit ./tests/Unit/FromLocalToS3ProviderTest.php # Teste de transferência Local para S3
depends_on: [ s3 ] # Depende do serviço s3
cleanup_tests :
<< : *commons # Herda configurações comuns
build : tests/Unit
command: sh -c "rm -rf ./tests/Unit/sandbox/*" # Comando para limpar o diretório sandbox