* Rust/* remove TE dependencies and base files [ci lang-only Rust] * fix tokio [ci lang-only Rust]
@@ -1,7 +0,0 @@
-FROM techempower/rust:0.1
-
-ADD ./ /actix
-WORKDIR /actix
-RUN cargo clean
-RUN RUSTFLAGS="-C target-cpu=native" cargo build --release
@@ -1,3 +1,9 @@
-FROM techempower/actix-base:0.1
+FROM rust:1.25
+
+ADD ./ /actix
+WORKDIR /actix
+RUN cargo clean
+RUN RUSTFLAGS="-C target-cpu=native" cargo build --release
CMD ./target/release/actix-diesel
CMD ./target/release/actix-pg
CMD ./target/release/actix
@@ -1,6 +0,0 @@
-COPY ./ ./
-FROM techempower/hyper-base:0.1
+ADD ./ /hyper
+WORKDIR /hyper
CMD ["./target/release/hyper-techempower", "pipeline"]
CMD ["./target/release/hyper-techempower"]
@@ -1,7 +1,9 @@
+ADD ./ /iron
+WORKDIR /iron
RUN cargo clean
RUN RUSTFLAGS="-C target-cpu=native" cargo build --release
CMD ./target/release/iron
@@ -1,6 +1,7 @@
+ADD ./ /may
+WORKDIR /may
+ADD ./ /nickel
+WORKDIR /nickel
+ADD ./ /rouille
+WORKDIR /rouille
@@ -148,7 +148,7 @@ fn main() {
let dbhost = match option_env!("DBHOST") {
Some(it) => it,
- _ => "localhost"
+ _ => "tfb-database"
};
let db_url = format!("postgres://benchmarkdbuser:benchmarkdbpass@{}/hello_world", dbhost);
let db_config = r2d2::Config::default();
+ADD ./ /tokio
+WORKDIR /tokio
@@ -1,12 +0,0 @@
-FROM techempower/base:0.1
-ENV RUST_VERSION="1.24.1"
-RUN wget https://static.rust-lang.org/dist/rust-${RUST_VERSION}-x86_64-unknown-linux-gnu.tar.gz
-RUN tar xf rust-${RUST_VERSION}-x86_64-unknown-linux-gnu.tar.gz
-RUN cd rust-${RUST_VERSION}-x86_64-unknown-linux-gnu && \
- ./install.sh --prefix=/rust
-ENV LD_LIBRARY_PATH=/rust/lib:${LD_LIBRARY_PATH}
-ENV PATH=/rust/bin:${PATH}