This repository is no longer maintained. Use AWS CodeBuild curated Docker images instead of it.
AWS CodeBuild Images for building PHP and Node applications
It is a CodeBuild custom image including PHP and Node.js runtime, based on AWS CodeBuild curated Docker images. The image is optimized for PHP and JavaScript Project, such as roots/sage.
Pre-build images are available on DockerHub.
Docker Pull Command:
# standard 5.0 based
docker pull shogo82148/codebuild-php-node:php8.0-node16-standard-5.0
docker pull shogo82148/codebuild-php-node:php8.0-node14-standard-5.0
docker pull shogo82148/codebuild-php-node:php8.0-node12-standard-5.0
docker pull shogo82148/codebuild-php-node:php7.4-node16-standard-5.0
docker pull shogo82148/codebuild-php-node:php7.4-node14-standard-5.0
docker pull shogo82148/codebuild-php-node:php7.4-node12-standard-5.0
docker pull shogo82148/codebuild-php-node:php7.3-node16-standard-5.0
docker pull shogo82148/codebuild-php-node:php7.3-node14-standard-5.0
docker pull shogo82148/codebuild-php-node:php7.3-node12-standard-5.0
# standard 4.0 based
docker pull shogo82148/codebuild-php-node:php8.0-node16-standard-4.0
docker pull shogo82148/codebuild-php-node:php8.0-node14-standard-4.0
docker pull shogo82148/codebuild-php-node:php8.0-node12-standard-4.0
docker pull shogo82148/codebuild-php-node:php7.4-node16-standard-4.0
docker pull shogo82148/codebuild-php-node:php7.4-node14-standard-4.0
docker pull shogo82148/codebuild-php-node:php7.4-node12-standard-4.0
docker pull shogo82148/codebuild-php-node:php7.3-node16-standard-4.0
docker pull shogo82148/codebuild-php-node:php7.3-node14-standard-4.0
docker pull shogo82148/codebuild-php-node:php7.3-node12-standard-4.0
# standard 3.0 based
docker pull shogo82148/codebuild-php-node:php8.0-node16-standard-3.0
docker pull shogo82148/codebuild-php-node:php8.0-node14-standard-3.0
docker pull shogo82148/codebuild-php-node:php8.0-node12-standard-3.0
docker pull shogo82148/codebuild-php-node:php7.4-node16-standard-3.0
docker pull shogo82148/codebuild-php-node:php7.4-node14-standard-3.0
docker pull shogo82148/codebuild-php-node:php7.4-node12-standard-3.0
docker pull shogo82148/codebuild-php-node:php7.3-node16-standard-3.0
docker pull shogo82148/codebuild-php-node:php7.3-node14-standard-3.0
docker pull shogo82148/codebuild-php-node:php7.3-node12-standard-3.0
# amazonlinux2-x86_64-amazonlinux2 3.0 based
docker pull shogo82148/codebuild-php-node:php8.0-node16-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php8.0-node14-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php8.0-node12-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php7.4-node16-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php7.4-node14-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php7.4-node12-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php7.3-node16-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php7.3-node14-amazonlinux2-3.0
docker pull shogo82148/codebuild-php-node:php7.3-node12-amazonlinux2-3.0
# amazonlinux2-x86_64-amazonlinux2 2.0 based
docker pull shogo82148/codebuild-php-node:php8.0-node16-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php8.0-node14-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php8.0-node12-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php7.4-node16-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php7.4-node14-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php7.4-node12-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php7.3-node16-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php7.3-node14-amazonlinux2-2.0
docker pull shogo82148/codebuild-php-node:php7.3-node12-amazonlinux2-2.0
PHP 7.2 and older images are no longer maintained. They remain in this repository as a reference for the contents of these images.
CodeBuildProject:
Type: AWS::CodeBuild::Project
Properties:
Artifacts:
Type: NO_ARTIFACTS
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: shogo82148/codebuild-php-node:php8.0-node16-standard-5.0
Type: LINUX_CONTAINER
ServiceRole: !GetAtt CodeBuildRole.Arn
Source:
Type: GITHUB
ReportBuildStatus: true
Location: https://github.com/shogo82148/codebuild-php-node
TimeoutInMinutes: 10
CodeBuildRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: "2012-10-17"
Statement:
- Effect: Allow
Principal:
Service: codebuild.amazonaws.com
Action: "sts:AssumeRole"
Path: "/"
Policies:
- PolicyDocument:
Statement:
- Action:
- logs:CreateLogGroup
- logs:CreateLogStream
- logs:PutLogEvents
- logs:DescribeLogStreams
Effect: Allow
Resource: arn:aws:logs:*:*:*
Version: 2012-10-17
PolicyName: cloudWatchLogsPolicy