File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ build /
2+ .git /
3+ Dockerfile
Original file line number Diff line number Diff line change 11Cargo.lock
2+
3+ # build script files
4+ build
5+ /build_ *
6+ cmake_build
7+ .cmake_build
8+
9+ # buck generated files
10+ .buckd /
11+ .lsp-buck-out /
12+ .lsp.buckd /
13+ buck-out /
Original file line number Diff line number Diff line change 1+ FROM ubuntu:22.04 as build
2+ RUN apt-get update && apt-get install -y --no-install-recommends \
3+ build-essential \
4+ ca-certificates \
5+ cmake \
6+ curl \
7+ git \
8+ libssl-dev \
9+ ninja-build \
10+ tini \
11+ && rm -rf /var/lib/apt/lists/*
12+ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s - -y
13+ ENV PATH /root/.cargo/bin:$PATH
14+
15+ WORKDIR /dyno-build
16+ COPY . .
17+ RUN scripts/build.sh
18+
19+ FROM ubuntu:22.04 as final
20+ WORKDIR /
21+ COPY --from=build /dyno-build/build/dynolog/src/dynolog /dyno-build/build/release/dyno /opt/dyno/
22+ COPY --from=build /usr/bin/tini /tini
23+ ENTRYPOINT ["/tini" , "--" ]
24+ CMD ["/opt/dyno/dynolog" , "--enable_ipc_monitor" ]
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set -eux -o pipefail
1111
1212# Check dependencies
1313cmake --version || echo " Please install cmake for your platform using dnf/apt-get etc."
14- ninja-build --version || echo " Please install ninja for your platform using dnf/apt-get etc."
14+ ninja --version || echo " Please install ninja for your platform using dnf/apt-get etc."
1515rustc --version || echo " Please install Rust and Cargo - see https://www.rust-lang.org/tools/install"
1616cargo --version || echo " Please install Rust and Cargo - see https://www.rust-lang.org/tools/install"
1717
@@ -20,7 +20,7 @@ echo "Running cmake"
2020mkdir -p build; cd build;
2121
2222# note we can build without ninja if not available on this system
23- cmake -DCMAKE_BUILD_TYPE=Release -G=Ninja " $@ " ..
23+ cmake -DCMAKE_BUILD_TYPE=Release -GNinja " $@ " ..
2424cmake --build .
2525
2626echo " Binary files ="
You can’t perform that action at this time.
0 commit comments