Skip to content

Commit

Permalink
Fix problems in the quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Rey committed Jun 29, 2023
1 parent 1e457cb commit 521d22a
Show file tree
Hide file tree
Showing 5 changed files with 567 additions and 484 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ RUN apt-get update && apt-get install -y \
# cleanup apt caches to keep image small
rm -rf /var/lib/apt/lists/*

SHELL ["/bin/bash", "-c"]
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
SHELL ["/bin/sh", "-c"]

# Setup Python virtualenv separately from code dir in /opt/oddslingers/.venv-docker.
# It needs to be outside of the code dir because the code is mounted as a volume
# and would overwite the docker-specific venv with the incompatible host venv.
Expand All @@ -63,7 +67,7 @@ COPY ./core/Pipfile.lock "$ODDSLINGERS_ROOT/Pipfile.lock"
RUN jq -r '.default,.develop | to_entries[] | .key + .value.version' "$ODDSLINGERS_ROOT/Pipfile.lock" | \
pip install --no-cache-dir -r /dev/stdin && \
rm "$ODDSLINGERS_ROOT/Pipfile.lock"
RUN npm install --global npm yarn
RUN npm install --global npm && npm install --global yarn
RUN userdel "$DJANGO_USER" && addgroup --system "$DJANGO_USER" && \
adduser --system --ingroup "$DJANGO_USER" --shell /bin/false "$DJANGO_USER"

Expand Down
176 changes: 130 additions & 46 deletions core/Pipfile
Original file line number Diff line number Diff line change
@@ -1,52 +1,136 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
bpython = "*"
ipdb = "*"
django-pdb = "*"
codecov = "*"
coverage = "*"
flake8 = "*"
flake8-formatter-junit-xml = "*"
pyflakes = "*"
tblib = "*"
unittest-xml-reporting = "*"

name = "pypi"

[packages]
channels = "<2.0.0"
Django = ">2.0,<2.3"
asgi_redis = "*"
psycopg2-binary = {version = "*",markers="implementation_name == 'cpython'"}
psycopg2cffi = {version = "*",markers="implementation_name == 'pypy'"}
django-allauth = "*"
django-anymail = "*"
django-hijack = "*"
django-redis = "*"
django-user-sessions = "*"
django-extensions = "*"
django-dramatiq = "*"
dramatiq = {extras = ["redis", "watch"],version = "*"}
aiohttp = "==3.6.2"
aiosmtplib = "==1.1.3"
argh = "==0.26.2"
asgi-redis = "==1.4.3"
asgiref = "==1.1.2"
async-timeout = "==3.0.1"
attrs = "==19.3.0"
autobahn = "==20.3.1"
automat = "==20.2.0"
backcall = "==0.1.0"
beautifulsoup4 = "==4.8.2"
bleach = "==3.1.4"
certifi = "==2019.11.28"
cffi = "==1.14.0"
channels = "==1.1.8"
chardet = "==3.0.4"
click = "==7.1.1"
constantly = "==15.1.0"
crontab = "==0.22.6"
cryptography = "==2.8"
daphne = "==1.4.2"
decorator = "==4.4.2"
defusedxml = "==0.6.0"
distro = "==1.4.0"
django = "==2.2.11"
django-allauth = "==0.41.0"
django-anymail = "==7.0.0"
django-compat = "==1.0.15"
django-debug-toolbar = "==2.2"
django-debug-toolbar-template-timings = "==0.9"
django-dramatiq = "==0.9.1"
django-extensions = "==2.2.8"
django-hijack = "==2.1.10"
django-redis = "==4.11.0"
django-user-sessions = "==1.7.1"
dramatiq = "==1.8.1"
flask = "==1.1.1"
geoip2 = "==3.0.0"
gevent = "==1.4.0"
greenlet = "==0.4.15"
grequests = "==0.4.0"
html2text = "==2020.1.16"
hyperlink = "==19.0.0"
idna = "==2.9"
incremental = "==17.5.0"
ipython = "==7.13.0"
ipython-genutils = "==0.2.0"
itsdangerous = "==1.1.0"
jedi = "==0.16.0"
jinja2 = "==2.11.1"
lxml = "==4.5.0"
markupsafe = "==1.1.1"
matrix-client = "==0.3.2"
maxminddb = "==1.5.2"
msgpack-python = "==0.5.6"
multidict = "==4.7.5"
mypy = "==0.770"
mypy-extensions = "==0.4.3"
oauthlib = "==3.1.0"
parso = "==0.6.2"
pathtools = "==0.1.2"
pexpect = "==4.8.0"
pickleshare = "==0.7.5"
prometheus-client = "==0.7.1"
prompt-toolkit = "==3.0.4"
psutil = "==5.7.0"
psycopg2-binary = "==2.8.4"
psycopg2cffi = "==2.8.1"
ptyprocess = "==0.6.0"
pyasn1 = "==0.4.8"
pyasn1-modules = "==0.2.8"
pycparser = "==2.20"
pygments = "==2.6.1"
pyhamcrest = "==2.0.2"
pyopenssl = "==19.1.0"
python-dateutil = "==2.8.1"
python-dotenv = "==0.8.2"
bleach = "*"
geoip2 = "*"
ipython = "*"
psutil = "*"
redis = "*"
yacron = "*"
zulip = "*"
raven = "*"
requests = "*"
grequests = "*"
django-debug-toolbar = "*"
django-debug-toolbar-template-timings = "*"
mypy = "*"
mypy_extensions = "*"
service-identity = "*"
zulip-botserver = "*"
zulip-bots = "*"

python3-openid = "==3.1.0"
pytz = "==2019.3"
pyyaml = "==5.3.1"
raven = "==6.10.0"
redis = "==2.10.6"
requests = "==2.23.0"
requests-oauthlib = "==1.3.0"
"ruamel.yaml" = "==0.16.10"
"ruamel.yaml.clib" = "==0.2.0"
sentry-sdk = "==0.14.3"
service-identity = "==18.1.0"
six = "==1.14.0"
soupsieve = "==2.0"
sqlparse = "==0.3.1"
strictyaml = "==1.0.6"
traitlets = "==4.3.3"
twisted = "==20.3.0"
txaio = "==20.3.1"
typed-ast = "==1.4.1"
typing-extensions = "==3.7.4.1"
urllib3 = "==1.25.8"
watchdog = "==0.8.3"
watchdog-gevent = "==0.1"
wcwidth = "==0.1.9"
webencodings = "==0.5.1"
werkzeug = "==1.0.0"
yacron = "==0.10.0"
yarl = "==1.4.2"
"zope.interface" = "==5.0.1"
zulip = "==0.6.3"
zulip-bots = "==0.6.3"
zulip-botserver = "==0.6.3"
blessings = "==1.7"
bpython = "==0.18"
codecov = "==2.1.13"
coverage = "==5.0.4"
curtsies = "==0.3.1"
django-pdb = "==0.6.2"
entrypoints = "==0.3"
flake8 = "==3.7.9"
flake8-formatter-junit-xml = "==0.0.6"
ipdb = "==0.13.2"
junit-xml = "==1.9"
mccabe = "==0.6.1"
pycodestyle = "==2.5.0"
pyflakes = "==2.1.1"
tblib = "==1.6.0"
unittest-xml-reporting = "==3.0.2"

[dev-packages]

[requires]
python_version = "3.7"
python_version = "3.7"
Loading

0 comments on commit 521d22a

Please sign in to comment.