Skip to content

Commit

Permalink
[Fix] Solve cargo: not found error in container and add make image/re…
Browse files Browse the repository at this point in the history
…lease option (#53)

* Solve cargo: not found error in container

Signed-off-by: RandyLambert <[email protected]>

* Add make image/release option

Signed-off-by: RandyLambert <[email protected]>

Co-authored-by: xixi <[email protected]>
Co-authored-by: Yang Keao <[email protected]>

Co-authored-by: xixi <[email protected]>
Co-authored-by: Yang Keao <[email protected]>
  • Loading branch information
3 people authored Jul 12, 2022
1 parent b458a83 commit 00c83a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV https_proxy $HTTPS_PROXY

RUN apt-get update && apt-get install build-essential $CC curl git pkg-config -y && rm -rf /var/lib/apt/lists/*

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly-2021-12-23 -y
ENV PATH "/root/.cargo/bin:${PATH}"

RUN if [ -n "$HTTP_PROXY" ]; then echo "[http]\n\
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ run:
test:
cargo test --all
lint:
cargo clippy --all-targets -- -D warnings
cargo clippy --all-targets -- -D warnings
image:
DOCKER_BUILDKIT=1 docker build --build-arg HTTP_PROXY --build-arg HTTPS_PROXY . -t chaos-mesh/tproxy
release: image
docker run -v ${PWD}:/opt/mount:z --rm --entrypoint cp chaos-mesh/tproxy /tproxy /opt/mount/tproxy

0 comments on commit 00c83a0

Please sign in to comment.