FLARE-forecast / FLARE-containers

Docker containers to run FLARE forecast
0 stars 2 forks source link

Add yq to the PATH #30

Closed vahid-dan closed 2 years ago

vahid-dan commented 3 years ago

Couldn't run yq after running flare-install.sh script on a fresh machine without executing the following line manually although the line is already embedded in the flare-install.sh.) [[ ":$PATH:" != *":$HOME/bin:"* ]] && echo -e "\nexport PATH='$HOME/bin:$PATH'" >> $HOME/.bashrc && source $HOME/.bashrc

vahid-dan commented 3 years ago

Try installing FLARE-containers by running flare-install.sh on a fresh Ubuntu 18.04 VM and also an Ubuntu 20.04 VM from scratch to investigate the problem.

vahid-dan commented 3 years ago

@Yun-Jung, I just found out the source of the problem:

We are running flare-install.sh using the following command:

source <(wget -O - https://raw.githubusercontent.com/FLARE-forecast/FLARE-containers/$([[ -z "$FLARE_VERSION" ]] && echo 'latest' || echo "$FLARE_VERSION")/commons/flare-install.sh | /usr/bin/env bash -s $FLARE_CONTAINER_NAME $([[ -z "$FLARE_VERSION" ]] && echo 'latest' || echo "$FLARE_VERSION"))

The first part of the command adds yq to the PATH and works fine. But, the second part of the command starting with /usr/bin/env bash -s which is to pass a variable to flare-install.sh, reverts the change to the PATH.

vahid-dan commented 2 years ago

Completed