-
-
Notifications
You must be signed in to change notification settings - Fork 166
Description
Hi All,
I'm wondering what is the best practice to install pack in compose-1ppc.
The host and docker containers are behind a proxy and the pack is coding locally. Is there a simple solution to deploy the pack easily.
While developing on a standalone stackstorm installed from yum, I can simply install the pack in the vm on my laptop (with internet access) by
st2 pack install file:///root/my-pack
After that I just need to zip the /opt/stackstorm/packs/my-pack and /opt/stackstorm/virtualenvs/my-pack to the target stackstorm in the server, then reload. that's it.
But in compose-1ppc I cannot do that. I tried to copy them to the named volume
/var/lib/docker/volumes/compose-1ppc_stackstorm-packs/
Then try to
docker exec -it compose-1ppc_st2client_1 bash
st2 pack install file:///root/my-pack-code
I hope the 1ppc will create pack named 'my-pack' to /opt/stackstorm/packs but it failed by permission error.
SoI tried another way, init first:
docker exec -it compose-1ppc_st2actionrunner_1 bash
export http_proxy=http://proxyip:9000 && export https_proxy=http://proxyip:9000 && export no_proxy=localhost,127.0.0.1,st2auth,st2api && st2-register-content --config-file /etc/st2/st2.conf --register-all --register-setup-virtualenvs
This succeeded and core, default, linux, packs were created.
But when I tried to install a github pack like:
docker exec -it compose-1ppc_st2client_1 bash
export http_proxy=http://proxyip:9000 && export https_proxy=http://proxyip:9000 && export no_proxy=localhost,127.0.0.1,st2auth,st2api,st2client,st2stream,st2sensorcontainer,st2rulesengine,st2timersengine,st2workflowengine,st2actionrunner,st2scheduler,st2resultstracker,st2notifier,st2garbagecollector,mistral-api,mistral-server,st2web,st2web-dns && st2 pack install https://github.com/shusugmt/st2-pack-examples
It took a long time
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v https://github.com/shusugmt/st2-pack-examples /root/3d8be41e6e37b0696226f402baf0aa19
stderr: 'Cloning into '/root/3d8be41e6e37b0696226f402baf0aa19'...
fatal: unable to access 'https://github.com/shusugmt/st2-pack-examples/': Failed to connect to github.com port 443: Connection timed out
'traceback: None
failed_on: download pack
start_timestamp: Mon, 25 May 2020 07:55:45 UTC
end_timestamp: Mon, 25 May 2020 07:57:57 UTC
+--------------------------+-----------------------+---------------+----------------+-------------------------------+
| id | status | task | action | start_timestamp |
+--------------------------+-----------------------+---------------+----------------+-------------------------------+
| 5ecb7a02dcca4d00157fa4e9 | failed (130s elapsed) | download pack | packs.download | Mon, 25 May 2020 07:55:46 UTC |
+--------------------------+-----------------------+---------------+----------------+-------------------------------+
I've tested the proxy could reach github 443, so I don't know what to do now.
Using 1ppc is that I want to scale the action runner and workflow, but it seems install pack is not easy under a proxy.
Any suggestion? Thanks a lot.