This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM php:7.4-apache | |
| RUN a2enmod rewrite | |
| RUN apt-get update -qq \ | |
| && apt-get install -y git libpq-dev \ | |
| && apt-get clean autoclean \ | |
| && apt-get autoremove -y | |
| RUN docker-php-ext-install pdo pdo_pgsql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import boto3 | |
| import json | |
| import sys | |
| build_version=os.environ['BUILD_VERSION'] | |
| severity=list(os.environ['SEVERITY'].split(' ')) | |
| app_name=os.environ['APP_NAME'] | |
| ecr_account=os.environ['ECR_ACCOUNT'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| resource "aws_ecr_repository" "default" { | |
| name = var.name | |
| image_scanning_configuration { | |
| scan_on_push = true | |
| } | |
| } |