Category : stdout

I would like to use Jenkins docker.Image.run() to run GitVersion. From a bash shell, if I run docker run –rm -v "$(pwd):/repo" gittools/gitversion:5.6.6 /repo …a JSON-format string gets sent to stdout. I’d like my Jenkinsfile to consume this stdout. I know that I can run this docker container from my Jenkinsfile as follows: pipeline { ..

Read more

community! I developed a few services in python that are supposed to communicate via rabbitmq. Python scripts look correct. Event after I moved them to docker containers, they continue look working (‘Waiting for messages’ line is generated by the payload script): [email protected]:~/Work/partitioner/worker$ docker run -it –network partitioner_pocnetwork worker:latest [*] Waiting for messages. To exit press ..

Read more

Consider this issue.py file: import subprocess print(‘Calling subprocess…’) subprocess.run([‘python’, ‘–version’]) print(‘Subprocess is done!’) Executing python issue.py manually yields what I expect: Calling subprocess… Python 3.9.0 Subprocess is done! However, if I execute this inside a Docker container, something weird happens: $ docker run –rm -v $(pwd):/issue python:3.9.0 python /issue/issue.py Python 3.9.0 Calling subprocess… Subprocess is ..

Read more

I am trying to configure my php errors to output to docker logs. All documentation I have read indicates that docker logs are tied to the containers stdout and stderr which come from /proc/self/fd/1 and /proc/self/fd/2. I created a symlink from my php error log file /var/log/php_errors.log to /proc/self/fd/1 with command: ln -sf /proc/self/fd/1 /var/log/php_errors.log ..

Read more