How can I change the version on docker images downloaded by hurley when running npm run env:start ?
I would like to ask hurley to download v 2.2.0 but it keeps downlaoding v1.4.0 ... I tried to change in docker-compose.yaml and other config files, I ask docker to remove all existing images but no way ....
Asked
Active
Viewed 97 times
0

Vadim Kotov
- 8,084
- 8
- 48
- 62

Thierry Grandjean
- 71
- 8
-
Apparently hurley is switching the version value within the docker-compose.yaml back to 1.4.0 itself when running npm env:start – Thierry Grandjean Aug 04 '20 at 10:27
1 Answers
2
According to readme file Hurley supports Hyperledger 1.4 networks. I don't think forcing the download of version 2.0 would be enough since there are major changes between the two versions.

Quevas
- 101
- 1
- 2
-
Thanks for the reply. yes I know but from my understanding hurley is just creating automatically a peer/orderer network, channels and registering users. I just use it to create dev environments so it should be ok. But it might be impossible to change... – Thierry Grandjean Aug 04 '20 at 13:42
-
Even on standard setup (without hurley), i have a line like "image: hyperledger/fabric-orderer:$IMAGE_TAG" in the yaml file I still don't know where to change the value of IMAGE_TAG ... – Thierry Grandjean Aug 04 '20 at 13:44
-
Sounds like env_var (https://hyperledger-fabric.readthedocs.io/en/release-2.0/upgrading_your_components.html#set-command-environment-variables) – Quevas Aug 04 '20 at 14:04
-
I think that when you run "npm env:start" it calls some script inside your node_modules directory. Try searching for something like start.sh. It should set the environment variable for the fabric version. – Quevas Aug 04 '20 at 14:50
-