Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 #112

Merged
merged 166 commits into from
May 6, 2020
Merged

V3 #112

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
4a86e17
downgrading log level to avoid spam
jaesivsm Jul 27, 2016
f1a1cb9
reset_feeds: only reseting active feed
jaesivsm Jul 27, 2016
789dbc3
setting global timeout for every crawler
jaesivsm Jul 29, 2016
378700b
fixing article with not title
jaesivsm Aug 17, 2016
532684a
refact, not using requests.get, always applying user-agent and other …
jaesivsm Aug 17, 2016
da5969c
push new articles in batch per feed
jaesivsm Sep 6, 2016
6fa2294
icon needs different delete method
jaesivsm Sep 6, 2016
03d3f77
fixing broken images from readability parsed content
jaesivsm Sep 9, 2016
018a852
feed construction was kinda broken
jaesivsm Oct 2, 2016
5d8ac70
big feature: clustering
jaesivsm Oct 2, 2016
2efdd96
all js/one page category & feed adding
jaesivsm Oct 2, 2016
13254e2
removing dead code (close #50)
jaesivsm Oct 2, 2016
957328f
getting rid of cluster_as_* tables, making the model lighter
jaesivsm Oct 3, 2016
4967f11
working on index optimization
jaesivsm Oct 3, 2016
763fd0b
adding test, bumping coverage
jaesivsm Oct 3, 2016
9514f39
adding comments and completing the auto feed construct
jaesivsm Oct 4, 2016
28d2aa8
enhancing article matching (close #49)
jaesivsm Oct 5, 2016
7316b29
fixing tricky request from the main page
jaesivsm Oct 6, 2016
fa417b9
adding notifications handling in JS (close #41)
jaesivsm Oct 8, 2016
8dbfcfe
fixing updating unread count
jaesivsm Oct 8, 2016
c1d9462
updating feed title triggers the denorm on cluster
jaesivsm Oct 8, 2016
ea2c0d2
basic tag support (close #54)
jaesivsm Oct 9, 2016
00e128e
fixing littles post deployement bug
jaesivsm Oct 10, 2016
6757146
fixing skipping from crawler
jaesivsm Oct 10, 2016
fe60cb0
handling url without scheme in feed
jaesivsm Oct 11, 2016
dd84cf3
improving feed deletion, no more browsing all the articles
jaesivsm Oct 11, 2016
f39e2a9
testing missing scheme handling
jaesivsm Oct 11, 2016
1b1a56c
adding tests
jaesivsm Oct 12, 2016
3a5b1d4
fix for reading cluster when not admin
jaesivsm Oct 12, 2016
ccb27e5
getting rid of dead code
jaesivsm Oct 12, 2016
cadd132
miscellaneous fixes
jaesivsm Oct 12, 2016
64b8c5d
sorting imports
jaesivsm Oct 21, 2016
0f2c3af
more dead code removal
jaesivsm Oct 23, 2016
6d53dde
adding codeclimate stuff
jaesivsm Oct 23, 2016
3598864
Fixing late loading of icon_url for feed icons
jaesivsm Oct 24, 2016
475019b
fixing adding article with multiple same tag
jaesivsm Oct 26, 2016
9347572
fixing feed construction and adding
jaesivsm Oct 26, 2016
a89a996
adding feed late probe, removing slow extra query counting recently a…
jaesivsm Oct 26, 2016
f7cab01
triming token out of readability errors
jaesivsm Oct 26, 2016
04d4e29
avoiding empty login when using oauth provider
jaesivsm Oct 26, 2016
6d65372
fixing deleting user
jaesivsm Oct 26, 2016
9f70fa9
smarter feed adding check: two feed can share a site link
jaesivsm Nov 1, 2016
22a4509
speeding up main request
jaesivsm Nov 1, 2016
5f5ae2f
better feed expiration management, close #56
jaesivsm Nov 19, 2016
311ba3c
enhancing title extractor
jaesivsm Nov 20, 2016
77e265d
adding fix for relative urls in articles
jaesivsm Nov 24, 2016
2429b4b
augmenting cyclomatic complexity threshold
jaesivsm Nov 25, 2016
f1d90c4
prefer HTML declared encoding over HTTP declared encoding
jaesivsm Nov 25, 2016
bb82b44
transiting from readability to mercury, close #58
jaesivsm Nov 26, 2016
ef2ec45
fixing various codeclimate warning
jaesivsm Dec 1, 2016
e36763d
removed default expires values
jaesivsm Dec 9, 2016
8a74b2f
Add support for feed deltas
da2x Dec 8, 2016
c32725a
Set Accept header to prefer known feed formats
da2x Dec 8, 2016
e40775d
regrouping const about mimetypes, using it when constructing feed
jaesivsm Dec 9, 2016
dea4f6b
Don’t leak active user name
da2x Dec 26, 2016
80900fa
Use input type email
da2x Dec 31, 2016
7cb4a97
all tags stipped and to lower case to avoid collision
jaesivsm Jan 2, 2017
43477a3
better expires handling server side
jaesivsm Jan 2, 2017
5a717aa
safer parsing
jaesivsm Jan 6, 2017
2894dcd
fix on recovery mech
jaesivsm Jan 6, 2017
7956aea
adding Date to recovery email
jaesivsm Jan 6, 2017
caf1a3c
handling failed html parsing
jaesivsm Feb 16, 2017
77afc76
enhancing probes and reset scripts
jaesivsm Feb 16, 2017
d979055
fixing filtering on 'No Category' on postgres
jaesivsm Feb 16, 2017
bf7bdce
fixing test relying on external api
jaesivsm Feb 16, 2017
fcc2313
style fix
jaesivsm Feb 16, 2017
1aacc36
Merge branch 'patch-4' of git://github.com/da2x/JARR into develop
jaesivsm Mar 5, 2017
0beb397
adding style for underlining wrong data in sign up form
jaesivsm Mar 5, 2017
c1924dd
not displaying unix time for last retrieved date
jaesivsm Mar 5, 2017
6659ddd
Merge branch 'patch-3' of git://github.com/da2x/JARR into patch-3
jaesivsm Mar 5, 2017
b335591
not loading entire article object when challenging
jaesivsm Mar 5, 2017
9076764
light factorizing and cleaning crawler
jaesivsm Mar 6, 2017
a16b78a
supporting permanent redirection
jaesivsm Mar 12, 2017
15946a4
style fix (close #63)
jaesivsm Mar 12, 2017
6239fed
fixing test
jaesivsm Mar 12, 2017
a40b69d
removing readability mention in the txt
jaesivsm Mar 12, 2017
79f787a
shortening title clustering option title
jaesivsm Mar 12, 2017
7c842dc
forgot something in crawler refact
jaesivsm Mar 30, 2017
997a6bb
speeding up queries
jaesivsm Mar 30, 2017
e1db33b
various improvement :
jaesivsm Apr 30, 2017
33ab74e
supporting comments (close #6)
jaesivsm May 1, 2017
70d928f
adding various special case handling (close #8):
jaesivsm May 8, 2017
8e3bc72
fixing og:title parsing
jaesivsm May 9, 2017
8750cf7
Adding clustering through TF-IDF
afouchet May 10, 2017
96d9170
fix on reddit integrations, keywords are never relevant
jaesivsm May 11, 2017
e9fb42e
striping tokens before storing them
jaesivsm May 11, 2017
0c1bac1
respliting tags
jaesivsm May 11, 2017
4a807ee
better article.lang handling
jaesivsm May 11, 2017
865dc92
working TDIDF and cosine similarity
jaesivsm May 11, 2017
09f5949
cleaning and optimizing code
jaesivsm May 16, 2017
d5a53de
adding documentation to the TF-IDF clustering
jaesivsm May 16, 2017
ad77c3f
updating feed information from parsed response
jaesivsm May 21, 2017
7c1d025
implementing a faster way to list articles without filters
jaesivsm May 27, 2017
34903f1
fixing args parsing and completing dependencies
jaesivsm Jun 16, 2017
53670c5
making crawlers do the parsing work
jaesivsm Jun 18, 2017
de9c177
bumping min similarity score
jaesivsm Jun 27, 2017
ffb1ed5
qualifying reading and clusterization
jaesivsm Jul 25, 2017
3841366
switching from requests_future to async/await + request
jaesivsm Jul 27, 2017
111111d
fix: normal user couldn't create category
jaesivsm Jul 30, 2017
c517a7c
Correcting some api types handling and adding reasons
jaesivsm Jul 31, 2017
2643a0d
failsafe for reddit integration
jaesivsm Aug 1, 2017
797f55f
typo
jaesivsm Aug 2, 2017
1803b84
fix on cluster handling
jaesivsm Aug 7, 2017
35a4dba
switching to blinker to integrations
jaesivsm Aug 17, 2017
25c9ba7
improving code quality through pylint
jaesivsm Nov 16, 2017
41d96cd
fixing joie du code test
jaesivsm May 3, 2018
78c558c
changing tag storing, drop table, add field
jaesivsm Aug 9, 2018
d5368e6
first step to v3
jaesivsm Aug 24, 2018
b301e7a
redoing and testing cluster control switch
jaesivsm Aug 30, 2018
c09d80e
droping sqlite support
jaesivsm Aug 30, 2018
3e37cf5
reorg model migration
jaesivsm Aug 30, 2018
fe3c4f4
stop parsing by hand
jaesivsm Aug 30, 2018
c0f91b2
getting rid of unused method
jaesivsm Aug 30, 2018
8ade9ab
bootstraping leftpanel method
jaesivsm Sep 7, 2018
b967812
updating codeclimate
jaesivsm Sep 17, 2018
d372cf2
introducing Makefile, docker compose env, moving code around
jaesivsm Feb 6, 2020
cc7947e
improving pylint score, cleaning more code
jaesivsm Feb 6, 2020
5eb63ca
improving feed deletion perf
jaesivsm Feb 6, 2020
a5e9228
fixing Makefile
jaesivsm Feb 6, 2020
e15c522
correcting migration and model tweaks, introducing link_hash
jaesivsm Feb 6, 2020
0418af6
fixing dev config for auth
jaesivsm Feb 7, 2020
f76ec7c
fixing migration for no diff when ends running
jaesivsm Feb 7, 2020
c3a24f0
splitting left panel requests
jaesivsm Feb 7, 2020
e68b7cb
introducing feed and crawler types (close #95)
jaesivsm Feb 19, 2020
99efffc
fixing unittests
jaesivsm Feb 19, 2020
dadb928
switching to circleci (#94)
jaesivsm Feb 20, 2020
a3e33a1
fixing import loop
jaesivsm Feb 20, 2020
bda651a
V3/ci and docker (#99)
jaesivsm Feb 21, 2020
cd9f4cf
adding coverage badge
jaesivsm Feb 24, 2020
0287b37
fixing codacy warnings
jaesivsm Feb 25, 2020
f6d8567
removing dangerous pattern highlighted by codacy
jaesivsm Feb 25, 2020
637a866
removing dead files, fixing default dev env docker compose
jaesivsm Mar 1, 2020
506ab56
improving feed deletion
jaesivsm Mar 10, 2020
21ea5a9
V3/feed management (#101)
jaesivsm Mar 11, 2020
163ad01
moving to flask-restx
jaesivsm Mar 11, 2020
d6081cb
V3/better ui api (#102)
jaesivsm May 3, 2020
e415f1f
fixing caching configurations for circle-ci builds
jaesivsm May 3, 2020
92f9e47
UI/Edit-Panel : Centering Loader
clarissecarzon May 3, 2020
f3a7930
UI altering default behavior for feed list
jaesivsm May 3, 2020
8544ef7
fixing build var for front docker
jaesivsm May 3, 2020
936aca4
Edit login form size on mobile
clarissecarzon May 3, 2020
6c2a03f
Fixed shadow on logout button
clarissecarzon May 4, 2020
73b9d09
V3/Edit-Panel: fix filters input border
clarissecarzon May 4, 2020
826f4cd
v3/Edit-Panel: fixed filters arrows
clarissecarzon May 4, 2020
bebe630
v3/Article: fix loader position
clarissecarzon May 4, 2020
c22ab15
Worker: fixing worker basic imports
jaesivsm May 4, 2020
52fe8f1
FIX: actually marking read reason on marked / consulted
jaesivsm May 4, 2020
dd6be6f
UI: fix, load more when reaching 2/3 of read in the current cluster list
jaesivsm May 4, 2020
1b60022
Worker: fixing basic worker configuration
jaesivsm May 4, 2020
95a7ec1
Worker: more fix following first deployment
jaesivsm May 4, 2020
6b8fbdf
Worker: adding loggers
jaesivsm May 4, 2020
c8bca1b
UI: fixing default value for filters on feed creation
jaesivsm May 4, 2020
f7129ab
UI: fix left menu toggling, state was uncertain depending of the default
jaesivsm May 4, 2020
ddd8e0d
UI: stop storing clear password in localstorage
jaesivsm May 4, 2020
48f8bf1
UI: do not fetch when we've reached the end of the unread bucket
jaesivsm May 4, 2020
848eb7b
better disabling urllib3 warnings
jaesivsm May 4, 2020
0702e45
Worker: adding logging, fixing tumblr worker
jaesivsm May 4, 2020
d1bddf8
V3/Edit-Panel : fixed proposed link on feed building
clarissecarzon May 4, 2020
a639d43
V3/ClusterList: fix main title line break
clarissecarzon May 4, 2020
5b80ed1
Server: fix number of items returned in unfiltered cluster query
jaesivsm May 4, 2020
f855921
prometheus integration (#100)
jaesivsm May 5, 2020
b63a956
Server: style cleaning and migration after prometheus implementation
jaesivsm May 5, 2020
3dd13bd
Server: cleaning migrations names and server_name
jaesivsm May 5, 2020
1b32222
Server: fixing test, passing at prometheus-distributed-client
jaesivsm May 5, 2020
899cebe
Whole: typing article on construction (#96)
jaesivsm May 6, 2020
c3fc30c
Server: fixing reddit feed building
jaesivsm May 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
199 changes: 199 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
version: 2.1

orbs:
python: circleci/python@0.2.1

jobs:
backend-build:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
# restore cache and docker layer cache
- restore_cache:
keys:
- jarrback-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}
paths:
- ~/caches/jarr-server.tar
- ~/caches/jarr-worker.tar
- run:
name: Loading docker image layer caches
command: |
set +o pipefail
docker load -i ~/caches/jarr-server.tar | true
docker load -i ~/caches/jarr-worker.tar | true
- run:
name: Building images for server and worker
command: |
mkdir -p ~/caches
make build-server
make build-worker
- run:
name: Saving docker image layer caches
command: |
docker save -o ~/caches/jarr-server.tar jarr-server
docker save -o ~/caches/jarr-worker.tar jarr-worker
- save_cache:
key: jarrback-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}-{{ epoch }}
paths:
- ~/caches/jarr-server.tar
- ~/caches/jarr-worker.tar

front-build:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
# restore cache and docker layer cache
- restore_cache:
keys:
- jarrfront-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}
paths:
- ~/caches/jarr-front.tar
- run:
name: Loading docker image layer caches
command: |
set +o pipefail
docker load -i ~/caches/jarr-front.tar | true
- run:
name: Building images for front
command: |
mkdir -p ~/caches
make build-front PUBLIC_URL=https://app.jarr.info REACT_APP_API_URL=https://api.jarr.info
- run:
name: Saving docker image layer caches
command: |
docker save -o ~/caches/jarr-front.tar jarr-front
- save_cache:
key: jarrfront-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}-{{ epoch }}
paths:
- ~/caches/jarr-front.tar

backend-test:
machine:
image: ubuntu-1604:201903-01
steps:
- checkout
# restore cache and docker layer cache
- restore_cache:
keys:
- jarrback-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}
paths:
- ~/caches/jarr-server.tar
- ~/caches/jarr-worker.tar
- run:
name: Loading docker image layer caches
command: |
docker load -i ~/caches/jarr-server.tar
docker load -i ~/caches/jarr-worker.tar
- run:
name: Moving test config to default config
command: |
mkdir -p ~/coverage_results
rm example_conf/jarr.test.json example_conf/jarr.json
mv example_conf/jarr.circleci.json example_conf/jarr.json
- run:
name: Starting test env (postgres)
command: |
docker-compose --file Dockerfiles/circleci-env.yml up -d
sleep 10s
- run:
name: Creating postgres database
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec postgresql su postgres -c
"createdb jarr --no-password"
- run:
name: Populating database with tables
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec server bash -c "pipenv run ./manager.py db_create"
- run:
name: Installing testing dependencies
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec server bash -c "pipenv sync --dev --bare"
- run:
name: Running tests
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec server bash -c
"pipenv run nosetests tests/ -vv --with-coverage --cover-package=jarr"
- run:
name: Uplaoding coverage to codacy
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec -u root server bash -c "chown -R jarr:jarr /jarr/coverage_results";
docker-compose --file Dockerfiles/circleci-env.yml
exec server bash -c
"pipenv run coverage xml -o coverage_results/coverage.xml";
pip install --upgrade codacy-coverage;
python-codacy-coverage -r ~/coverage_results/coverage.xml
- run:
name: Running PEP8 linter
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec server bash -c
"pipenv run pycodestyle --ignore=E126,E127,E128,W503 jarr/ --exclude=jarr/migrations"
- run:
name: Running MyPy linter
command: >-
docker-compose --file Dockerfiles/circleci-env.yml
exec server bash -c
"pipenv run mypy jarr --ignore-missing-imports"

push-docker-images:
machine:
image: ubuntu-1604:201903-01
steps:
- restore_cache:
keys:
- jarrback-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}
paths:
- ~/caches/jarr-server.tar
- ~/caches/jarr-worker.tar
- restore_cache:
keys:
- jarrfront-{{ .Environment.CACHE_VERSION }}.{{ .Branch }}
paths:
- ~/caches/jarr-front.tar
- run:
name: Loading ALL docker image layer caches
command: |
set +o pipefail
docker load -i ~/caches/jarr-server.tar
docker load -i ~/caches/jarr-worker.tar
docker load -i ~/caches/jarr-front.tar
- run:
name: Pushing tested images to registry
command: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
if [ "$CIRCLE_BRANCH" = "master" ]; then
export DOCKER_TAG=latest
else
export DOCKER_TAG=$CIRCLE_BRANCH
fi
docker image tag jarr-server $DOCKER_USER/jarr-server:$DOCKER_TAG
docker image tag jarr-worker $DOCKER_USER/jarr-worker:$DOCKER_TAG
docker image tag jarr-front $DOCKER_USER/jarr-front:$DOCKER_TAG
docker push $DOCKER_USER/jarr-server:$DOCKER_TAG
docker push $DOCKER_USER/jarr-worker:$DOCKER_TAG
docker push $DOCKER_USER/jarr-front:$DOCKER_TAG

workflows:
jarr-testing:
jobs:
- backend-build
- front-build
- backend-test:
requires:
- backend-build
- push-docker-images:
requires:
- backend-test
- front-build
filters:
branches:
only:
- master
- develop # TODO: remove when merging to master
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ eproject.cfg
venv
build

src/conf.py
.coverage

# node files
node_modules
src/web/static/js/bundle.min.js

# docker compose
.jarr-data/
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "submodules/bootstrap"]
path = submodules/bootstrap
url = https://github.com/twbs/bootstrap.git
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

18 changes: 18 additions & 0 deletions Dockerfiles/circleci-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3.2'
services:
postgresql:
image: postgres:11
ports:
- 0.0.0.0:5432:5432
environment:
- POSTGRES_PASSWORD=password
redis:
image: redis
ports:
- 0.0.0.0:6379:6379
server:
image: jarr-server:latest
volumes:
- "/home/circleci/project/tests:/jarr/tests"
- "/home/circleci/project/example_conf:/etc/jarr"
- "/home/circleci/coverage_results:/jarr/coverage_results:rw"
29 changes: 29 additions & 0 deletions Dockerfiles/dev-env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: '3.2'
services:
redis:
image: redis
ports:
- 0.0.0.0:6379:6379
rabbitmq:
image: rabbitmq
ports:
- 0.0.0.0:25672:25672
- 0.0.0.0:4369:4369
- 0.0.0.0:5671:5671
- 0.0.0.0:5672:5672
postgresql:
image: postgres:11
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
ports:
- 0.0.0.0:5432:5432
volumes:
- ../.jarr-data:/var/lib/postgresql/data
command:
- "postgres"
- "-c"
- "log_min_duration_statement=100"

volumes:
db-data:
13 changes: 13 additions & 0 deletions Dockerfiles/front
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:12.16.1 as build-deps
ARG PUBLIC_URL=
ARG REACT_APP_API_URL=0.0.0.0:8000
WORKDIR /jarr
RUN yarn global add serve
COPY jsclient/package.json jsclient/yarn.lock ./
COPY jsclient/src/ /jarr/src
COPY jsclient/public/ /jarr/public
RUN yarn \
&& yarn build \
&& rm -rf src public node_modules package.json yarn.lock
EXPOSE 80
CMD ["serve", "-p", "80", "-s", "/jarr/build"]
6 changes: 6 additions & 0 deletions Dockerfiles/migration
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM jarr_python-base:latest

COPY example_conf/logging.ini /etc/jarr/logging.ini
COPY example_conf/gunicorn.py /etc/jarr/gunicorn.py
EXPOSE 8000
CMD ["pipenv", "run", "/jarr/manager.py", "db", "upgrade"]
24 changes: 24 additions & 0 deletions Dockerfiles/pythonbase
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.7-slim

RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
gcc \
python3-dev \
libxml2-dev \
postgresql-server-dev-all \
&& pip install --no-cache-dir --upgrade pip pipenv \
&& apt clean --yes \
&& apt autoremove --yes \
&& rm -rf /var/log/apt /var/cache/apt /var/log/apt
RUN useradd jarr --create-home --shell /bin/bash --home-dir /jarr --user-group
COPY example_conf/jarr.json /etc/jarr/jarr.json
WORKDIR /jarr
USER jarr
COPY ./Pipfil* /jarr/
RUN pipenv sync
COPY ./manager.py /jarr/manager.py
COPY ./migrations/ /jarr/migrations
COPY ./*.py /jarr/
COPY ./jarr/ /jarr/jarr

VOLUME /etc/jarr/
6 changes: 6 additions & 0 deletions Dockerfiles/server
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM jarr-base:latest

COPY example_conf/logging.ini /etc/jarr/logging.ini
COPY example_conf/gunicorn.py /etc/jarr/gunicorn.py
EXPOSE 8000
CMD ["pipenv", "run", "gunicorn", "-c", "/etc/jarr/gunicorn.py", "--log-config", "/etc/jarr/logging.ini", "-b", "0.0.0.0:8000", "wsgi:application"]
3 changes: 3 additions & 0 deletions Dockerfiles/worker
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM jarr-base:latest
EXPOSE 8001
CMD ["pipenv", "run", "celery", "worker", "--app", "ep_celery.celery_app"]
Loading