spip/tools

By spip

Updated about 1 month ago

CLI Tools for SPIP developments

Image
Content Management System

3.0K

Friends of SPIP

Tooling Containers for SPIP

Usage

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>

Build

git clone https://github.com/spip-remix/docker.git
cd docker
./build.sh

Docker Pull Command

docker pull spip/tools