forked from gsingers/search_with_machine_learning_course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
55 lines (45 loc) · 2.76 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM gitpod/workspace-full:legacy-dazzle-v1
RUN sudo apt-get install -y graphviz
# Move where Pyenv is stored
#RUN sudo mv /home/gitpod/.pyenv /workspace/pyenv
#RUN sudo ln -s /workspace/pyenv /home/gitpod/.pyenv
RUN wget -O /home/gitpod/requirements_week1.txt https://raw.githubusercontent.com/gsingers/search_with_machine_learning_course/main/requirements_week1.txt
RUN wget -O /home/gitpod/requirements_week2.txt https://raw.githubusercontent.com/gsingers/search_with_machine_learning_course/main/requirements_week2.txt
RUN wget -O /home/gitpod/requirements_week3.txt https://raw.githubusercontent.com/gsingers/search_with_machine_learning_course/main/requirements_week3.txt
RUN wget -O /home/gitpod/requirements_week4.txt https://raw.githubusercontent.com/gsingers/search_with_machine_learning_course/main/requirements_week4.txt
RUN echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> /home/gitpod/.bashrc
RUN echo 'eval "$(pyenv init -)"' >> /home/gitpod/.bashrc
RUN echo 'eval "$(pyenv virtualenv-init -)"' >> /home/gitpod/.bashrc
RUN pyenv install 3.9.7
RUN pyenv global 3.9.7
# TODO: we are using 3.9.7 for the weekly projects, but here we are pip installing into the default for the Docker image. We should probably create a pyenv.
RUN pip install kaggle
RUN pip install nltk
RUN pip install fasttext
RUN pip install xgboost
RUN pip install requests
RUN pip install ipython
RUN pip install urljoin
RUN pip install matplotlib
RUN pip install graphviz
RUN pip install pandas
RUN pip install numexpr
#RUN pip install bottleneck
RUN pip install flask
RUN pip install opensearch-py
RUN pyenv virtualenv 3.9.7 search_with_ml_opensearch
RUN pyenv virtualenv 3.9.7 search_with_ml_week1
RUN bash -i -c "pyenv activate search_with_ml_week1 && pip install -r /home/gitpod/requirements_week1.txt"
RUN pyenv virtualenv 3.9.7 search_with_ml_week2
RUN bash -i -c "pyenv activate search_with_ml_week2 && pip install -r /home/gitpod/requirements_week2.txt"
RUN pyenv virtualenv 3.9.7 search_with_ml_week3
RUN bash -i -c "pyenv activate search_with_ml_week3 && pip install -r /home/gitpod/requirements_week3.txt"
RUN pyenv virtualenv 3.9.7 search_with_ml_week4
RUN bash -i -c "pyenv activate search_with_ml_week4 && pip install -r /home/gitpod/requirements_week4.txt"
RUN curl -o logstash-oss-with-opensearch-output-plugin-7.13.2-linux-x64.tar.gz https://artifacts.opensearch.org/logstash/logstash-oss-with-opensearch-output-plugin-7.13.2-linux-x64.tar.gz
RUN tar -xf logstash-oss-with-opensearch-output-plugin-7.13.2-linux-x64.tar.gz
RUN rm logstash-oss-with-opensearch-output-plugin-7.13.2-linux-x64.tar.gz
RUN wget https://github.com/facebookresearch/fastText/archive/v0.9.2.zip
RUN unzip v0.9.2.zip
RUN cd /home/gitpod/fastText-0.9.2 && /usr/bin/make -f /home/gitpod/fastText-0.9.2/Makefile fasttext
RUN rm v0.9.2.zip