Skip to content

Commit

Permalink
feat: alias rust alternatives using symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
nain-F49FF806 committed Feb 21, 2024
1 parent ece10c3 commit 8ceed2b
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 6 deletions.
11 changes: 7 additions & 4 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ LABEL org.opencontainers.image.description "${SUMMARY}. ${USAGE}"
## If you wish to cache binaries installed with cargo install, you need to cache the bin/ folder and the .crates.toml and .crates2.json files.
COPY --from=builder /usr/local/cargo/bin/ /opt/cargo/bin/
COPY --from=builder /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-fedora/profile.d/* /etc/profile.d/
COPY customization/rusty-fedora/opt/cargo/bin/* /opt/cargo/bin/
COPY customization/rusty-fedora/etc/profile.d/* /etc/profile.d/


# --- Ubuntu ---
Expand All @@ -57,7 +58,8 @@ COPY --from=builder /usr/local/cargo/bin/ /opt/cargo/bin/
COPY --from=builder /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-ubuntu/profile.d/* /etc/profile.d/
COPY customization/rusty-ubuntu/opt/cargo/bin/* /opt/cargo/bin/
COPY customization/rusty-ubuntu/etc/profile.d/* /etc/profile.d/


# --- Arch ---
Expand All @@ -83,4 +85,5 @@ COPY --from=builder /usr/local/cargo/bin/ /opt/cargo/bin/
COPY --from=builder /usr/local/cargo/.crates.toml /usr/local/cargo/.crates2.json /opt/cargo/
ENV PATH=/opt/cargo/bin:$PATH

COPY customization/rusty-arch/profile.d/* /etc/profile.d/
COPY customization/rusty-arch/opt/cargo/bin/* /opt/cargo/bin/
COPY customization/rusty-arch/etc/profile.d/* /etc/profile.d/
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/cat
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/diff
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/du
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/find
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/grep
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/hexdump
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/ls
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/time
1 change: 1 addition & 0 deletions customization/common/opt/cargo/bin/top
2 changes: 1 addition & 1 deletion customization/rusty-arch
1 change: 1 addition & 0 deletions customization/rusty-fedora
2 changes: 1 addition & 1 deletion customization/rusty-ubuntu

0 comments on commit 8ceed2b

Please sign in to comment.