t-ivanov / BigBenchV2

BigBench V2
3 stars 2 forks source link

Dockerized Linux #2

Open acruise opened 4 years ago

acruise commented 4 years ago

In the absence of #1, I figured out how to Dockerize the Linux binary, and came up with this:

FROM centos:centos7
MAINTAINER haha@example.com
COPY DataGen.out /bin/
COPY *.txt /root/
RUN chmod +x /bin/DataGen.out
RUN yum -y install centos-release-openstack-train 
RUN yum -y install boost159-thread
WORKDIR "/root"
CMD ["/bin/DataGen.out"]

Build:

docker build --tag=$TAG

Run:

docker run -v $SRC/DataGenLinux:/root $TAG

HTH!