-
Notifications
You must be signed in to change notification settings - Fork 0
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 #331 from uw-it-aca/develop
Develop
- Loading branch information
Showing
4 changed files
with
73 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
*.pyc | ||
*.pyo | ||
*.mo | ||
*.db | ||
*.css.map | ||
*.egg | ||
*.egg-info | ||
*.sql.gz | ||
|
||
.cache | ||
.project | ||
.idea | ||
.pydevproject | ||
.DS_Store | ||
.Python | ||
.git/ | ||
.bin/ | ||
.installed.cfg | ||
.venv | ||
.env.sample | ||
|
||
Dockerfile* | ||
docker-compose* | ||
node_modules | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
logs/ | ||
pyvenv.cfg | ||
pip-selfcheck.json | ||
get-pip.py | ||
db.sqlite3 | ||
|
||
[Bb]in | ||
[Ii]nclude | ||
[Ll]ib | ||
[Ll]ib64 | ||
[Ll]ocal | ||
[Ss]cripts | ||
|
||
docker/*-values.yml |
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,31 +1,26 @@ | ||
ARG DJANGO_CONTAINER_VERSION=1.4.1 | ||
|
||
FROM gcr.io/uwit-mci-axdd/django-container:${DJANGO_CONTAINER_VERSION} as app-container | ||
FROM us-docker.pkg.dev/uwit-mci-axdd/containers/django-container:${DJANGO_CONTAINER_VERSION} as app-container | ||
|
||
USER root | ||
RUN apt-get update && apt-get install mysql-client libmysqlclient-dev -y | ||
RUN apt-get update && apt-get install libpq-dev -y | ||
USER acait | ||
|
||
ADD --chown=acait:acait setup.py /app/ | ||
ADD --chown=acait:acait requirements.txt /app/ | ||
ADD --chown=acait:acait README.md /app/ | ||
|
||
RUN . /app/bin/activate && pip install -r requirements.txt | ||
RUN . /app/bin/activate && pip install mysqlclient | ||
|
||
ADD --chown=acait:acait . /app/ | ||
ADD --chown=acait:acait docker/ project/ | ||
ADD --chown=acait:acait docker/app_deploy.sh /scripts | ||
ADD --chown=acait:acait docker/ /app/project/ | ||
ADD --chown=acait:acait docker/app_start.sh /scripts | ||
RUN chmod u+x /scripts/app_deploy.sh | ||
RUN chmod u+x /scripts/app_start.sh | ||
|
||
RUN /app/bin/pip install -r requirements.txt | ||
RUN /app/bin/pip install psycopg2 | ||
|
||
RUN . /app/bin/activate && pip install nodeenv && nodeenv -p &&\ | ||
npm install -g npm && ./bin/npm install less -g | ||
|
||
RUN . /app/bin/activate && python manage.py collectstatic --noinput &&\ | ||
python manage.py compress -f | ||
|
||
FROM gcr.io/uwit-mci-axdd/django-test-container:${DJANGO_CONTAINER_VERSION} as app-test-container | ||
FROM us-docker.pkg.dev/uwit-mci-axdd/containers/django-test-container:${DJANGO_CONTAINER_VERSION} as app-test-container | ||
|
||
COPY --from=app-container /app/ /app/ | ||
COPY --from=app-container /static/ /static/ |
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