Skip to content

Commit

Permalink
Fix README.md for updated instructions.
Browse files Browse the repository at this point in the history
Update xargs command to throw an error if the apt-requirements.txt file is not found.

Signed-off-by: veritas <[email protected]>
  • Loading branch information
veritas9872 committed Jun 1, 2022
1 parent f34b465 commit 4c3912d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ RUN --mount=type=bind,source=reqs/deb,target=/tmp/deb \
# See the `deploy` stage below to see how to add other apt reporitories.
COPY --link reqs/apt-train.requirements.txt /tmp/apt/requirements.txt
RUN apt-get update && sed 's/#.*//g; s/\r//g' /tmp/apt/requirements.txt | \
xargs -r apt-get install -y --no-install-recommends && \
xargs apt-get install -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

ARG GID
Expand Down Expand Up @@ -462,8 +462,8 @@ ARG ZSHS_PATH=${HOME}/.zsh/zsh-syntax-highlighting
COPY --link --from=train-builds --chown=${UID}:${GID} /opt/zsh-syntax-highlighting ${ZSHS_PATH}
RUN echo "source ${ZSHS_PATH}/zsh-syntax-highlighting.zsh" >> ${HOME}/.zshrc

# Enable mouse scrolling for tmux.
RUN echo 'set -g mouse on' >> ${HOME}/.tmux.conf
# Enable mouse scrolling for tmux. This also disables copying text from the terminal.
# RUN echo 'set -g mouse on' >> ${HOME}/.tmux.conf

# `PROJECT_ROOT` belongs to `USR` if created after `USER` has been set.
# Not so for pre-existing directories, which will still belong to root.
Expand Down Expand Up @@ -522,7 +522,7 @@ RUN --mount=type=bind,from=deploy-builds,readwrite,source=/tmp/apt,target=/tmp/a
add-apt-repository ppa:deadsnakes/ppa && apt-get update && \
printf "\n python${PYTHON_VERSION} \n" >> /tmp/apt/requirements.txt && \
sed 's/#.*//g; s/\r//g' /tmp/apt/requirements.txt | \
xargs -r apt-get install -y --no-install-recommends && \
xargs apt-get install -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/* && \
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${PYTHON_VERSION} 1 && \
update-alternatives --install /usr/bin/python python /usr/bin/python${PYTHON_VERSION} 1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[![Twitter](https://img.shields.io/twitter/url?url=https%3A%2F%2Fgithub.com%2Fcresset-template%2Fcresset)](https://twitter.com/intent/tweet?text=Awesome_Project!!!:&url=https%3A%2F%2Fgithub.com%2Fcresset-template%2Fcresset)

**Translations:
[한국어](https://github.com/cresset-template/cresset/blob/main/KOREAN.README.md)**
[한국어](https://github.com/cresset-template/cresset/blob/main/assets/KOREAN.README.md)**


![Cresset Logo](https://github.com/cresset-template/cresset/blob/main/assets/logo.png "Logo")
Expand Down

0 comments on commit 4c3912d

Please sign in to comment.