github.com/ggreg80/ketos@v0.0.0-20171109040536-049616f51ddb/testdata/inject-libc/Dockerfile (about)

     1  FROM centos:7
     2  RUN yum install -y build-essential golang git
     3  
     4  ADD . /go/src/tastes/inject-libc
     5  
     6  RUN export GOPATH=/go && \
     7  	go get github.com/rainycape/dl && \
     8  	cd /go/src/tastes/inject-libc && \
     9  	(cd taste_exec && go build -o /exec) && \
    10  	go build -buildmode=c-shared -o /inject-libc.so libc_fs.go && \
    11  	gcc -o /taste taste.c
    12  
    13  RUN /exec
    14  RUN LD_PRELOAD=/inject-libc.so /taste