clever-egg-254302/03/2020, 2:27 PM
is not found. Yes, I’m updating my path:
=== Pulumi is now installed! 🍹 === + Please add /root/.pulumi/bin to your $PATH + Get started with Pulumi: <https://www.pulumi.com/docs/quickstart> $ export PATH=$PATH:$HOME/.pulumi/bin $ which pulumi /root/.pulumi/bin/pulumi $ cd pulumi $ pulumi login /bin/sh: eval: line 96: pulumi: not found
mammoth-elephant-5530202/03/2020, 2:31 PM
clever-egg-254302/03/2020, 2:32 PM
finds it fine.
mammoth-elephant-5530202/03/2020, 2:32 PM
clever-egg-254302/03/2020, 2:33 PM
mammoth-elephant-5530202/03/2020, 2:34 PM
#!/bin/bash # exit if a command returns a non-zero exit code and also print the commands and their args as they are executed set -e -x # Download and install required tools. # pulumi curl -fsSL <https://get.pulumi.com/> | bash export PATH=$PATH:$HOME/.pulumi/bin # Login into pulumi. This will require the PULUMI_ACCESS_TOKEN environment variable pulumi login # update the GitLab Runner's packages apt-get update -y apt-get install sudo -y # nodejs curl -sL <https://deb.nodesource.com/setup_8.x> | sudo -E bash - apt-get install -y nodejs # yarn npm i -g yarn
clever-egg-254302/03/2020, 2:36 PM
$ $(which pulumi) login /bin/sh: eval: line 96: /root/.pulumi/bin/pulumi: not found
mammoth-elephant-5530202/03/2020, 2:36 PM
? It seems weird. usually shell prompt decorator for root user is
clever-egg-254302/03/2020, 2:49 PM
install: stage: build script: - apk update && apk upgrade - apk add --update --no-cache curl nodejs bash - curl -fsSL <https://get.pulumi.com> | bash - export PATH=$PATH:$HOME/.pulumi/bin - cd pulumi - pulumi login - npm i
is still not found.
related. I’ve switched to bash, but have a new error:
=== Pulumi is now installed! 🍹 === + Please add /root/.pulumi/bin to your $PATH + Get started with Pulumi: <https://www.pulumi.com/docs/quickstart> + cd pulumi + pulumi login scripts/setup.sh: line 12: /root/.pulumi/bin/pulumi: No such file or directory
issue - seems to be something odd about the environment you are running in? If
is returning the correct thing, I have no idea why your shell would fail to exec
. Can you reproduce this outside of GitLab CI?
clever-egg-254302/03/2020, 7:05 PM
image (to avoid trying to install node). I’m not suggesting that it’s a
issue, but it is an issue with the documentation, which I’ve been following.
mammoth-elephant-5530202/03/2020, 7:44 PM
clever-egg-254302/03/2020, 7:52 PM
, but that appears to be the default. So, if
installs it, shouldn’t
be able to run it?
: https://gitlab.com/rocore/demo-app/-/blob/master/.gitlab-ci.yml •
clever-sunset-7658502/04/2020, 3:19 AM
for merge builds, because it is a demo project.
clever-egg-254302/04/2020, 4:06 AM
image specifically in the stages that require it. This causes me to rebuilt the
dependencies as the node version in the pulumi image is different from my target version. While it’s a bit of a hack to re-install the dependencies for each stage, the pipeline is now functional and each stage passes, so far.
clever-sunset-7658502/04/2020, 4:09 AM