tar xf apache-maven-3.8.6-bin.tar.gz -C /data/Jenkins/
mv /data/Jenkins/apache-maven-3.8.6 /data/Jenkins/maven
wget https://nodejs.org/dist/v14.6.0/node-v14.6.0-linux-x64.tar.xz && \
tar -xf node-v14.6.0-linux-x64.tar.xz && \
mv node-v14.6.0-linux-x64 /data/Jenkins/node
chown 1000:1000 /data/Jenkins/ -R
docker run -d -p 8080:8080 -p 50000:50000 \
--restart=always \
--privileged=true \
-v /etc/localtime:/etc/localtime:ro \
-v /data/Jenkins:/var/jenkins_home \
-v /data/Jenkins/maven:/var/jenkins_home/maven \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-v /data/docker:/var/lib/docker \
-v /data/Jenkins/node/bin/npm:/usr/bin/npm \
-v /data/Jenkins/node/bin/node:/usr/bin/node \
-v /usr/local/aws-cli:/usr/local/aws-cli \
--name jenkins \
jenkins/jenkins:latest-jdk8
Amazon linux安装Jenkins
最新推荐文章于 2024-05-21 14:15:44 发布