forked from facebookresearch/labgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.Centos
44 lines (36 loc) · 1.27 KB
/
Dockerfile.Centos
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
#!/usr/bin/env python3
# Copyright 2004-present Facebook. All Rights Reserved.
FROM centos:8
# Install Python, Java, wget, vim
RUN yum group install -y "Development Tools"
RUN yum install -y python2 python36 python36-devel wget java-1.8.0-openjdk \
java-1.8.0-openjdk-devel vim
# Install Ant
WORKDIR "/tmp"
RUN wget https://downloads.apache.org/ant/binaries/apache-ant-1.10.11-bin.zip
RUN unzip apache-ant-1.10.11-bin.zip \
&& mv apache-ant-1.10.11/ /opt/ant \
&& ln -s /opt/ant/bin/ant /usr/bin/ant
# Download Buck
WORKDIR "/opt"
RUN git clone https://github.com/facebook/buck.git
# Set JAVA_HOME
ENV JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk"
# Build Buck
WORKDIR "/opt/buck"
RUN ant
Run ln -s /opt/buck/bin/buck /usr/bin/buck
# Install Watchman
WORKDIR "/opt/watchman"
RUN wget https://github.com/facebook/watchman/releases/download/v2020.09.21.00/watchman-v2020.09.21.00-linux.zip
RUN unzip watchman-v2020.09.21.00-linux.zip
WORKDIR "/opt/watchman/watchman-v2020.09.21.00-linux"
RUN mkdir -p /usr/local/{bin,lib} /usr/local/var/run/watchman
RUN cp bin/* /usr/local/bin
RUN cp lib/* /usr/local/lib
RUN chmod 755 /usr/local/bin/watchman
RUN chmod 2777 /usr/local/var/run/watchman
# Copy LabGraph files
WORKDIR "/opt/labgraph"
COPY . .
RUN python3.6 setup_py36.py install --user