New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ktx-preview.sh not found #7

Closed
pietervogelaar opened this Issue Jan 25, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@pietervogelaar
Copy link

pietervogelaar commented Jan 25, 2019

I have the following Dockerfile:


WORKDIR /root

RUN apk add --no-cache \
    bash \
    jq \
    curl \
    git \
    openssl \
    groff \
    python3 && \
    pip3 install --upgrade pip && \
    pip3 install awscli==1.16.86

RUN cd /usr/local/bin && \
    curl -sSO https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl && \
    chmod u+x kubectl && \
    curl -sSO https://raw.githubusercontent.com/blendle/kns/master/bin/kns && \
    chmod u+x kns && \
    curl -sSO https://raw.githubusercontent.com/blendle/kns/master/bin/ktx && \
    chmod u+x ktx && \
    git clone --quiet --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && \
    ~/.fzf/install && \
    ln -s /root/.fzf/bin/fzf /usr/local/bin/fzf

ENV PAGER='cat'

ENTRYPOINT ["/bin/bash"]

If I run ktx or kns from a bash prompt inside the container, I can see the contexts and namespaces on the left side of the screen. But on the right side of the screen I see:

sh: /usr/local/bin/../helpers/ktx-preview.sh: not found

How can I fix this?

@pietervogelaar

This comment has been minimized.

Copy link
Author

pietervogelaar commented Jan 25, 2019

Nevermind, got it to work with:

RUN apk add --no-cache \
    bash \
    bash-completion \
    jq \
    curl \
    git \
    openssl \
    groff \
    util-linux \
    python3 && \
    pip3 install --upgrade pip && \
    pip3 install awscli==1.16.86

RUN cd /usr/local/bin && \
    curl -sSO https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl && \
    chmod u+x kubectl && \
    curl -sSO https://raw.githubusercontent.com/blendle/kns/master/bin/kns && \
    chmod u+x kns && \
    curl -sSO https://raw.githubusercontent.com/blendle/kns/master/bin/ktx && \
    chmod u+x ktx && \
    curl -sSO https://raw.githubusercontent.com/blendle/kns/master/helpers/ktx-preview.sh && \
    chmod u+x ktx-preview.sh && \
    mkdir ../helpers && \
    mv ktx-preview.sh ../helpers/ktx-preview.sh && \
    git clone --quiet --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && \
    ~/.fzf/install && \
    ln -s /root/.fzf/bin/fzf /usr/local/bin/fzf
@koenbollen

This comment has been minimized.

Copy link
Contributor

koenbollen commented Jan 29, 2019

Cheers! Glad you could get it working. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment