-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
8 changed files
with
34 additions
and
29 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,4 +1,4 @@ | ||
# Following source doesn't work in most setups | ||
ignored: | ||
- SC1090 | ||
- SC1091 | ||
- DL3018 | ||
- SC1071 |
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 |
---|---|---|
|
@@ -8,11 +8,11 @@ plugins: | |
uri: https://github.com/trunk-io/plugins | ||
lint: | ||
disabled: | ||
- terrascan | ||
- trivy | ||
- checkov | ||
- yamllint | ||
enabled: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- git-diff-check | ||
|
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 |
---|---|---|
|
@@ -3,35 +3,39 @@ FROM alpine:${VERSION} | |
LABEL maintainer="<%= Z-Shell Community %>" | ||
LABEL email="<%= [email protected] =%>" | ||
|
||
ARG HOSTNAME=zi@docker | ||
ARG ZUSER=z-user | ||
ARG SHELL=/bin/zsh | ||
ARG HOSTNAME=zi@docker-alpine | ||
ARG DIR=/static | ||
ARG SHELL=/bin/zsh | ||
ARG ZUSER=user | ||
ARG PUID=${UID:-1000} | ||
ARG PGID=${GID:-1000} | ||
ARG TERM=${TERM:-xterm-256color} | ||
|
||
ENV ZUSER=${ZUSER} | ||
ENV PUID=${PUID} | ||
ENV PGID=${PGID} | ||
ENV DIR=${DIR} | ||
ENV TERM=${TERM} | ||
ENV HOSTNAME=${HOSTNAME} | ||
ENV APK_ADD=${APK_ADD} | ||
ENV DIR=${DIR} TERM=${TERM} | ||
ENV ZI_ZSH_VERSION=${ZI_ZSH_VERSION} | ||
ENV ZI_HOME_DIR=${ZI_HOME_DIR} ZI_BIN_DIR=${ZI_BIN_DIR} | ||
|
||
# trunk-ignore(hadolint/DL3018) | ||
RUN apk --no-cache --virtual base add coreutils curl \ | ||
jq git libuser rsync sudo zsh ncurses-dev pcre-dev zlib-dev alpine-zsh-config \ | ||
jq git libuser rsync zsh ncurses-dev pcre-dev zlib-dev alpine-zsh-config \ | ||
&& apk --no-cache --virtual zsh-build-tools add autoconf bash build-base go vim | ||
|
||
WORKDIR $DIR | ||
WORKDIR ${DIR} | ||
COPY . . | ||
RUN chmod +x entrypoint.sh && ./entrypoint.sh | ||
|
||
VOLUME ["/src", "/data"] | ||
COPY --chown=${ZUSER} . /src | ||
COPY --chmod=+x . /src | ||
|
||
USER ${ZUSER} | ||
WORKDIR /home/${ZUSER} | ||
SHELL ["/bin/zsh", "-c"] | ||
|
||
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/z-shell/zi-src/main/lib/sh/install.sh)" -- -i skip | ||
RUN curl -fsSLO 'https://raw.githubusercontent.com/z-shell/zi-src/main/lib/sh/install.sh' \ | ||
&& chmod +x install.sh && ./install.sh -i skip | ||
|
||
CMD ["/bin/zsh", "-l"] | ||
CMD ["zsh", "-l"] |
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