alexcrichton / alexcrichton/rustfmt-wasm

Running the Dockerfile locally fails

Abierto
#1 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Dockerfile
Estrellas
9
Forks
2
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I want to run this repos locally and after forking, I cloned it and tried running docker using `docker build -t rustfmt-wasm .` but keeps experiencing different types of error after tweaking based on the previous error.

When I ran the docker initially this was the error I got

```
$ docker build -t rustfmt-wasm .
[+] Building 0.1s (0/1) docker:desktop-linuxesktop-linux
=> [internal] load build definition from Dockerfile
[+] Building 0.4s (1/1) docker:desktop-linuxferring dockerfile: 2.01kB
=> [internal] load build definition from Dockerfile
[+] Building 16.7s (24/34) docker:desktop-linux
=> [internal] load build definition from Dockerfile 0.2s
=> => transferring dockerfile: 2.01kB 0.1s
=> [internal] load metadata for docker.io/library/ubuntu:18.04 12.5s
=> [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 48B 0.0s
=> [internal] load build context 0.7s
=> => transferring context: 27.77kB 0.6s
=> CACHED [binaryen 1/7] FROM docker.io/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98 0.2s
=> => resolve docker.io/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98 0.1s
=> CACHED [binaryen 2/7] RUN apt-get update -y && apt-get install -y --no-install-recommends git g++ libc6-dev ca-certificates make cmake python 0.0s
=> CACHED [binaryen 3/7] RUN git clone https://github.com/WebAssembly/binaryen 0.0s
=> CACHED [binaryen 4/7] WORKDIR /binaryen 0.0s
=> ERROR [binaryen 5/7] RUN cmake -DCMAKE_BUILD_TYPE=Release . 2.5s
=> CACHED [rust 2/18] RUN apt-get update -y && apt-get install -y --no-install-recommends curl gcc libc6-dev ca-certificates patch 0.0s
=> CACHED [rust 3/18] RUN curl https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly-2018-09-07 0.0s
=> CACHED [rust 4/18] RUN rustup target add wasm32-unknown-unknown 0.0s
=> CACHED [rust 5/18] WORKDIR /app 0.0s
=> CACHED [rust 6/18] RUN curl -L https://crates.io/api/v1/crates/rustc-ap-rustc_data_structures/237.0.0/download | tar xzf - 0.0s
=> CACHED [rust 7/18] RUN curl -L https://crates.io/api/v1/crates/rustc-ap-rustc_errors/237.0.0/download | tar xzf - 0.0s
=> CACHED [rust 8/18] RUN curl -L https://crates.io/api/v1/crates/rustfmt-nightly/0.99.4/download | tar xzf - 0.0s
=> CACHED [rust 9/18] COPY Cargo.toml *.patch /app/src/ 0.0s
=> CACHED [rust 10/18] COPY src /app/src/src 0.0s
=> CACHED [rust 11/18] RUN cd rustc-ap-rustc_data_structures-237.0.0 && patch -Np1 < /app/src/rustc-data-structures.patch 0.0s
=> CACHED [rust 12/18] RUN cd rustc-ap-rustc_errors-237.0.0 && patch -Np1 < /app/src/rustc_errors.patch 0.0s
=> CACHED [rust 13/18] RUN cd rustfmt-nightly-0.99.4 && patch -Np1 < /app/src/rustfmt.patch 0.0s
=> CACHED [rust 14/18] WORKDIR /app/src 0.0s
=> CANCELED [rust 15/18] RUN cargo build --target wasm32-unknown-unknown --release 2.0s
------
> [binaryen 5/7] RUN cmake -DCMAKE_BUILD_TYPE=Release .:
2.299 CMake Error at CMakeLists.txt:3 (cmake_minimum_required):
2.299 CMake 3.16.3 or higher is required. You are running version 3.10.2
2.299
2.299
2.301 -- Configuring incomplete, errors occurred!
------

2 warnings found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 18)
Dockerfile:14
--------------------
12 | RUN git clone https://github.com/WebAssembly/binaryen
13 | WORKDIR /binaryen
14 | >>> RUN cmake -DCMAKE_BUILD_TYPE=Release .
15 | RUN make -j$(nproc)
16 | RUN make install
--------------------
ERROR: failed to solve: process "/bin/sh -c cmake -DCMAKE_BUILD_TYPE=Release ." did not complete successfully: exit code: 1
```

I need assistance on how to run this repo locally.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.