Skip to content

Commit 921d1e9

Browse files
committed
Add a new Dockerfile for the grammer-check bot
- Made with ubuntu 16.10 and python3 - Include antlr-complete.jar - Switch to system llvm 3.9
1 parent 28d6623 commit 921d1e9

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

src/ci/docker/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Testing containers locally
2+
3+
Use the `run.sh` from `src/ci/docker`.
4+
The `src/ci/run.sh` is used inside the container.
5+
6+
```
7+
./run.sh x86_64-gnu-grammartest
8+
```
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM ubuntu:16.10
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
g++ \
5+
make \
6+
file \
7+
curl \
8+
ca-certificates \
9+
python \
10+
git \
11+
cmake \
12+
ccache \
13+
sudo \
14+
gdb \
15+
llvm-3.9-tools \
16+
libedit-dev \
17+
zlib1g-dev \
18+
antlr4 \
19+
bison \
20+
flex \
21+
openjdk-8-jdk-headless
22+
23+
RUN cd /usr/local/lib && curl http://www.antlr.org/download/antlr-4.5.3-complete.jar -o antlr-complete.jar
24+
25+
ENV RUST_CONFIGURE_ARGS \
26+
--build=x86_64-unknown-linux-gnu \
27+
--llvm-root=/usr/lib/llvm-3.9
28+
ENV RUST_CHECK_TARGET check-grammar
29+
RUN mkdir /tmp/obj
30+
RUN chmod 777 /tmp/obj

0 commit comments

Comments
 (0)