Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

AWS CodeBuild Images for building PHP and Node applications

License

Notifications You must be signed in to change notification settings

shogo82148/codebuild-php-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHIVED

This repository is no longer maintained. Use AWS CodeBuild curated Docker images instead of it.

codebuild-php-node

AWS CodeBuild Images for building PHP and Node applications

Purpose

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.

Usage

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.

An Example of CloudFormation Template for Creating CodeBuild Project

  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

RELATED WORK

About

AWS CodeBuild Images for building PHP and Node applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published