- uno
- dos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y curl | |
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - | |
RUN apt-get install -y nodejs | |
RUN mkdir app | |
RUN cd app | |
RUN npm install express --save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get -y install sudo | |
RUN apt-get -y install curl | |
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - | |
RUN apt-get install -y nodejs | |
RUN npm install -g @vue/cli | |
RUN useradd -m ejemplo && echo "ejemplo:ejemplo" | chpasswd && adduser ejemplo sudo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd /etc/letsencrypt/archive/ | |
echo "Recreando el directorio temporal" | |
rm -rf temporal | |
cp -r ci.ultrasist.net temporal | |
cd temporal | |
CLAVE=password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please consider the $1 variable in here: (it is the job name) | |
curl -k -s \ | |
https://jenkins.url.site/job/$1/config.xml \ | |
-u jenkins-user:111f65b8xxxxxc395df \ | |
-o $1-config.xml | |
# Now, we will use 2 variables: $1 & $2: (new job name & file with its definition) | |
CRUMB=$(\ | |
curl -k \ | |
'https://jenkins.url.site/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)' \ |
NewerOlder