Skip to content

Commit

Permalink
fix terminal size config in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
d-rk committed Mar 12, 2024
1 parent a833205 commit c5c8b6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.Ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ RUN useradd -r -g kafkactl -d /home/kafkactl -s /sbin/nologin -c "Docker image u
RUN echo "source /etc/bash_completion" > /home/kafkactl/.bashrc
RUN echo "source /etc/bash_completion.d/kafkactl " >> /home/kafkactl/.bashrc

# try to set correct terminal-size
RUN echo '[[ -n $TERM_HEIGHT ]] && stty rows $TERM_HEIGHT cols $TERM_WIDTH' >> /home/kafkactl/.bashrc

# Install CA certificates
RUN apt-get update && apt-get install -y \
ca-certificates \
Expand All @@ -24,8 +27,5 @@ RUN apt-get update && apt-get install -y \
WORKDIR /home/kafkactl
RUN chown -R kafkactl:kafkactl /home/kafkactl

# try to set correct terminal-size
RUN echo "[[ -n $TERM_HEIGHT ]] && stty rows $TERM_HEIGHT cols $TERM_WIDTH" >> /home/kafkactl/.bashrc

USER kafkactl
ENTRYPOINT ["kafkactl"]

0 comments on commit c5c8b6a

Please sign in to comment.