i've found this useful for debugging ansible modules and syntax without having to use VMs or test in dev environments.
pip install ansible
| # Steps to install Jenkins Agent using JNLP connection on Ubuntu 20.04 Focal Fossa | |
| # | |
| # * create an Agent node on the web GUI: https://wiki.jenkins.io/display/JENKINS/Step+by+step+guide+to+set+up+master+and+agent+machines+on+Windows | |
| # * $ sudo apt-get install -y openjdk-14-jre-headless | |
| # * $ sudo adduser jenkins | |
| # * $ curl http://jenkins-master.internal/jnlpJars/agent.jar -o /home/jenkins/agent.jar | |
| # * create systemd service: place this file in /lib/systemd/system/jenkins-agent.service | |
| # * $ sudo systemctl enable myservice | |
| # * $ sudo systemctl start jenkins-agent |
Note: Nexus group repositories (good example in this StackOverflow question) are out of this tutorial's scope. In any case, deployment to group repositories is currently still an open issue for Nexus 3 (and not intended ever to be implemented in Nexus 2). Thus, it is assumed that we'll push & pull to/from the same repository, and ignore the idea of groups hereon in.
Ask your sysadmin for a username & password allowing you to log into your organistation's Nexus Repository Manager.
Test the login credentials on the Nexus Repository manager at: http://localhost:8081/nexus/#view-repositories (localhost in our case is replaced by a static IP, and can only be connected to over VPN). If your organisation requires a VPN to connect to it, connect to that VPN before proceeding with this tutori
With k3d we can mount the host to container path, and with persistent volumes we can set a hostPath for our persistent volumes. With k3d, all the nodes will be using the same volume mapping which maps back to the host.
Create the cluster:
> mkdir -p /tmp/k3dvol
> k3d create --name "k3d-cluster" --volume /tmp/k3dvol:/tmp/k3dvol --publish "80:80" --workers 2
> export KUBECONFIG="$(k3d get-kubeconfig --name='k3d-cluster')"
| docker run -it -p 8888:8888 -v $(pwd):/home skalt/dev-env | |
| # in container | |
| jupyter labextension install @jupyterlab/json-extension | |
| jupyter lab --ip=0.0.0.0 --port=8888 --allow-root |
| import cdk = require('@aws-cdk/core'); | |
| import elasticbeanstalk = require('@aws-cdk/aws-elasticbeanstalk'); | |
| import s3assets = require('@aws-cdk/aws-s3-assets'); | |
| export class ElbtestStack extends cdk.Stack { | |
| constructor(scope: cdk.App, id: string, props?: cdk.StackProps) { | |
| super(scope, id, props); | |
| // Construct an S3 asset from the ZIP located from directory up. | |
| const elbZipArchive = new s3assets.Asset(this, 'MyElbAppZip', { |
| # Java should be installed | |
| # sudo apt-get install openjdk-7-jre-lib openjdk-7-jre-headless openjdk-7-jre icedtea-7-jre-jamvm icedtea-7-jre-cacao icedtea-7-plugin | |
| # sudo update-alternatives --config java | |
| mkdir ~/src/ && cd ~/src/ | |
| wget https://github.com/zaproxy/zaproxy/releases/download/2.5.0/ZAP_2.5.0_Linux.tar.gz | |
| tar -xzvf ZAP_2.5.0_Linux.tar.gz | |
| rsync -av ZAP_2.5.0/ /opt/zaproxy/ |
| FROM armhf/debian:jessie | |
| RUN apt-get update && apt-get install -y \ | |
| libssl-dev \ | |
| logrotate \ | |
| sudo \ | |
| curl \ | |
| jq \ | |
| && rm -rf /var/lib/apt/lists/* |