Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 0 additions & 69 deletions .circleci/config.yml

This file was deleted.

45 changes: 45 additions & 0 deletions .github/workflows/st2-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: st2-docker

on:
pull_request:
push:
branches:
- main
- master
schedule:
- cron: 0 1 * * *
workflow_dispatch:

jobs:
docker-compose-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Docker-compose lint check
run: docker-compose config

docker-compose-up:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Pull Docker Images
run: |
docker-compose pull

- name: Start st2 with docker-compose
run: |
docker-compose up --detach

- name: Run st2 smoke-tests
run: |
sleep 60
docker-compose -f tests/st2tests.yaml up

- name: Troubleshooting the build failure
if: ${{ failure() }}
run: |
docker-compose ps
# Display logs to help troubleshoot build failures, etc
docker-compose logs --tail="500" st2api
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# StackStorm in Docker Compose
[![Circle CI Build Status](https://circleci.com/gh/StackStorm/st2-docker/tree/master.svg?style=shield)](https://circleci.com/gh/StackStorm/st2-docker)

[![CI Build Status](https://github.com/StackStorm/st2-docker/actions/workflows/st2-docker.yml/badge.svg)](https://github.com/StackStorm/st2-docker/actions/workflows/st2-docker.yml)

This docker-compose is provided as a way to allow "get up and running" quickly with StackStorm using Docker (based on [st2-dockerfiles](https://github.com/stackstorm/st2-dockerfiles)). It is not designed to be used in production, but rather a way to test out StackStorm and facilitate pack development.
> If you need Highly Availability experience, there is Kubernetes installation available via Helm charts at https://docs.stackstorm.com/install/k8s_ha.html.
Expand Down Expand Up @@ -36,7 +37,7 @@ The image version, exposed ports, chatops, and "packs.dev" directory are configu

The `files/htpasswd` file is provided with a default username of `st2admin` and a default password of `Ch@ngeMe`. This can be changed using the [htpasswd utility](https://httpd.apache.org/docs/2.4/programs/htpasswd.html).

Another file (`files/st2-cli.conf`) contains default credentials and is mounted into the "st2client" container. If you change credentials in htpasswd, you will probably want to change them in `st2-cli.conf`.
Another file (`files/st2-cli.conf`) contains default credentials and is mounted into the "st2client" container. If you change credentials in htpasswd, you will probably want to change them in `st2-cli.conf`.

### Further configuration

Expand Down Expand Up @@ -69,7 +70,7 @@ restart your st2 stack.
#### RBAC Configuration

Starting with v3.4.0 RBAC is now included, but not enabled, by default. There are some default assignments, mappings, and roles
that ship with st2-docker. All the configuration files for RBAC are kept in `./files/rbac`.
that ship with st2-docker. All the configuration files for RBAC are kept in `./files/rbac`.
Consult the [st2 RBAC documentation](https://docs.stackstorm.com/rbac.html) for further information.

To enable RBAC you can edit st2.user.conf and add the following options:
Expand Down Expand Up @@ -254,7 +255,7 @@ First, find the actual container name of st2api by running `docker-compose ps st

```shell
$ docker-compose ps st2api
Name Command State Ports
Name Command State Ports
--------------------------------------------------------------------
compose_st2api_1 /opt/stackstorm/st2/bin/st ... Up 9101/tcp
```
Expand Down Expand Up @@ -380,7 +381,7 @@ docker-compose down --remove-orphans -v

# Testing

Testing st2-docker is now powered by [BATS](https://github.com/sstephenson/bats) Bash Automated Testing System.
Testing st2-docker is now powered by [BATS](https://github.com/sstephenson/bats) Bash Automated Testing System.
A "sidecar" like container loads the BATS libraries and binaries into a st2client-like container to run the tests

To run the tests
Expand Down