https://aws.amazon.com/ec2/instance-types/#instance-type-matrix
- Instance Size
- vCPU
- Memory (GiB)
- Instance Storage (GiB)
- Network Bandwidth (Gbps)
- EBS Bandwidth (Mbps)
Learning…
https://aws.amazon.com/ec2/instance-types/#instance-type-matrix
docker run -d --privileged --group-add 129 -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts
docker run -d --privileged --group-add $(getent group docker |awk -F ":" '{ -v jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v $(which docker):/usr/bin/docker -p 8080:8080 -p 50000:50000 jenkins/jenkins:ltsprint $3 }')
=-= pensar =-=
* auto apagar workspace
* job nao cancela
* cache compartilhado fora da workspace
* Video aulas
https://www.youtube.com/playlist?list=PLzvRQMJ9HDiT5b4OsmIBiMbsPjfp4kfg3
* Amazon Lambda
https://aws.amazon.com/pt/lambda/
* Serverless intro guide
https://serverless.com/framework/docs/providers/aws/guide/intro/
* Terraform and Aws
https://www.terraform.io/docs/providers/aws/
* Node8 and mistakes in lambda
https://serverless.com/blog/common-node8-mistakes-in-lambda/
* Amazon Console Lambda
https://console.aws.amazon.com/lambda/
Create/edit metadata of instance at:
https://console.cloud.google.com/compute
To use the patch bellow, you need to create a metadata with key name hostname, set this to your hostname/FQDN.
Connect to instance (by SSH) and apply this patch to file /etc/dhcp/dhclient-exit-hooks.d/google_set_hostname
--- before/etc/dhcp/dhclient-exit-hooks.d/google_set_hostname 2018-03-31 04:35:36.482261558 +0000 +++ after/etc/dhcp/dhclient-exit-hooks.d/google_set_hostname 2018-03-31 03:34:44.528862484 +0000 @@ -15,6 +15,10 @@ # Deal with a new hostname assignment. +# https://gist.github.com/yuki-takeichi/3080521322f0f1d159ea6a343e2323e6 +# *** The below line is added by patching. *** +new_host_name=$(curl --fail --silent http://metadata/computeMetadata/v1/instance/attributes/hostname -H "Metadata-Flavor: Google") + if [ -n "$new_host_name" ] && [ -n "$new_ip_address" ]; then # Delete entries with new_host_name or new_ip_address in /etc/hosts. sed -i '/Added by Google/d' /etc/hosts
To avoid lose theĀ patch, use this command:
# dpkg-divert --add /etc/dhcp/dhclient-exit-hooks.d/google_set_hostname
Now, reboot the instance to apply the FQDN set in metadata.
# reboot
Referencias:
At Google Cloud Console, follow this steps: