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
| node{ | |
| git branch: "master", url: "http://192.168.100.185:3000/parsa/Django_cicd" | |
| stage ('Build the Docker image') { | |
| sh "echo building the image..." | |
| sh "docker build --tag django_test:latest ." | |
| sh "echo building image complete." | |
| } |
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
| concurrent = 1 | |
| check_interval = 0 | |
| [session_server] | |
| session_timeout = 1800 | |
| [[runners]] | |
| name = "YOUR_HOSTNAME" | |
| url = "http://192.168.100.140/" | |
| token = "YOUR_TOKEN" |
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
| stages: # List of stages for jobs, and their order of execution | |
| - build | |
| - deploy | |
| build-job: # This job runs in the build stage, which runs first. | |
| stage: build | |
| script: | |
| - echo "building the image..." | |
| - docker build --tag django_test:latest . | |
| - echo "building image complete." |
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
| FROM ubuntu:latest | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| python3 \ | |
| python3-pip | |
| RUN pip3 install django djangorestframework tzdata | |
| ENV LC_ALL C.UTF-8 | |
| ENV LANG C.UTF-8 | |
| WORKDIR /app | |
| COPY . /app |
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
| import numpy as np | |
| from pyspark import SparkContext | |
| from pyspark import SparkConf | |
| conf = SparkConf() | |
| conf.setMaster("spark://<HOSTNAME>:7077") | |
| conf.setAppName("NumpyMult") | |
| sc = SparkContext(conf=conf) | |
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
| **LEARNING** | |
| http://cybrary.it/ | |
| http://n0where.net/ | |
| http://www.offensive-security.com/metasploit-unleashed | |
| http://resources.infosecinstitute.com/ | |
| http://www.windowsecurity.com/articles-tutorials/ | |
| http://www.sans.org/reading-room/ | |
| https://www.corelan.be/index.php/articles/ | |
| http://opensecuritytraining.info/Training.html |