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 optimise docker pull speed
  • How to get Shared file system for docker containers running on different hosts?
  • docker container fails to start after docker deamon has been restarted
  • Dynamically set JAVA_HOME of docker container
  • CPU multithreading of Caffe in a Docker Container
  • Error response from daemon: network myapp not found
  • RUN printf “\no” | pecl install stomp

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

  • How to create a bash script file in Docker?
  • How to set-up Mongo replica set on Kubernetes?
  • Publishing docker swarm mode port only to localhost
  • How do pass in DOCKER_OPTS into docker image running from Docker for Mac?
  • docker apache passenger: error cannot load such file bundler/setup (LoadError)
  • Why got connection refused of the swarm leader during round robin of services
  • 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.