Integración continua
Meridian Group
CodeDeploy Arquitectura
Tomado de: http://docs.aws.amazon.com/es_es/codedeploy/latest/userguide/images/sds_architecture.png
Control central - consola AWS
Despliegue de versión
version: 0.0
os: linux
files:
- source: /
destination: /home/ubuntu/DataVizServer
# If you are deploying to Windows Server instances,
# then remove the
# "permissions" section altogether. A blank or incomplete "permissions"
# section may cause associated deployments to fail.
#permissions:
# - object:
# pattern:
# except:
# owner:
# group:
# mode:
# acls:
# If you are not running any commands on the instance, then remove
# the "hooks" section altogether. A blank or incomplete "hooks" section
# may cause associated deployments to fail.
hooks:
BeforeInstall:
- location: scripts_deploy/install_nodejs.sh
timeout: 300
runas: root
ApplicationStop:
- location: scripts_deploy/stop_server.sh
timeout: 300
runas: root
AfterInstall:
- location: scripts_deploy/install_dependencies.sh
timeout: 300
runas: root
ApplicationStart:
- location: scripts_deploy/start_server.sh
timeout: 900
runas: root
# ValidateService:
# - location:
# timeout:
{
"Version": "2008-10-17",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Principal": {
"Service": "codedeploy.amazonaws.com"
},
"Action": "sts:AssumeRole"
}
]
}
Flujo de trabajo
Tomado de: https://d0.awsstatic.com/product-marketing/CodePipeline/CodePipeline_Workflow.png
Imágenes tomadas: