29 lines
883 B
Docker
29 lines
883 B
Docker
FROM --platform=linux/amd64 jenkins/jenkins:lts-jdk11
|
|
USER root
|
|
ENV MAVEN_VERSION 3.5.3
|
|
ADD apache-maven-3.5.3 /opt/apache-maven-3.5.3
|
|
|
|
ADD gradle-8.7 /opt/gradle-8.7
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
|
|
|
|
RUN apt-get install -y nodejs git vim curl sshpass pigz
|
|
|
|
|
|
# ADD node-v18.20.2-linux-x64 /usr/local/node-v18.20.2-linux-x64
|
|
|
|
# USER root
|
|
# RUN ln -s /usr/local/node-v18.20.2-linux-x64/bin/node /usr/bin/node \
|
|
# && ln -s /usr/local/node-v18.20.2-linux-x64/bin/npm /usr/bin/npm \
|
|
# && npm install -g yarn \
|
|
# && npm install -g pnpm
|
|
|
|
RUN node -v && npm -v && npm install -g yarn && npm install -g pnpm
|
|
|
|
|
|
USER jenkins
|
|
|
|
# COPY --chown=jenkins:jenkins plugins.txt /usr/share/jenkins/ref/plugins.txt
|
|
# RUN jenkins-plugin-cli -f /usr/share/jenkins/ref/plugins.txt
|
|
|
|
# docker build -f Dockerfile -t harbor.sino-assist.com/marsal1212/jenkins:latest . |