Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
CTB
ctb-platform-backend-antigo
Commits
a5f55e79
Commit
a5f55e79
authored
Feb 12, 2018
by
Laury Bueno
Browse files
[Test] updated dev paths
parent
f534d64f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
README.md
+3
-3
compose/test/django/Dockerfile
compose/test/django/Dockerfile
+1
-1
No files found.
README.md
View file @
a5f55e79
...
...
@@ -23,9 +23,9 @@ docker-compose -f local.yml exec django pytest
-
Você deseja apenas executar os testes sem necessariamente levantar o servidor. Antes é necessário construir a imagem do backend e disponibilizar o banco de dados para então executar o pytest via
`docker run`
```
docker build -f compose/
dev
/django/Dockerfile -t django_test .
docker run -d --env-file=./compose/
dev
/test_env --name=postgres_test postgres:9.6
docker run --env-file=./compose/
dev
/test_env --link=postgres_test:postgres \
docker build -f compose/
test
/django/Dockerfile -t django_test .
docker run -d --env-file=./compose/
test
/test_env --name=postgres_test postgres:9.6
docker run --env-file=./compose/
test
/test_env --link=postgres_test:postgres \
django_test /test.sh
```
...
...
compose/test/django/Dockerfile
View file @
a5f55e79
...
...
@@ -14,7 +14,7 @@ COPY ./compose/production/django/entrypoint.sh /entrypoint.sh
RUN
sed
-i
's/\r//'
/entrypoint.sh
RUN
chmod
+x /entrypoint.sh
COPY
./compose/
dev
/django/test.sh /test.sh
COPY
./compose/
test
/django/test.sh /test.sh
RUN
sed
-i
's/\r//'
/test.sh
RUN
chmod
+x /test.sh
...
...
Write
Preview
Markdown
is supported
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