Skip to content

Commit

Permalink
docker image working
Browse files Browse the repository at this point in the history
  • Loading branch information
manulera committed Oct 31, 2023
1 parent 776bb89 commit 181882e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Install dependencies
run: |
poetry install --no-dev
sh install_local_depency.sh
sh install_local_dependency.sh
# Before running the test you have to download the tags!
- name: Run tests
run: |
Expand Down
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,12 @@ FROM python:3.9

WORKDIR /pipeline

RUN pip install poetry
RUN pip install nltk
RUN pip install toml

COPY ./ /pipeline/

RUN pip install poetry
RUN poetry config virtualenvs.create false
RUN poetry install --without dev
RUN poetry shell

COPY . /pipeline
COPY ./ /pipeline

RUN poetry install --no-dev
RUN sh install_local_dependency.sh

CMD ["sh", "docker_start.sh"]
2 changes: 2 additions & 0 deletions docker_start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python get_data/get_fpbase_data.py allele_components/tags_fpbase.toml
uvicorn api:app --host 0.0.0.0 --port 80
1 change: 0 additions & 1 deletion dummy.py

This file was deleted.

File renamed without changes.
6 changes: 2 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ poetry run python -m ipykernel install --user

To build from the dockerfile available in the repo:
```
$ docker build -t genestorian .
$ docker run --name genestorian_c -d genestorian:latest sleep inifinity
$ docker exec -it genestorian_c /bin/sh
docker build -t genestorian_data_refinement .
docker run -d --name genestorian_data_refinement_container -p 8000:80 genestorian_data_refinement
```
To stop the docker: `$ docker stop genestorian_c`

## Getting the data

Expand Down

0 comments on commit 181882e

Please sign in to comment.