Skip to content

/opt/stackstorm/virtualenvs/{pack} does not exist #23

@ib-ak

Description

@ib-ak

I am trying to build custom pack image. however keep getting this message
/opt/stackstorm/virtualenvs/{pack} does not exist

example 1

$ docker build --build-arg PACKS="csv" --tag st2packs:temp  st2packs-image
Sending build context to Docker daemon  4.608kB
Step 1/3 : FROM stackstorm/st2packs:builder AS builder
# Executing 2 build triggers
 ---> Using cache
 ---> Running in 21ed0b91a229
Removing intermediate container 21ed0b91a229
 ---> 687ff0be7f30
Step 2/3 : RUN /opt/stackstorm/st2/bin/st2-pack-install ${PACKS}
 ---> Running in 9f6fbd0878ec
2021-02-03 15:58:20,109 INFO [-] Installing pack "csv"
2021-02-03 15:58:21,729 INFO [-] Successfully installed pack "csv"
2021-02-03 15:58:21,729 INFO [-] Setting up virtualenv for pack "csv"
2021-02-03 15:58:21,730 INFO [-] Virtualenv path "/opt/stackstorm/virtualenvs/csv" doesn't exist
2021-02-03 15:58:27,714 INFO [-] Successfully set up virtualenv for pack "csv"
Removing intermediate container 9f6fbd0878ec
 ---> 6caf196701ef
Step 3/3 : FROM stackstorm/st2packs:runtime
# Executing 3 build triggers
 ---> Using cache
 ---> 14bfee293f14
Successfully built 14bfee293f14
Successfully tagged st2packs:temp

example 2

$ docker build --build-arg PACKS="git" --tag st2packs:temp  st2packs-image
Sending build context to Docker daemon  4.608kB
Step 1/3 : FROM stackstorm/st2packs:builder AS builder
# Executing 2 build triggers
 ---> Using cache
 ---> Running in 1f0d2129905e
Removing intermediate container 1f0d2129905e
 ---> 15701667e076
Step 2/3 : RUN /opt/stackstorm/st2/bin/st2-pack-install ${PACKS}
 ---> Running in f1056a493fb9
2021-02-03 16:23:40,633 INFO [-] Installing pack "git"
2021-02-03 16:23:42,382 INFO [-] Successfully installed pack "git"
2021-02-03 16:23:42,383 INFO [-] Setting up virtualenv for pack "git"
2021-02-03 16:23:42,384 INFO [-] Virtualenv path "/opt/stackstorm/virtualenvs/git" doesn't exist
2021-02-03 16:23:49,616 INFO [-] Successfully set up virtualenv for pack "git"
Removing intermediate container f1056a493fb9
 ---> 7891e85cdeee
Step 3/3 : FROM stackstorm/st2packs:runtime
# Executing 3 build triggers
 ---> Using cache
 ---> ad54b3db93ed
Successfully built ad54b3db93ed
Successfully tagged st2packs:temp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions