stty: 'standard input': Inappropriate ioctl for device in Docker on Ubuntu 20.04 with Piler 1.3.9

Issue #1108 wontfix
Saul Godman created an issue

Hello,

maybe someone have an idea. I run Piler 1.3.9 Dockerized on an Ubuntu 20.04 Image. This works as well, but only if I execute the following command in the entrypoint.shecho -e "y\n\n$PILER_DB_HOST\n$MYSQL_DATABASE\n$MYSQL_USER\n$MYSQL_PASSWORD\n$MYSQL_ROOT_PASSWORD\n\n\nY\nY\n" | make postinstall” receive the error:

app_1  | 
Please enter mysql user name [piler] stty: 'standard input': Inappropriate ioctl for device
app_1  | 
make: *** [Makefile:126: postinstall] Error 1

It works in older Version like Piler 1.3.5 and Ubuntu 18.04 with docker. Have anyone an idea?

Comments (4)

  1. Janos SUTO repo owner

    I build piler in docker, but not ‘postinstall’ it. I think it’s worth to create a deb package, and deploy it to docker.

  2. Saul Godman reporter

    Yes of course that makes sense to create a package. But why the user input command with Piler went under older versions and is not working anymore is still not explained to me.I have already tried everything, including "stdin_open: true tty: true" in the Docker-Compose file but without success. I think this is somehow due to the Docker or Ubuntu version. Well, I will continue my research.

    By the way, thanks for the project! 🙂

  3. Saul Godman reporter

    Hi, I've tried a bit more with Docker, but I can only get it to work if I change the function "askNoEcho" to "askNonBlank" instead of "askNoEcho" when I change the password. So it works for me but it is not completely clean.

        sed -i '234s/askNoEcho/askNonBlank/' util/postinstall.sh
        sed -i '237s/askNonBlankNoEcho/askNonBlank/' util/postinstall.sh
    

  4. Log in to comment