Skip to content
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

--color doesn't work even with Term::ANSIColor #26

Open
xenoterracide opened this issue Mar 30, 2020 · 4 comments
Open

--color doesn't work even with Term::ANSIColor #26

xenoterracide opened this issue Mar 30, 2020 · 4 comments

Comments

@xenoterracide
Copy link

running pg_prove from a docker container as so

docker run -v $PWD/path/to/testdir:/t -e "PGPASSWORD=$PGPASSWORD" --network=host xenoterracide/pg_prove:latest \
  pg_prove --host localhost --dbname mydb --username postgres --ext .sql --recurse --color /t

here's how this container is created https://github.com/xenoterracide/postgis-pgtap/blob/master/pgprove/Dockerfile

FROM alpine:latest
RUN apk add --update-cache perl perl-utils perl-module-build perl-dbi perl-dbd-pg postgresql-client \
 && rm -rf /var/cache/apk/*
RUN cpan TAP::Parser::SourceHandler::pgTAP Term::ANSIColor && rm -r ~/.cpan
CMD ['pg_prove', '--help']

but my output still isn't colorized. If needed I can provide a github actions test of this.

@theory theory transferred this issue from theory/pgtap Apr 1, 2020
@theory
Copy link
Owner

theory commented Apr 1, 2020

Try setting TERM=xterm-256color in the container.

@xenoterracide
Copy link
Author

does not appear to work

          docker run -v $PWD/src/test/resources/pgtap/shared/script:/t \
            -e "PGPASSWORD=$PGPASSWORD" \
            -e "TERM=xterm-256color" \
            --network=host xenoterracide/pg_prove:latest \
            pg_prove --host localhost --dbname production --username postgres --ext .sql --recurse --color /t

@xenoterracide
Copy link
Author

maybe a duplicate of #23 hard to tell at this juncture

@theory
Copy link
Owner

theory commented Oct 24, 2020

Does it work with the official Docker image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants