Skip to content

Commit 3a9202f

Browse files
committed
Added Docker-Build and adapted Makefile
1 parent 0ed525c commit 3a9202f

4 files changed

Lines changed: 27 additions & 5 deletions

File tree

Makefile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
.PHONY : clean all test
22

33
CFLAGS=-g -O3
4-
LDFLAGS=-static -lutil
4+
LDFLAGS=
5+
DISTFILES=SMT-COMP-2021-trace-executor.tar.gz
56

6-
all: smtlib2_trace_executor SMT-COMP-2020-trace-executor.tar.xz
7+
all: $(DISTFILES)
78

89
smtlib2_trace_executor: smtlib2_trace_executor.o
910
$(CC) $< -o $@ $(LDFLAGS)
1011

1112
clean:
12-
rm -f smtlib2_trace_executor.o smtlib2_trace_executor SMT-COMP-2020-trace-executor.tar.xz
13+
rm -f smtlib2_trace_executor.o smtlib2_trace_executor $(DISTFILES) test_solver_log.txt
1314

14-
SMT-COMP-2020-trace-executor.tar.xz: starexec_run_default smtlib2_trace_executor
15-
tar -cJf $@ $^
15+
SMT-COMP-2021-trace-executor.tar.gz: starexec_run_default smtlib2_trace_executor
16+
tar -czf $@ $^
1617

1718
test: smtlib2_trace_executor
1819
test/run_tests.sh ./smtlib2_trace_executor
20+
21+
dist: $(DISTFILES)
22+
cp $(DISTFILES) /dist
23+

docker/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM centos:7
2+
RUN yum -y install gcc gcc-c++ make flex bison glibc-static libstdc++-static python3 cython git
3+
4+
WORKDIR /smtcomp
5+
COPY ./trace-executor ./trace-executor

docker/build-docker.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
docker run -v $(pwd):/dist:z smtcomp make -C trace-executor dist
4+
docker run -v $(pwd):/dist:z smtcomp sh -c "chown $(id -u):$(id -g) /dist/*.tar.gz"

docker/create-docker.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
rm -rf trace-executor
4+
mkdir ./trace-executor
5+
cp -a ../[^d]* trace-executor
6+
make -C trace-executor clean
7+
8+
docker build -t smtcomp .

0 commit comments

Comments
 (0)