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

     1  FROM centos:7
     2  RUN yum install -y build-essential golang git
     3  
     4  ADD . /go/src/tastes/inject-open
     5  
     6  RUN export GOPATH=/go && \
     7  	go get github.com/rainycape/dl && \
     8  	cd /go/src/tastes/inject-open && \
     9  	go build -buildmode=c-shared -o /inject-libc.so libc_fs.go
    10  
    11  RUN echo abc > /abc && \
    12  	LD_PRELOAD=/inject-libc.so cat /abc