On Thu, Sep 19, 2019 at 8:10 AM 'Carsten' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote:
> Hi, > we are running Jenkins in a docker environment. > Jenkins Version 2.192 > running in a docker container version 19.03.2, build 6a30dfc > Running on an Ubuntu Xenial 16.04 > We are deploying by Linux shell scripts using multiple extended Linux > commands like "netcat" or "nslookup". > > Unfortunately the Jenkins image seems to deny such commands. > In a first attempt it cannot find the commands, because they are out of > the running environment (even setting "PATH" does NOT help): > > /var/jenkins_home/workspace/[branchpath]/Pipeline/accesstest.sh: line 19: > nslookup: No such file or directory > > and in a second attempt copying the files into the home path of Jenkins, > it misses the libraries: > > "../var/jenkins_home/nslookup: error while loading shared libraries: > libdns.so.162: cannot open shared object file: No such file or directory.." > > How can I solve this problem? > > It is more generally preferred to limit the amount of work and the number of programs installed on the Jenkins master. Usually it is better to specify agents which include the desired programs rather than placing those programs on the master. If you find that there are cases where you absolutely must install the programs on the master, then you can create your own Dockerfile which is based on the Jenkins Dockerfile and adds the programs you need using the appropriate operating system commands (like `apt-get install`). Mark Waite > br > Carsten > > > > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/b9156977-a8a4-4f21-8f25-9325defffde3%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/b9156977-a8a4-4f21-8f25-9325defffde3%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Thanks! Mark Waite -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtEt_MoSrmcNNmy5JW053hMxbJN-%2BjH2w%2BcEHV%2BHrSuCAQ%40mail.gmail.com.