-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (36 loc) · 1.06 KB
/
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
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get -y install \
python3 \
python3-pip \
python3-protobuf \
cmake \
clang-format \
git \
curl \
sbcl \
emacs-nox \
slime \
elpa-paredit \
unzip \
wget
RUN python3 -m pip install --upgrade pip && \
python3 -m pip install --upgrade keyrings.alt && \
python3 -m pip install pkginfo pre-commit requests wheel tox twine
# Install keystone
RUN cd /tmp && \
git clone https://github.com/keystone-engine/keystone.git && \
cd keystone && \
mkdir build && \
cd build && \
../make-share.sh && \
make install
# Install the lisp-format pre-commit format checker.
RUN curl https://raw.githubusercontent.com/eschulte/lisp-format/master/lisp-format > /usr/bin/lisp-format
RUN chmod +x /usr/bin/lisp-format
RUN echo "(add-to-list 'load-path \"/usr/share/emacs/site-lisp/\")" > /root/.lisp-formatrc
# Install pre-commit hooks
WORKDIR /gt/gtirb-capstone
RUN git init
COPY .pre-commit-config.yaml /gt/gtirb-capstone/.pre-commit-config.yaml
RUN pre-commit install-hooks