Posts

Showing posts with the label devops

libfontmanager.so: libfreetype.so.6 not found error in docker image when trying to generate excel with Apache Poi

  FROM openjdk: 11.0.3 - jdk-slim-stretch imageinde  libfontmanager.so: libfreetype.so.6 bu lib olmur ona gorede. ,apache poi ile excel generate etmeye chalishanda xeta aliriq Xetanin ozu:  "java.lang.UnsatisfiedLinkError: /usr/local/openjdk-11/lib/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory Hell etmek uchun Dockerfile a bu stepi elave etmek lazimdir RUN set -eux; \ apt-get update; \ apt-get install -y --no-install-recommends fontconfig libfreetype6; \ rm -rf /var/lib/apt/lists/* Menbe: https://hub.docker.com/r/hydrz/openjdk/dockerfile

Jenkins enviroment installation on Azure

1) Install jenkins: https://docs.microsoft.com/en-us/azure/developer/jenkins/configure-on-linux-vm in vm creating part use this: az vm create \ --resource-group QuickstartJenkins-rg \ --name QuickstartJenkins-vm \ --image UbuntuLTS \ --size Standard B2s \ --admin-username "azureuser" \ --generate-ssh-keys \ --custom-data cloud-init-jenkins.txt in artice use other vm which is cost higher than B2s , but i am using B2s it works very well 2) Install docker: https://docs.docker.com/engine/install/ubuntu/ Then give permission to docker.sock for build image: Recommend way second one: sudo chmod 776 /var/run/docker.sock // for all sudo chown $USER /var/run/docker.sock // for current user 3) Install openjdk11 for build process, because our spring projects on jdk11 sudo apt install openjdk-11-jdk -y sudo update-alternatives --config java , then click enter for selecting * and configure openjdk11 in jenkins global tool configuration for further information about jenkins: https://www...