-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add starship as the prompt manager (#681)
* feat: add starship as the prompt manager Signed-off-by: Keming <[email protected]> * rm llb.merge Signed-off-by: Keming <[email protected]> * fix py version Signed-off-by: Keming <[email protected]> * fix conflict Signed-off-by: Keming <[email protected]> * chore: rm zsh theme func, parameterize version Signed-off-by: Keming <[email protected]> * fix lint Signed-off-by: Keming <[email protected]>
- Loading branch information
Showing
12 changed files
with
89 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ LABEL maintainer "envd-maintainers <[email protected]>" | |
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PATH="/usr/bin:${PATH}" | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends --no-install-suggests --fix-missing \ | ||
|
@@ -23,7 +25,9 @@ RUN apt-get update && \ | |
procps subversion wget \ | ||
# envd dependencies | ||
python3 curl openssh-client git tini sudo python3-pip zsh vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# prompt | ||
&& curl --proto '=https' --tlsv1.2 -sSf https://starship.rs/install.sh | sh -s -- -y | ||
|
||
COPY --from=envd /usr/bin/envd-ssh /var/envd/bin/envd-ssh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,8 @@ ARG TARGETARCH | |
LABEL maintainer "envd-maintainers <[email protected]>" | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends --no-install-suggests --fix-missing bash-static \ | ||
|
@@ -77,7 +79,9 @@ RUN apt-get update && \ | |
procps subversion wget \ | ||
# envd dependencies | ||
curl openssh-client git tini sudo zsh vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# prompt | ||
&& curl --proto '=https' --tlsv1.2 -sSf https://starship.rs/install.sh | sh -s -- -y | ||
|
||
# Keep apt from auto upgrading the cublas and nccl packages. See https://gitlab.com/nvidia/container-images/cuda/-/issues/88 | ||
RUN apt-mark hold ${NV_LIBCUBLAS_DEV_PACKAGE_NAME} ${NV_LIBNCCL_DEV_PACKAGE_NAME} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,17 +16,21 @@ LABEL maintainer "envd-maintainers <[email protected]>" | |
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PATH="/usr/bin:${PATH}" | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update && \ | ||
apt-get install apt-utils && \ | ||
apt-get install -y apt-utils && \ | ||
apt-get install -y --no-install-recommends --no-install-suggests --fix-missing \ | ||
bash-static libtinfo5 libncursesw5 \ | ||
# conda dependencies | ||
bzip2 ca-certificates libglib2.0-0 libsm6 libxext6 libxrender1 mercurial \ | ||
procps subversion wget \ | ||
# envd dependencies | ||
curl openssh-client git tini sudo zsh vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# prompt | ||
&& curl --proto '=https' --tlsv1.2 -sSf https://starship.rs/install.sh | sh -s -- -y | ||
|
||
# Leave these args here to better use the Docker build cache | ||
ARG CONDA_VERSION=py39_4.11.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ LABEL maintainer "envd-maintainers <[email protected]>" | |
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PATH="/usr/bin:${PATH}" | ||
ENV LANG C.UTF-8 | ||
ENV LC_ALL C.UTF-8 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends --no-install-suggests --fix-missing \ | ||
|
@@ -25,7 +27,9 @@ RUN apt-get update && \ | |
libpq5 psmisc procps python-setuptools pwgen lsb-release \ | ||
# envd dependencies | ||
python3 curl openssh-client git tini sudo zsh vim \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# prompt | ||
&& curl --proto '=https' --tlsv1.2 -sSf https://starship.rs/install.sh | sh -s -- -y | ||
|
||
RUN set -x && \ | ||
UNAME_M="$(uname -m)" && \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters