Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit e038e5a

Browse files
committed
[issue-15] reasonably support older linux distributions
1 parent 4f7e7be commit e038e5a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Dockerfile-centos

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM alexcrichton/rust-slave-dist:2015-10-20b
2+
3+
USER root
4+
ENV RUST_VERSION 1.16.0
5+
6+
RUN mkdir -p /rust/app && \
7+
unlink /rustroot/lib64/libgcc_s.so && \
8+
rm /rustroot/lib64/libgcc_s.so.1 && \
9+
ln -sf /lib64/libgcc_s.so.1 /lib64/libgcc_s.so && \
10+
curl -sO https://static.rust-lang.org/dist/rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz && \
11+
tar -xzf rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz && \
12+
./rust-$RUST_VERSION-x86_64-unknown-linux-gnu/install.sh --without=rust-docs && \
13+
rm -rf \
14+
rust-$RUST_VERSION-x86_64-unknown-linux-gnu \
15+
rust-$RUST_VERSION-x86_64-unknown-linux-gnu.tar.gz \
16+
/var/lib/apt/lists/* \
17+
/tmp/* \
18+
/var/tmp/*
19+
WORKDIR /rust/app
20+
21+
ENV TARGET=x86_64-unknown-linux-gnu
22+
23+
COPY . /rust/app
24+
RUN cargo build --release --target=$TARGET
25+
RUN cp ./target/$TARGET/release/linkerd-tcp /usr/local/bin
26+
27+
ENTRYPOINT ["/usr/local/bin/linkerd-tcp"]

0 commit comments

Comments
 (0)