forked from cds-snc/track-web
-
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 #3 from cds-snc/master
refresh from main CDS master branch
- Loading branch information
Showing
25 changed files
with
550 additions
and
135 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
FROM python:3.6 | ||
MAINTAINER David Buckley <david.buckley@cds-snc.ca> | ||
LABEL Description="Track Digital Security Compliance" Vendor="Canadian Digital Service" | ||
LABEL Description="Track Web Security Compliance" Vendor="Canadian Digital Service" | ||
|
||
COPY setup.py deploy/setup.py | ||
COPY track deploy/track | ||
COPY MANIFEST.in deploy/MANIFEST.in | ||
RUN python -m venv .env && . .env/bin/activate | ||
RUN pip install deploy/. | ||
FROM python:3.5 as python-base | ||
COPY requirements.txt /opt/track-web/requirements.txt | ||
COPY setup.py /opt/track-web/setup.py | ||
COPY track /opt/track-web/track | ||
COPY MANIFEST.in /opt/track-web/MANIFEST.in | ||
|
||
RUN groupadd -r https && useradd --no-log-init -r -g https https | ||
USER https:https | ||
# Build wheels to install into production image | ||
# Force a build with --no-binary to get around the case where a wheel is available for python:3.5 but not python:3.5-alpine | ||
RUN pip install --upgrade pip && mkdir wheels && pip wheel --no-binary :all: -r /opt/track-web/requirements.txt -w wheels && pip wheel --no-deps /opt/track-web/ -w wheels | ||
|
||
FROM python:3.5-alpine | ||
MAINTAINER David Buckley <david.buckley@cds-snc.ca> | ||
LABEL Description="Track Digital Security Compliance" Vendor="Canadian Digital Service" | ||
|
||
COPY --from=python-base /wheels /wheels | ||
|
||
RUN pip install /wheels/* && rm -rf /wheels /root/.cache/pip && \ | ||
addgroup -S track-web && adduser -S -G track-web track-web && \ | ||
mkdir -p /opt/track-web/.cache && \ | ||
chown -R track-web /opt/track-web | ||
USER track-web:track-web | ||
|
||
EXPOSE 5000 | ||
ENTRYPOINT ["gunicorn", "--pythonpath=deploy/track", "--bind=0.0.0.0:5000", "--worker-class=gevent", "wsgi:app"] | ||
ENTRYPOINT ["gunicorn", "track.wsgi:app", "--bind=0.0.0.0:5000", "--worker-class=gthread", "--access-logfile=-", "--error-logfile=-", "--capture-output"] |
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 |
---|---|---|
@@ -1,12 +1,27 @@ | ||
[La version française suit.](#---------------------------------------------------------------------) | ||
|
||
# Track-web documentation | ||
|
||
Welcome to the [`track-web`](https://github.com/cds-snc/track-web) documentation! | ||
Here you will find the following documents to help gain an understanding around the system. | ||
|
||
| document | description | | ||
| -------- | ----------- | | ||
| [additions.md](additions.md) | This document outlines the location of key functionality to facilitate making additions or changes to the system. | | ||
| [deploy.md](deploy.md) | This document outlines a basic deployment workflow. | | ||
| [google-analytics.md](google-analytics.md) | This document outlines the custom Google Analytics events that we have bundled into the project. | | ||
| [local-instructions.md](local-instructions.md) | This document contains step-by-step instructions on how to setup a development verison of the project locally. | | ||
| [updating-packages.md](updating-packages.md) | This document is a note of all JavaScript packages that have been included in the `static` folder and should be updated when new versions come out. | | ||
| document | description | | ||
| -------- | ----------- | | ||
| [additions.md](en/additions.md) | This document outlines the location of key functionality to facilitate making additions or changes to the system. | | ||
| [google-analytics.md](en/google-analytics.md) | This document outlines the custom Google Analytics events that we have bundled into the project. | | ||
| [local-instructions.md](en/local-instructions.md) | This document contains step-by-step instructions on how to setup a development verison of the project locally. | | ||
| [updating-packages.md](en/updating-packages.md) | This document is a note of all JavaScript packages that have been included in the `static` folder and should be updated when new versions come out. | | ||
|
||
## --------------------------------------------------------------------- | ||
|
||
# Documents sur track-web | ||
|
||
Bienvenue dans les documents sur [`track-web`](https://github.com/cds-snc/track-web)! | ||
Vous trouverez ici les documents suivants pour vous aider à comprendre le système. | ||
|
||
| document | description | | ||
| -------- | ----------- | | ||
| [ajouts.md](fr/ajouts.md) | Ce document décrit l’emplacement des principales fonctionnalités pour faciliter les ajouts ou les modifications au système. | | ||
| [google-analytics.md](fr/google-analytics.md) | Ce document présente les événements personnalisés de Google Analytics que nous avons groupés dans le projet. | | ||
| [directives-locales.md](fr/directives-locales.md) | Ce document contient des directives étape par étape sur la configuration d’une version de développement du projet à l’échelle locale. | | ||
| [mise-à-jour-des-trousses.md](fr/mise-a-jour-des-trousses.md) | Ce document est une note de toutes les trousses JavaScript qui ont été incluses dans le dossier statique et doivent être mises à jour lorsque de nouvelles versions sont présentées. | |
Empty file.
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 @@ | ||
[Français](../fr) | ||
|
||
# Track-web documentation | ||
|
||
Welcome to the [`track-web`](https://github.com/cds-snc/track-web) documentation! | ||
Here you will find the following documents to help gain an understanding around the system. | ||
|
||
| document | description | | ||
| -------- | ----------- | | ||
| [additions.md](additions.md) | This document outlines the location of key functionality to facilitate making additions or changes to the system. | | ||
| [google-analytics.md](google-analytics.md) | This document outlines the custom Google Analytics events that we have bundled into the project. | | ||
| [local-instructions.md](local-instructions.md) | This document contains step-by-step instructions on how to setup a development verison of the project locally. | | ||
| [updating-packages.md](updating-packages.md) | This document is a note of all JavaScript packages that have been included in the `static` folder and should be updated when new versions come out. | |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
[English](../en) | ||
|
||
# Documents sur track-web | ||
|
||
Bienvenue dans les documents sur [`track-web`](https://github.com/cds-snc/track-web)! | ||
Vous trouverez ici les documents suivants pour vous aider à comprendre le système. | ||
|
||
| document | description | | ||
| -------- | ----------- | | ||
| [ajouts.md](ajouts.md) | Ce document décrit l’emplacement des principales fonctionnalités pour faciliter les ajouts ou les modifications au système. | | ||
| [google-analytics.md](google-analytics.md) | Ce document présente les événements personnalisés de Google Analytics que nous avons groupés dans le projet. | | ||
| [directives-locales.md](directives-locales.md) | Ce document contient des directives étape par étape sur la configuration d’une version de développement du projet à l’échelle locale. | | ||
| [mise-à-jour-des-trousses.md](mise-a-jour-des-trousses.md) | Ce document est une note de toutes les trousses JavaScript qui ont été incluses dans le dossier statique et doivent être mises à jour lorsque de nouvelles versions sont présentées. | |
Oops, something went wrong.