spip/tools
CLI Tools for SPIP developments
3.0K
Tooling Containers for SPIP
Locally:
docker run --rm -v $(pwd):/build/app spip/tools:<version> <command>
in a .gitlab-ci.yml
:
my-job:
stage: my-stage
image:
name: spip/tools:<version>
entrypoint:
- "/bin/ash"
- "-c"
script:
- make -f /Makefile <[command ...]>
artifacts:
- <build/[file ...]>
Custom your own image:
FROM spip/tools:<version>
ENV COMPOSER_AUTH="{\"github-oauth\": {\"github.com\": \"xxxxx\"}, \"gitlab-token\": {\"gitlab.my.org\":\"xxxxx\"}}"
COPY <my-tool>.make /build/makefiles
RUN apk --no-cache add openssh git && \
ssh-keyscan gitlab.my.org > /build/.ssh/known_host && \
composer config --global gitlab-domains gitlab.my.org
docker run \
--rm \
-e SSH_AUTH_SOCK=/ssh-agent \
-v $(pwd):/build/app \
-v $SSH_AUTH_SOCK:/ssh-agent \
your/image:<version> <command>
git clone https://github.com/spip-remix/docker.git
cd docker
./build.sh
docker pull spip/tools