skip to Main Content

Docker – Dokcer build image –secret in Jenkins Pipeline

Here is my dockerfile FROM node:20-alpine3.18 WORKDIR /app COPY package*.json .npmrc ./ RUN --mount=type=secret,id=npmrc NPM_TOKEN=$(cat /run/secrets/npmrc) npm ci --production COPY . . EXPOSE 8000 CMD ["npm", "run", "start"] Here is my Jenkinsfile and docker-compose jenkins: container_name: jenkins image: jenkins/jenkins:lts privileged:…

VIEW QUESTION

Jenkins with docker-compose

Running the docker-compose start command, via the Linux command line, the project is built and started correctly, but in the pipeline that I have built when running docker-compose up the following error occurs ERROR: for php Cannot start service php:…

VIEW QUESTION

docker: command not found in macos

I'm encountering an issue on my MacBook M1 Pro while using Jenkins. The problem is related to Docker not being found, despite having installed the Jenkins Docker plugin. Here are the details of my setup: MacBook Model: M1 Pro Jenkins…

VIEW QUESTION
Back To Top
Search