Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit b9c32f5

Browse files
committed
1: adding fmt and clippy to the toolchain
- includes rust-analyzer
1 parent 2b9da9a commit b9c32f5

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.github/workflows/ci-image.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
uses: docker/build-push-action@v3
3636
with:
3737
context: .
38-
platforms: linux/amd64
3938
push: false
4039
build-args: |
4140
VERSION=latest
41+
tags: |
42+
${{ github.event.repository.name }}:${{ github.sha }}

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.0.1 (2023-11-14)
2+
3+
* add fmt
4+
* add clippy
5+
* add rust-analyzer
6+
17
1.0.0 (2023-11-08)
28

39
* initial rust container

Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,17 @@ ENV PATH ${NVM_NODE_PATH}/bin:$PATH
6565
RUN npm install npm -g
6666
RUN npm install yarn -g
6767

68-
68+
ENV USER=xmtp
6969
## Rust from builder
70-
COPY --chown=xmtp:xmtp --from=builder /home/xmtp/.cargo /home/xmtp/.cargo
71-
COPY --chown=xmtp:xmtp --from=builder /home/xmtp/.rustup /home/xmtp/.rustup
70+
COPY --chown=${USER}:${USER} --from=builder /home/${USER}/.cargo /home/${USER}/.cargo
71+
COPY --chown=${USER}:${USER} --from=builder /home/${USER}/.rustup /home/${USER}/.rustup
7272

73+
ENV PATH=/home/${USER}/.cargo/bin:$PATH
7374
USER xmtp
75+
RUN rustup toolchain install stable
76+
RUN rustup component add rustfmt
77+
RUN rustup component add clippy
78+
RUN rustup component add rust-analyzer
7479

7580
LABEL org.label-schema.build-date=$BUILD_DATE \
7681
org.label-schema.name="rust" \

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Everything needed to Rust and Protocol buffers from stable toolchain.
3434
- BuildKit TARGETARCH
3535
`$ DOCKER_BUILDKIT=1 docker build . -t ... `
3636

37-
3837
## arm64
3938

4039
To build locally, run:

0 commit comments

Comments
 (0)