just had a look and might be able to use ``curl -f...
# general
g
just had a look and might be able to use ``curl -fsSL`
<https://get.pulumi.com/>
`| bash --version 1.2.3``
w
That's what you need
I use the following in my Dockerfile:
Copy code
# Install Pulumi
ENV PULUMI_VERSION=1.5.2 PULUMI_SKIP_UPDATE_CHECK=true

RUN curl -fsSL <https://get.pulumi.com> | bash -s -- --version $PULUMI_VERSION \
    && sed -i -e '/# add Pulumi to the PATH/,/export PATH=/d' ~/.bashrc \
    && mv ~/.pulumi/bin/* /usr/local/bin \
    && pulumi gen-completion bash > /etc/bash_completion.d/pulumi \
    && echo "alias p='pulumi'\ncomplete -o default -F __start_pulumi p" >> ~/.bashrc \
    && pulumi version
👍 1
(Also moving to
/usr/local/bin
, configuring a
p
alias, and bash completion)