Skip to content

Commit 9676531

Browse files
committed
Switch CI from Circle to GitHub
1 parent 2ecf84d commit 9676531

File tree

3 files changed

+48
-74
lines changed

3 files changed

+48
-74
lines changed

.circleci/config.yml

-69
This file was deleted.

.github/workflows/st2-docker.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: st2-docker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: 0 1 * * *
9+
10+
jobs:
11+
docker-compose-lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Docker-compose lint check
17+
run: docker-compose config
18+
19+
docker-compose-up:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Pull Docker Images
25+
run: |
26+
docker-compose pull
27+
28+
- name: Start st2 with docker-compose
29+
run: |
30+
docker-compose up --detach
31+
32+
- name: Run st2 smoke-tests
33+
run: |
34+
sleep 60
35+
docker-compose -f tests/st2tests.yaml up
36+
37+
- name: Troubleshooting the build failure
38+
if: ${{ failure() }}
39+
run: |
40+
docker-compose ps
41+
# Display logs to help troubleshoot build failures, etc
42+
docker-compose logs --tail="500" st2api

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# StackStorm in Docker Compose
2-
[![Circle CI Build Status](https://circleci.com/gh/StackStorm/st2-docker/tree/master.svg?style=shield)](https://circleci.com/gh/StackStorm/st2-docker)
2+
3+
[![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)
34

45
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.
56
> If you need Highly Availability experience, there is Kubernetes installation available via Helm charts at https://docs.stackstorm.com/install/k8s_ha.html.
@@ -36,7 +37,7 @@ The image version, exposed ports, chatops, and "packs.dev" directory are configu
3637

3738
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).
3839

39-
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`.
40+
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`.
4041

4142
### Further configuration
4243

@@ -69,7 +70,7 @@ restart your st2 stack.
6970
#### RBAC Configuration
7071

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

7576
To enable RBAC you can edit st2.user.conf and add the following options:
@@ -254,7 +255,7 @@ First, find the actual container name of st2api by running `docker-compose ps st
254255
255256
```shell
256257
$ docker-compose ps st2api
257-
Name Command State Ports
258+
Name Command State Ports
258259
--------------------------------------------------------------------
259260
compose_st2api_1 /opt/stackstorm/st2/bin/st ... Up 9101/tcp
260261
```
@@ -380,7 +381,7 @@ docker-compose down --remove-orphans -v
380381

381382
# Testing
382383

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

386387
To run the tests

0 commit comments

Comments
 (0)