ls -l | wc -l
This file contains hidden or 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
| curl -sL https://rpm.nodesource.com/setup_13.x | sudo -E bash - | |
| sudo yum install -y nodejs |
This file contains hidden or 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
| sudo yum install -y java-1.8.0-openjdk | |
| curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.6.2-x86_64.rpm | |
| sudo rpm -i elasticsearch-7.6.2-x86_64.rpm | |
| rm elasticsearch-7.6.2-x86_64.rpm | |
| sudo systemctl daemon-reload | |
| sudo systemctl enable elasticsearch.service | |
| sudo systemctl start elasticsearch.service |
This file contains hidden or 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
| CREATE TABLE orders ( | |
| id serial NOT NULL PRIMARY KEY, | |
| info json NOT NULL | |
| ); | |
| INSERT INTO orders (info) VALUES | |
| ( | |
| '{ "customer": "John Doe", "items": {"product": "TV","qty": 1}}' | |
| ); |
This file contains hidden or 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 | |
| yum install httpd php php-mysql -y | |
| cd /var/www/html | |
| wget https://wordpress.org/wordpress-5.1.1.tar.gz | |
| tar -xzf wordpress-5.1.1.tar.gz | |
| cp -r wordpress/* /var/www/html/ | |
| rm -rf wordpress | |
| rm -rf wordpress-5.1.1.tar.gz | |
| chmod -R 755 wp-content | |
| chown -R apache:apache wp-content |
sudo /etc/init.d/postgresql stop
Download nodejs binaries:
sudo apt-get install curl
wget https://nodejs.org/download/release/v12.9.1/node-v12.9.1-linux-x64.tar.gz
tar xvzf node-v12.9.1-linux-x64.tar.gz
sudo mv node-v12.9.1-linux-x64 /opt/
update ~/.profile to export the follow variables
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'Building..'
sh './gradlew clean build'
}
docker run --rm --name pg-docker -e POSTGRES_PASSWORD=docker -d -p 5432:5432 -v $HOME/docker/volumes/postgres:/var/lib/postgresql/data postgres
This file contains hidden or 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
| apiVersion: v1 | |
| kind: ReplicationController | |
| metadata: | |
| name: kube-registry-v0 | |
| namespace: kube-system | |
| labels: | |
| k8s-app: kube-registry | |
| version: v0 | |
| spec: | |
| replicas: 1 |