Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM centos:6
- RUN yum install -y which \
- expect \
- openssh-clients \
- glibc-common \
- zip \
- unzip \
- dos2unix
- # Directory and local file setup
- RUN mkdir -vp /build/expect/{lib/tcl8.5,bin}
- ADD expect.sh /build/expect
- RUN pushd /build \
- && dos2unix /build/expect/expect.sh \
- && ldd /usr/bin/expect \
- | sed -nr 's/.*=> ([/a-z0-9.]+).*/\1/p' \
- | while read library; do cp -v "$library" ./expect/lib; done \
- && cp -v /usr/share/tcl8.5/init.tcl ./expect/lib/tcl8.5 \
- && cp -v /usr/bin/expect ./expect/bin \
- && zip -rv ./expect.zip ./expect \
- && rm -rvf ./expect
- VOLUME /build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement