-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from VictorArnaud/dev
Finalizando a release 01
- Loading branch information
Showing
340 changed files
with
10,410 additions
and
7,588 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: '3' | ||
# Homolog enviroment | ||
services: | ||
tbl-homolog: | ||
image: victorhad/tbl:homolog | ||
container_name: tbl-homolog | ||
build: | ||
context: . | ||
dockerfile: ./images/homolog/Dockerfile | ||
ports: | ||
- "8000:8080" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '3' | ||
# Test enviroment | ||
services: | ||
tbl-test: | ||
image: victorhad/tbl:test | ||
container_name: tbl-test | ||
build: | ||
context: . | ||
dockerfile: ./images/homolog/Dockerfile | ||
environment: | ||
- CODACY_PROJECT_TOKEN=2856565478ce4400a4cd4731950bfb89 | ||
ports: | ||
- "8000:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
version: '3' | ||
# Development enviroment | ||
services: | ||
tbl-local: | ||
image: victorhad/tbl:local | ||
container_name: tbl-local | ||
environment: | ||
- CODACY_PROJECT_TOKEN=2856565478ce4400a4cd4731950bfb89 | ||
build: | ||
context: . | ||
dockerfile: ./images/local/Dockerfile | ||
volumes: | ||
- .:/software | ||
- .:/home/developer/ | ||
ports: | ||
- "8080:8080" | ||
- "8000:8080" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Build an debian image | ||
FROM python:3.6 | ||
|
||
# Update, Upgrade and configure locale | ||
RUN apt-get update | ||
|
||
# Install SO dependecies | ||
RUN apt-get install -y python3-dev \ | ||
python3-pip \ | ||
libpq-dev \ | ||
gettext \ | ||
vim \ | ||
build-essential | ||
|
||
# Install pip dependecies | ||
COPY pgtbl/requirements.txt /requirements/local.txt | ||
RUN pip3 install --upgrade pip | ||
RUN pip3 install -r /requirements/local.txt | ||
|
||
ADD . /software | ||
WORKDIR /software | ||
|
||
# Insert Enviroment variable | ||
ENV MODE_ENVIROMENT=development | ||
|
||
# Run the dev script before and after any command | ||
RUN chmod +x images/homolog/homolog.sh | ||
ENTRYPOINT ["images/homolog/homolog.sh"] | ||
|
||
# Expose 8000 port | ||
EXPOSE 8080 | ||
|
||
# Run the server | ||
CMD ["python3", "pgtbl/manage.py", "runserver", "0.0.0.0:8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# | ||
# Purpose: Config homolog enviroment | ||
# | ||
# Author: Victor Arnaud <victorhad@gmail.com> | ||
|
||
echo "Creating migrations and insert into sqlite database" | ||
make migrations | ||
make migrate | ||
|
||
echo "Run the server" | ||
make run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.