-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdockerfile_synthesizer
52 lines (43 loc) · 1.44 KB
/
dockerfile_synthesizer
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
FROM osrf/ros:noetic-desktop-full
SHELL [ "/bin/bash" , "-c" ]
# install system dependencies
RUN apt-get update && \
apt-get install -y openjdk-11-jdk && \
apt-get install -y ant && \
apt-get install -y unzip && \
apt-get install -y python3 && \
apt-get install -y python3-pip && \
apt-get clean;
RUN apt-get install wget
RUN apt-get update && apt-get install -y git
# install python dependencies
RUN python3 -m pip install nltk spacy contractions
RUN python3 -m spacy download en_core_web_sm
RUN <<eot
#!/usr/bin/env python3
import nltk
nltk.download('wordnet')
nltk.download('verbnet3')
nltk.download('omw-1.4')
nltk.download('punkt')
eot
# install ros packages
RUN source /opt/ros/noetic/setup.bash \
&& mkdir -p /catkin_ws/src \
&& cd /catkin_ws/src \
&& git clone https://github.com/Wisc-HCI/TabulaSynthesizer.git \
&& git clone https://github.com/Unity-Technologies/ROS-TCP-Endpoint.git
# make the ros workspace
RUN source /opt/ros/noetic/setup.bash \
&& cd /catkin_ws \
&& catkin_make
# install the stanford parser
RUN cd /catkin_ws/src/TabulaSynthesizer \
&& mkdir bin && cd bin \
&& wget https://nlp.stanford.edu/software/stanford-corenlp-latest.zip \
&& unzip stanford-corenlp-latest.zip
RUN ln -s /usr/bin/python3 /usr/bin/python
RUN echo "source /opt/ros/noetic/setup.bash" >> ~/.bashrc
RUN echo "source /catkin_ws/devel/setup.bash" >> ~/.bashrc
WORKDIR /catkin_ws/src/TabulaSynthesizer
CMD bash run.sh