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
When installing a pack from "local dir", need to make sure that path is available during the
docker build
environment. It means it needs additionalCOPY
operation prior to runningst2-pack-install
.An example Dockerfile that demonstrates it: