StackStorm / st2packs-dockerfiles

Source for st2packs-builder and st2packs-runner images
3 stars 20 forks source link

Provide better documentation about installing from "local pack" via file:/// #7

Closed arm4b closed 5 years ago

arm4b commented 5 years ago

As reported in #community

When installing a pack from "local dir", need to make sure that path is available during the docker build environment. It means it needs additional COPY operation prior to running st2-pack-install.

An example Dockerfile that demonstrates it:

ARG PACKS="file:///tmp/stackstorm-st2"

FROM stackstorm/st2packs:builder AS builder
# considering you have your "local" pack under the `stackstorm-st2` dir relative to Dockerfile
# Here we copy local "stackstorm-st2" dir into Docker's "/tmp/stackstorm-st2"
COPY stackstorm-st2 /tmp/stackstorm-st2/
# Check it
RUN ls -la /tmp/stackstorm-st2

RUN /opt/stackstorm/st2/bin/st2-pack-install ${PACKS}
FROM stackstorm/st2packs:runtime