-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da17b36
commit 062eb34
Showing
15 changed files
with
204 additions
and
108 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
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,29 @@ | ||
version: '3.2' | ||
services: | ||
db: | ||
image: mysql:8.2 | ||
env_file: | ||
- ./environments/dev-docker-mysql.env | ||
ports: | ||
- 3306:3306 | ||
app: | ||
build: | ||
context: . | ||
dockerfile: dockerfiles/alpine.dev.mysql.Dockerfile | ||
image: shhh | ||
depends_on: | ||
- db | ||
env_file: | ||
- ./environments/dev-docker-mysql.env | ||
ports: | ||
- 8081:8081 | ||
volumes: | ||
- .:/opt/shhh:delegated | ||
adminer: | ||
image: adminer | ||
depends_on: | ||
- db | ||
ports: | ||
- 8082:8080 | ||
volumes: | ||
mysql: |
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,29 @@ | ||
version: '3.2' | ||
services: | ||
db: | ||
image: postgres:15.4-alpine3.18 | ||
env_file: | ||
- ./environments/dev-docker-postgres.env | ||
ports: | ||
- 5432:5432 | ||
app: | ||
build: | ||
context: . | ||
dockerfile: dockerfiles/alpine.dev.Dockerfile | ||
image: shhh | ||
depends_on: | ||
- db | ||
env_file: | ||
- ./environments/dev-docker-postgres.env | ||
ports: | ||
- 8081:8081 | ||
volumes: | ||
- .:/opt/shhh:delegated | ||
adminer: | ||
image: adminer | ||
depends_on: | ||
- db | ||
ports: | ||
- 8082:8080 | ||
volumes: | ||
postgres: |
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
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,51 @@ | ||
# This dockerfile runs the application with the bare Flask | ||
# server. As it's for development only purposes. | ||
# | ||
# When using Gunicorn in a more prod-like config, multiple | ||
# workers would require to use the --preload option, else | ||
# the scheduler would spawn multiple scheduler instances. | ||
# | ||
# Note it would not be comptatible with Gunicorn --reload | ||
# flag, which is useful to reload the app on change, for | ||
# development purposes. | ||
# | ||
# Example: CMD gunicorn -b :8081 -w 3 wsgi:app --preload | ||
# | ||
# To use Gunicorn, please use: alpine.gunicorn.Dockerfile | ||
|
||
FROM python:3.12-alpine3.18 | ||
|
||
RUN apk update \ | ||
&& apk add --no-cache \ | ||
gcc \ | ||
g++ \ | ||
libffi-dev \ | ||
musl-dev \ | ||
mariadb-dev \ | ||
yarn \ | ||
&& python -m pip install --upgrade pip | ||
|
||
ENV TZ UTC | ||
|
||
WORKDIR /opt/shhh | ||
|
||
ARG GROUP=app USER=shhh UID=1001 GID=1001 | ||
|
||
RUN addgroup --gid "$GID" "$GROUP" \ | ||
&& adduser --uid "$UID" --disabled-password --gecos "" \ | ||
--ingroup "$GROUP" "$USER" | ||
|
||
USER $USER | ||
ENV PATH="/home/$USER/.local/bin:${PATH}" | ||
|
||
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1 | ||
|
||
COPY requirements.mysql.txt . | ||
RUN pip install --no-cache-dir --no-warn-script-location \ | ||
--user -r requirements.mysql.txt | ||
|
||
COPY --chown=$USER:$GROUP . . | ||
|
||
RUN yarn install --modules-folder=shhh/static/vendor | ||
|
||
CMD flask run --host=0.0.0.0 --port 8081 --reload |
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.
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,34 @@ | ||
APScheduler==3.10.4 | ||
blinker==1.7.0 | ||
certifi==2023.7.22 | ||
cffi==1.16.0 | ||
charset-normalizer==3.3.2 | ||
click==8.1.7 | ||
cryptography==41.0.5 | ||
cssmin==0.2.0 | ||
Flask==3.0.0 | ||
Flask-APScheduler==1.13.1 | ||
Flask-Assets==2.1.0 | ||
Flask-SQLAlchemy==3.1.1 | ||
gunicorn==21.2.0 | ||
htmlmin==0.1.12 | ||
idna==3.4 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
jsmin==3.0.1 | ||
MarkupSafe==2.1.3 | ||
marshmallow==3.20.1 | ||
packaging==23.2 | ||
pycparser==2.21 | ||
PyMySQL==1.1.0 | ||
python-dateutil==2.8.2 | ||
pytz==2023.3.post1 | ||
requests==2.31.0 | ||
six==1.16.0 | ||
SQLAlchemy==2.0.23 | ||
typing_extensions==4.8.0 | ||
tzlocal==5.2 | ||
urllib3==2.1.0 | ||
webargs==8.3.0 | ||
webassets==2.0 | ||
Werkzeug==3.0.1 |
Oops, something went wrong.