Using VirtualBox and Vagrant
Install virtualbox and Vagrant:
$ brew cask install virtualbox| #!/bin/bash | |
| sudo yum install gcc -y | |
| sudo yum install openssl-devel -y | |
| sudo yum install zlib-devel -y | |
| sudo yum install mlocate -y | |
| sudo yum install autoconf -y | |
| wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.1p1.tar.gz | |
| tar zxvf openssh-9.1p1.tar.gz | |
| cd openssh-9.1p1 && ./configure && make && sudo make install |
| #!groovy | |
| /* | |
| * This script configures the Jenkins base URL. | |
| */ | |
| import jenkins.model.JenkinsLocationConfiguration | |
| JenkinsLocationConfiguration location = Jenkins.instance.getExtensionList('jenkins.model.JenkinsLocationConfiguration')[0] | |
| location.url = 'https://jenkins-as-code-poc.devtail.io/' |
| #!/bin/bash | |
| # Fetch 24-hour AWS STS session token and set appropriate environment variables. | |
| # See http://docs.aws.amazon.com/cli/latest/reference/sts/get-session-token.html . | |
| # You must have jq installed and in your PATH https://stedolan.github.io/jq/ . | |
| # Add this function to your .bashrc or save it to a file and source that file from .bashrc . | |
| # https://gist.github.com/ddgenome/f13f15dd01fb88538dd6fac8c7e73f8c | |
| # | |
| # usage: aws-creds MFA_TOKEN [OTHER_AWS_STS_GET-SESSION-TOKEN_OPTIONS...] | |
| function aws-creds () { | |
| local pkg=aws-creds |