forked from NCATS-Tangerine/tranql
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* tranql upgrade python/docker py to 3.10 * Update server.py to py3.10 yaml * Update tranql to redis-stack and add dev-conf and dev-schema files * Make conf.yml file configurable and add to README * Update requirements * updated docker compose to handle some errors with writing to redis and passing all values to tranql through env * fixing error produced by missing conf in tranql api call * fix uvicorn vulnerability issues related to Plater * remove all 'biolink:' additions in code * upgrade plater version to fix biolink issue * plater biolink changes * Tranql works with new biolink data model * updated Plater to new version * fixed plater version * bump version * force update fix, and flasgger version bump * bump old versions * more vul fixes, and version updates * down to zero vul --------- Co-authored-by: Nathan Braswell <[email protected]> Co-authored-by: esurface <[email protected]> Co-authored-by: braswent <[email protected]>
- Loading branch information
1 parent
10362c4
commit bcddea0
Showing
23 changed files
with
246 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
FROM node:14.16.1-alpine as node | ||
FROM python:3.7.3-alpine | ||
FROM python:3.11.6-alpine3.18 | ||
# FROM python:3.9.16-alpine3.17 | ||
# FROM python:3.7.3-alpine OLD | ||
|
||
COPY --from=node /usr/lib /usr/lib | ||
COPY --from=node /usr/local/share /usr/local/share | ||
COPY --from=node /usr/local/lib /usr/local/lib | ||
COPY --from=node /usr/local/include /usr/local/include | ||
COPY --from=node /usr/local/bin /usr/local/bin | ||
|
||
RUN apk add --update build-base git libxslt-dev linux-headers make zeromq zeromq-dev | ||
RUN npm i -g [email protected] | ||
RUN apk add --update build-base git libxslt-dev linux-headers make nodejs-current npm zeromq zeromq-dev | ||
RUN apk upgrade libssl3 libcrypto3 | ||
# RUN apk add ncurses-libs=6.3_p20221119-r1 | ||
|
||
ENV USER tranql | ||
ENV HOME /home/$USER | ||
|
@@ -24,13 +20,12 @@ ENV BACKPLANE=http://tranql-backplane.renci.org | |
|
||
COPY --chown=$USER . tranql/ | ||
|
||
WORKDIR $HOME/tranql/src/tranql/web | ||
RUN npm install --legacy-peer-deps | ||
ENV NODE_OPTIONS=--max-old-space-size=4096 | ||
ENV GENERATE_SOURCEMAP=false | ||
RUN npm run build | ||
# WORKDIR $HOME/tranql/src/tranql/web | ||
# RUN npm install | ||
# RUN GENERATE_SOURCEMAP=false npm run build | ||
|
||
WORKDIR $HOME/tranql | ||
RUN pip install --user --upgrade pip | ||
RUN pip install --user -r requirements.txt | ||
RUN pip uninstall -y py | ||
ENV PYTHONPATH=$HOME/tranql/src/ |
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,26 @@ | ||
FROM python:3.7.3-alpine | ||
|
||
RUN apk add --update build-base git libxslt-dev linux-headers make nodejs-current nodejs-npm zeromq zeromq-dev | ||
|
||
ENV USER tranql | ||
ENV HOME /home/$USER | ||
|
||
RUN addgroup -S $USER && adduser -S $USER -G $USER -s /bin/bash -h $HOME | ||
|
||
USER $USER | ||
WORKDIR $HOME | ||
|
||
ENV PATH=$HOME/.local/bin:$PATH | ||
ENV PUBLIC_URL={{web_prefix}} | ||
ENV BACKPLANE=http://tranql-backplane.renci.org | ||
|
||
COPY --chown=$USER . tranql/ | ||
|
||
WORKDIR $HOME/tranql/src/tranql/web | ||
RUN npm install | ||
RUN GENERATE_SOURCEMAP=false npm run build | ||
|
||
WORKDIR $HOME/tranql | ||
RUN pip install --user --upgrade pip | ||
RUN pip install --user -r requirements.txt | ||
ENV PYTHONPATH=$HOME/tranql/src/ |
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,20 @@ | ||
# Tranql Vulnerabilities | ||
|
||
## tranql/Requirements.txt file | ||
|
||
### Pip packages | ||
|
||
- flask-cors: High 3.0.7 => fix 3.0.9 | ||
- jinja2: High 2.10 => fix 2.10.1 | ||
- pyyaml: 3 CRITICAL 5.1 => Test newest version at 6.0 | ||
|
||
### Git repositories | ||
|
||
- git+<https://github.com/helxplatform/[email protected]> | ||
- git+<https://github.com/TranslatorSRI/[email protected]#egg=reasoner-pydantic> | ||
- git+<https://github.com/TranslatorSRI/[email protected]#egg=reasoner-converter> | ||
|
||
## tranql/src/tranql/web/package.json file | ||
|
||
Completely broken... cannot build locally. | ||
Tons of conflicting dependencies... checking with Renci if UI is even used. |
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
Binary file not shown.
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,30 +1,35 @@ | ||
aiohttp==3.5.4 | ||
aiohttp==3.8.6 | ||
bmt==0.8.12 | ||
coverage==4.5.3 | ||
flasgger==0.9.2 | ||
flask==1.0.2 | ||
flask-cors==3.0.7 | ||
flask-restx==0.5.1 | ||
gunicorn==19.9.0 | ||
MarkupSafe==2.0.1 | ||
itsdangerous==2.0.1 | ||
jinja2==2.10 | ||
flasgger==0.9.5 | ||
Flask==2.2.5 | ||
Flask-Compress==1.13 | ||
Flask-Cors==3.0.10 | ||
flask-restx>=1.0.3 | ||
gunicorn==21.2.0 | ||
Jinja2==3.1.2 | ||
jsonpath-rw==1.4.0 | ||
networkx~=2.5.0 | ||
linkml==1.4.6 | ||
linkml-dataops==0.1.0 | ||
linkml-runtime==1.3.2 | ||
MarkupSafe==2.1.1 | ||
openapi==1.1.0 | ||
git+https://github.com/RTIInternational/[email protected] | ||
git+https://github.com/TranslatorSRI/[email protected]#egg=reasoner-pydantic | ||
git+https://github.com/TranslatorSRI/[email protected]#egg=reasoner-converter | ||
reasoner-transpiler==1.7.1 | ||
redis==4.1.4 | ||
requests==2.31.0 | ||
requests-cache==0.4.13 | ||
requests-mock==1.5.2 | ||
PyYAML==6.0.1 | ||
python-Levenshtein==0.12.2 | ||
networkx==2.8.8 | ||
pytest==5.4.1 | ||
pytest-cov==2.7.1 | ||
python-coveralls==2.9.2 | ||
python-dateutil==2.8.1 | ||
pyyaml==5.1 | ||
requests==2.25.1 | ||
requests-cache==0.4.13 | ||
requests-mock==1.5.2 | ||
git+https://github.com/helxplatform/[email protected] | ||
bmt==0.8.2 | ||
linkml==1.1.17 | ||
linkml-dataops==0.1.0 | ||
linkml-runtime==1.1.21 | ||
reasoner-transpiler==1.7.1 | ||
python-levenshtein==0.12.2 | ||
git+https://github.com/TranslatorSRI/[email protected]#egg=reasoner-pydantic | ||
git+https://github.com/TranslatorSRI/[email protected]#egg=reasoner-converter | ||
redis==4.1.4 | ||
werkzeug==2.2.3 | ||
urllib3==1.26.17 | ||
uvicorn |
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,30 @@ | ||
aiohttp==3.5.4 | ||
coverage==4.5.3 | ||
flasgger==0.9.2 | ||
flask==1.0.2 | ||
flask-cors==3.0.7 | ||
flask-restx==0.5.1 | ||
gunicorn==19.9.0 | ||
MarkupSafe==2.0.1 | ||
itsdangerous==2.0.1 | ||
jinja2==2.10 | ||
jsonpath-rw==1.4.0 | ||
networkx~=2.5.0 | ||
openapi==1.1.0 | ||
pytest==5.4.1 | ||
pytest-cov==2.7.1 | ||
python-coveralls==2.9.2 | ||
python-dateutil==2.8.1 | ||
pyyaml==5.1 | ||
requests==2.25.1 | ||
requests-cache==0.4.13 | ||
requests-mock==1.5.2 | ||
git+https://github.com/helxplatform/[email protected] | ||
bmt==0.8.2 | ||
linkml==1.1.17 | ||
linkml-dataops==0.1.0 | ||
linkml-runtime==1.1.21 | ||
reasoner-transpiler==1.7.1 | ||
python-levenshtein==0.12.2 | ||
git+https://github.com/TranslatorSRI/[email protected]#egg=reasoner-pydantic | ||
git+https://github.com/TranslatorSRI/[email protected]#egg=reasoner-converter |
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 +1 @@ | ||
__version__ = "0.4.dev5" | ||
__version__ = "1.0.dev0" |
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
Oops, something went wrong.