-
Notifications
You must be signed in to change notification settings - Fork 33
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
jaseg
committed
Jul 5, 2022
1 parent
3ba9322
commit 00de98d
Showing
5 changed files
with
36 additions
and
1 deletion.
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,18 @@ | ||
FROM docker.io/archlinux:latest | ||
MAINTAINER [email protected] | ||
RUN pacman --noconfirm -Syu | ||
RUN pacman --noconfirm -Sy pugixml opencv pango cairo git python make clang cargo python-pip base-devel gerbv rsync tmux uwsgi uwsgi-plugin-python | ||
RUN cargo install usvg resvg | ||
RUN python3 -m pip install pip==21.3.1 | ||
RUN python3 -m pip install flask numpy lxml wasmtime svg_flatten_wasi resvg_wasi flask_wtf | ||
RUN --mount=type=bind,rw,destination=/git \ | ||
cd /git/gerbonara && \ | ||
python3 -m pip --disable-pip-version-check install . && \ | ||
cd /git && \ | ||
python3 -m pip --disable-pip-version-check install . | ||
RUN mkdir /gerboweb | ||
ADD ["gerboweb/uwsgi-gerboweb.ini","gerboweb/gerboweb.py","gerboweb/job_processor.py","gerboweb/job_queue.py","/gerboweb/"] | ||
ADD ["gerboweb/static","/gerboweb/"] | ||
ADD ["gerboweb/templates","/gerboweb/"] | ||
ADD gerboweb/gerboweb_prod.cfg /gerboweb/gerboweb.cfg | ||
ENTRYPOINT uwsgi --ini /gerboweb/uwsgi-gerboweb.ini --chmod-socket=660 --socket=/run/uwsgi/socket |
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,4 +1,3 @@ | ||
MAX_CONTENT_LENGTH=10000000 | ||
SECRET_KEY="FIXME: CHANGE THIS KEY" | ||
UPLOAD_PATH="/var/cache/gerboweb/upload" | ||
JOB_QUEUE_DB="/var/cache/gerboweb/job_queue.sqlite3" |
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 @@ | ||
[uwsgi] | ||
master = True | ||
cheap = True | ||
die-on-idle = False | ||
manage-script-name = True | ||
plugins = python3 | ||
chdir = /gerboweb | ||
mount = /=gerboweb:app | ||
env = GERBOWEB_SETTINGS=gerboweb.cfg | ||
mule = job_processor.py | ||
|