stackstorm in a docker container…the easy way!

Install stackstorm in a docker container. Use the following commands.
cd /opt
sudo git clone git@github.com:stackstorm/st2-docker
cd st2-docker
sudo make env
sudo docker-compose up -d
sudo docker-compose exec stackstorm bash

You should have a prompt that looks like this:(you are now in the st2 container!!!!

root@cf4451445350:/#

Check the stack storm version

root@cf4451445350:/# st2 –version (2 dashes)
st2 3.1.0, on Python 2.7.6

Get the user and password

root@klarthos:/opt/st2-docker# cat conf/stackstorm.env
ST2_USER=st2admin
ST2_PASSWORD=TVstqxeA  (Your password will be different than mine, naturally)

You will need to type the password in you env file (no cut and paste) in on the st2 container

root@cf4451445350:/# st2 login st2admin
Password:TVstqxeA
# You will not see this when you are typing.
Logged in as st2admin


Note: You didn’t use –write-password option so the password hasn’t been stored in the client config and you will need to login again in 24 hours when the auth token expires.
As an alternative, you can run st2 login command with the “–write-password” flag, but keep it mind this will cause it to store the password in plain-text in the client config file (~/.st2/config).

Hit enter a couple times….Great, you just logged in to stackstorm!
Lets verify with a list command:

“`

root@cf4451445350:/# st2 pack list
+———+———+————————–+———+——————+
| ref | name | description | version | author |
+———+———+————————–+———+——————+
| chatops | chatops | ChatOps integration pack | 3.1.0 | StackStorm, Inc. |
| core | core | Basic core actions. | 3.1.0 | StackStorm, Inc. |
| default | default | Default pack where all | 3.1.0 | StackStorm, Inc. |
| | | resources created using | | |
| | | the API with no pack | | |
| | | specified get saved. | | |
| linux | linux | Generic Linux actions | 3.1.0 | StackStorm, Inc. |
| packs | packs | Pack management | 3.1.0 | StackStorm, Inc. |
| | | functionality. | | |
+———+———+————————–+———+——————+
root@cf4451445350:/#

“`

Stackstorm ready for action!

Leave a Reply

Your email address will not be published. Required fields are marked *