-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6004fba
commit 8357f68
Showing
2 changed files
with
19 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
FROM ubuntu:latest | ||
FROM ubuntu:22.04 | ||
|
||
# Install system packages | ||
RUN apt-get update && apt-get install -y \ | ||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
zsh \ | ||
gpg \ | ||
ripgrep | ||
# Install oh-my-zsh | ||
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||
ripgrep \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /root/.oh-my-zsh/plugins/history-sync | ||
# Install oh-my-zsh and history-sync plugin | ||
RUN bash -c 'set -o pipefail' \ | ||
&& 'curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh -e' \ | ||
&& mkdir -p /root/.oh-my-zsh/plugins/history-sync | ||
COPY history-sync.plugin.zsh /root/.oh-my-zsh/plugins/history-sync/ | ||
# Install a basic `zshrc` | ||
COPY test/zshrc /root/.zshrc | ||
# Install the test script | ||
COPY test/test.zsh /root | ||
RUN chmod +x /root/test.zsh | ||
|
||
ARG ACCESS_KEY | ||
ENV ACCESS_KEY=${ACCESS_KEY} | ||
ENTRYPOINT /usr/bin/zsh -i /root/test.zsh $ACCESS_KEY | ||
ENTRYPOINT ["/usr/bin/zsh"] | ||
CMD ["-i", "-c", "source /root/test.zsh ${ACCESS_KEY}"] |
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