Skip to content

Commit

Permalink
1: adding fmt and clippy to the toolchain
Browse files Browse the repository at this point in the history
- includes rust-analyzer
  • Loading branch information
jac18281828 committed Nov 14, 2023
1 parent 2b9da9a commit b9c32f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ jobs:
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64
push: false
build-args: |
VERSION=latest
tags: |
${{ github.event.repository.name }}:${{ github.sha }}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.0.1 (2023-11-14)

* add fmt
* add clippy
* add rust-analyzer

1.0.0 (2023-11-08)

* initial rust container
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ ENV PATH ${NVM_NODE_PATH}/bin:$PATH
RUN npm install npm -g
RUN npm install yarn -g


ENV USER=xmtp
## Rust from builder
COPY --chown=xmtp:xmtp --from=builder /home/xmtp/.cargo /home/xmtp/.cargo
COPY --chown=xmtp:xmtp --from=builder /home/xmtp/.rustup /home/xmtp/.rustup
COPY --chown=${USER}:${USER} --from=builder /home/${USER}/.cargo /home/${USER}/.cargo
COPY --chown=${USER}:${USER} --from=builder /home/${USER}/.rustup /home/${USER}/.rustup

ENV PATH=/home/${USER}/.cargo/bin:$PATH
USER xmtp
RUN rustup toolchain install stable
RUN rustup component add rustfmt
RUN rustup component add clippy
RUN rustup component add rust-analyzer

LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="rust" \
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Everything needed to Rust and Protocol buffers from stable toolchain.
- BuildKit TARGETARCH
`$ DOCKER_BUILDKIT=1 docker build . -t ... `


## arm64

To build locally, run:
Expand Down

0 comments on commit b9c32f5

Please sign in to comment.