https://github.com/stackstorm/st2packs-dockerfiles
Source for st2packs-builder and st2packs-runner images
https://github.com/stackstorm/st2packs-dockerfiles
Last synced: 12 months ago
JSON representation
Source for st2packs-builder and st2packs-runner images
- Host: GitHub
- URL: https://github.com/stackstorm/st2packs-dockerfiles
- Owner: StackStorm
- Created: 2018-09-20T17:10:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-05T14:37:47.000Z (over 2 years ago)
- Last Synced: 2025-01-09T08:18:40.951Z (about 1 year ago)
- Language: Dockerfile
- Size: 47.9 KB
- Stars: 3
- Watchers: 9
- Forks: 20
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://hub.docker.com/r/stackstorm/st2packs/)
# Overview
By default, only system packs are available to StackStorm services when installed using the
stackstorm-ha [helm chart](https://helm.stackstorm.com). If you need additional packs,
bake them into a custom docker image using the instructions below.
The `st2packs` image will mount `/opt/stackstorm/{packs,virtualenvs}` via a sidecar container in
pods which need access to the packs. These volumes are mounted read-only. In the kubernetes cluster,
the `st2 pack install` command will not work.
# Building the st2packs image
To build your own custom `st2packs` image, run:
```
git clone git@github.com:stackstorm/st2packs-dockerfiles
cd st2packs-dockerfiles
docker build --build-arg PACKS="" -t ${DOCKER_REGISTRY}/st2packs: st2packs-image
```
where `` is a space separated list of packs you want to install in the st2packs image
and `` is the registry URL. `` should be used and incremented with each change to the pack contents, since using 'latest' as the pack will not tell helm when changes occur and upgrade will not occur. The pack may be specified as a github url, or as a
local file (e.g. file://). In the latter case, then you need to ensure these are
COPY'd into the docker build environment. As an example,
```
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
```
# Helper images
The `st2packs-builder` and `st2packs-runtime` directories each contain a Dockerfile for images that
are used to simplify the `st2packs` Dockerfile.