Skip to content

Draft: [REF] common: Fix tcl dependency for unbuffer

Unbuffer requires 2 dependencies:

  • expect-dev
  • tcl8.6

Generally it is installed but there are images where it is not installed

e.g. quay.io/vauxoo/absa:absa-12.0-latest

Steps to reproduce:

docker run -it --rm quay.io/vauxoo/absa:absa-12.0-latest /bin/bash -c "apt update -qq && apt install expect-dev && unbuffer"

Output: /usr/bin/unbuffer: 4: exec: tclsh8.6: not found

But running: docker run -it --rm quay.io/vauxoo/absa:absa-12.0-latest /bin/bash -c "apt update -qq && apt install expect-dev tcl8.6 && unbuffer"

It is running fine

Installing tcl8.6 is compatible with newer images too e.g. absa-15.0

docker run -it --rm quay.io/vauxoo/absa:absa-15.0-latest /bin/bash -c "apt update -qq && apt install expect-dev tcl8.6 && unbuffer"

It is running successfully

So, it looks safe to do it in this way

Related to https://git.vauxoo.com/absa/absa/-/merge_requests/2511 and apt_whitelist!7 (comment 427877)

Merge request reports