prole/tests/shellspec/.vendor/shellspec-0.28.1/dockerfiles/.shellspec
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims

- Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers

- Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them

- Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring

- Document the new layout in docs/layout.md

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-13 09:19:56 -07:00

22 lines
655 B
Docker

ARG IMAGE
FROM shellspec:helpers as helpers
FROM $IMAGE
COPY --from=helpers /usr/local/bin/* /usr/local/bin/
WORKDIR /shellspec
RUN chmod ug+s /usr/local/bin/su-exec \
&& echo "--no-banner" > /home/user/.shellspec-options \
&& if [ "$KCOV" ]; then echo "--kcov" >> /home/user/.shellspec-options; fi \
&& ln -s /shellspec/shellspec /usr/local/bin/shellspec \
&& echo "$SH" > /etc/invokesh.conf \
&& [ "$SH" = "/bin/sh" ] || ln -snf /usr/local/bin/invokesh /bin/sh
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "shellspec" ]
COPY ./dockerfiles/.shellspec-entrypoint.sh /entrypoint.sh
COPY --chown=user:user ./ /shellspec
RUN chmod 777 /shellspec
USER user