AWS Lambda: Advanced Coding Session (slides)
Live demos:
- Amazon API Gateway Access Control
- Amazon Kinesis Streams processing
- Amazon Cognito Sync trigger
- AWS CloudFormation Custom Resources
| FROM amazoncorretto:11 as builder | |
| COPY . /srv | |
| WORKDIR /srv | |
| RUN yum update -y && yum clean all | |
| RUN ./mvnw package spring-boot:repackage -DskipTests -Dmaven.test.skip=true | |
| FROM amazoncorretto:11 | |
| LABEL maintainer="mail@domain.com" | |
| LABEL build_date="{BUILD_DATE}" | |
| LABEL version="{BUILD_VERSION}" |
| FROM jenkins/jnlp-agent-docker | |
| USER root | |
| RUN apk update && \ | |
| apk add -u libcurl curl && \ | |
| apk add --no-cache libc6-compat bash openssh-client git python2 py-pip ansible && \ | |
| rm -rf /tmp/* && \ | |
| rm -rf /var/cache/apk/* |
| ## Polygon | |
| Network Name: Polygon | |
| New RPC URL: | |
| https://rpc-mainnet.matic.network or | |
| https://rpc-mainnet.maticvigil.com or | |
| https://rpc-mainnet.matic.quiknode.pro or | |
| https://matic-mainnet.chainstacklabs.com or | |
| https://matic-mainnet-full-rpc.bwarelabs.com or | |
| https://matic-mainnet-archive-rpc.bwarelabs.com |
| #bash <(wget -qO- https://gist.githubusercontent.com/jefrnc/dbfb6b44f59a3430d7d9ac0d02b5a286/raw/ac4e619fded615cf5e0569fedcd6558484602d3d/jenkins-slave-setup.sh) | |
| sudo yum install -y java-1.8.0-openjdk-devel.x86_64 | |
| #sudo alternatives --config java | |
| sudo yum install http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/container-selinux-2.10-2.el7.noarch.rpm -y | |
| curl -sSL https://packages.microsoft.com/config/rhel/7/prod.repo | sudo tee /etc/yum.repos.d/microsoft-prod.repo | |
| curl -sSL https://packages.microsoft.com/keys/microsoft.asc > ./microsoft.asc | |
| sudo rpm --import ./microsoft.asc | |
| sudo yum install dotnet-sdk-3.1 -y | |
| #sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
| sudo yum update -y |
| sudo apt install software-properties-common | |
| sudo add-apt-repository ppa:deadsnakes/ppa | |
| sudo apt update | |
| sudo apt install python3.7 | |
| sudo apt install pipenv | |
| pip3 install pipenv --user | |
| pipenv --python 3.7 | |
| pipenv shell | |
| #pip install jwt | |
| #pip uninstall jwt==1.0.0 |
Live demos:
| git clone --mirror old-repo-url new-repo | |
| cd new-repo | |
| git remote remove origin | |
| git remote add origin new-repo-url | |
| git push --all | |
| git push --tags |
| BCBA:GGAL*10/NASDAQ:GGAL |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
| <mirrors> | |
| <mirror> | |
| <!--This sends everything else to /public --> | |
| <id>nexus</id> | |
| <mirrorOf>*</mirrorOf> |
| stage("Te saco las clave") { | |
| steps { | |
| script { | |
| def creds = com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials( | |
| com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.class, | |
| Jenkins.instance, | |
| null, | |
| null | |
| ); | |
| for (c in creds) { |