Skip to content

Commit

Permalink
dc-dynamics refactoring: remove scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
misterabdullahAziz committed Oct 17, 2024
1 parent 1359b38 commit 512122a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 94 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ WORKDIR /code
RUN git clone https://github.com/ScilifelabDataCentre/pathogens-portal-visualisations.git && \
git clone https://github.com/ScilifelabDataCentre/pathogens-portal-scripts.git

COPY *.sh *.py requirements.txt /code/

# Install Python dependencies from the current directory and both repositories
COPY requirements.txt /code/
RUN pip install -r requirements.txt && \
mkdir output
pip install -r pathogens-portal-visualisations/requirements.txt && \
pip install -r pathogens-portal-scripts/requirements.txt

# Copy other necessary files to the /code directory
COPY *.sh *.py /code/

CMD ["/code/all.sh"]
# Create an output directory if needed
RUN mkdir /code/output
5 changes: 0 additions & 5 deletions all.sh

This file was deleted.

4 changes: 2 additions & 2 deletions freya_runner_weekly.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export CODE_PATH=/code

# Wordclouds generator
PYTHONPATH="$CODE_PATH"/pathogens-portal-visualisations/Wordcloud python "$CODE_PATH"/gen_clouds.py
PYTHONPATH="$CODE_PATH"/pathogens-portal-visualisations/Wordcloud python "$CODE_PATH"/pathogens-portal-visualisations/Wordcloud/livewordcloud.py

# Publication related updates
PYTHONPATH="$CODE_PATH"/pathogens-portal-visualisations/Count_publications python "$CODE_PATH"/pathogens-portal-visualisations/Count_publications/count_publications.py > "$CODE_PATH"/output/COVID_publication_count.json
python "$CODE_PATH"/gen_recent_pub.py > "$CODE_PATH"/output/covid-portal-recent10.json
PYTHONPATH="$CODE_PATH"/pathogens-portal-visualisations/Count_publications python "$CODE_PATH"/pathogens-portal-visualisations/Count_publications/gen_recent_pub.py > "$CODE_PATH"/output/covid-portal-recent10.json


# Upload generated files
Expand Down
50 changes: 0 additions & 50 deletions gen_clouds.py

This file was deleted.

33 changes: 0 additions & 33 deletions gen_recent_pub.py

This file was deleted.

0 comments on commit 512122a

Please sign in to comment.