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

[UPDATE] Updated Docker & requirements.txt #672

Merged
merged 6 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ CURR_DIR := $(CURDIR)

START_COMMAND := jupyter-lab --allow-root
JUPYTER_LIST := jupyter-lab list
PIPINSTALLE := pip install -e .

build: # Command to build Docker file [optional]
@docker build -t statsforecast -f dev/Dockerfile .

run: build # Run jupyter notebook using Docker image
@docker run --name statsforecast --rm -d --network host -v $(CURR_DIR):/workdir/ statsforecast $(START_COMMAND)
@docker exec statsforecast $(PIPINSTALLE)

buildless: # Run jupyter notebook using Docker image without building the image
@docker run --name statsforecast --rm -d --network host -v $(CURR_DIR):/workdir/ statsforecast $(START_COMMAND)
@docker exec statsforecast $(PIPINSTALLE)

address: # Show the ipaddress and port of Jupyter Notebook
@docker exec statsforecast $(JUPYTER_LIST)
Expand Down
6 changes: 3 additions & 3 deletions dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.10
FROM python:3.11

COPY dev/requirements.txt setup/

RUN pip install -r setup/requirements.txt
RUN pip install --upgrade pip && pip install -r setup/requirements.txt

# Settuping the working environment.
# Setting the working environment.
# This will server as an empty directory where all the files be dropped to.
WORKDIR /workdir/
4 changes: 3 additions & 1 deletion dev/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ numba>=0.55.0
numpy>=1.21.6
pandas>=1.3.5
pyspark>=3.3
pip
prophet
pyarrow
scipy>=1.7.3
Expand All @@ -19,3 +18,6 @@ plotly-resampler
polars
supersmoother
tqdm
black
mypy
types-setuptools
Loading