mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 16:34:31 +00:00
- 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>
22 lines
655 B
Docker
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
|