How to do a none interactive pecl install stomp

I’m trying to install stomp php extension as part of a Dockerfile.

pecl install has a stomp asking weather to install with openssl extensions, since its all on internal traffic the answer is no so my command looks like

  • How to run a cron job inside a docker container
  • Not able to connect to mongodb replica set running in docker in different machine
  • Environment variable and docker-compose
  • Can't get remote Hazelcast client to connect to cluster running in docker containers
  • Error response from daemon: Cannot start container
  • Inspect mysql docker container over ssh tunnel
  • RUN printf “\no” | pecl install stomp

    But that doesn’t seem to pipe to the prompt, is there any better why of doing this?

  • Can't access dev server when using ionic serve
  • Docker : Cannot connect to the Docker daemon. Is the docker daemon running on this host?
  • Within Docker VM, Gulp-Watch Seems to not work well on volumes hosted from the host OS
  • Maintaining infra Oracle WebLogic/SOA/BPM on top of Docker
  • What is the difference between nginx daemon on/off option?
  • Docker killed by system when build
  • One Solution collect form web for “How to do a none interactive pecl install stomp”

    You seem to have a backslash in the wrong location. printf "\no" prints a linefeed (\n) and the letter “o” on a newline. You could do printf "no\n", but at that point, I’d use the more typical echo no | pecl install stomp.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.