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
    
  
  
    
  | ./vendor/bin/paratest --runner=WrapperRunner -p7 | 
  
    
      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_sqs_queue" "test-queue-dlq" { | |
| name = "${var.app_name}-${var.cicd_namespace}-message-DLQ" | |
| tags { | |
| Application = "${var.app_name}", | |
| Cluster = "${var.cicd_cluster}", | |
| } | |
| } | |
| resource "aws_sqs_queue" "test-queue" { | 
  
    
      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
    
  
  
    
  | // Fetch factory | |
| import nodeFetch from 'node-fetch'; | |
| export class Fetch { | |
| public make(): Function { | |
| return nodeFetch; | |
| } | |
| } | |
| // Fetch test | 
  
    
      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
    
  
  
    
  | service: test | |
| provider: | |
| name: aws | |
| runtime: nodejs8.10 | |
| stage: dev | |
| region: ap-southeast-2 | |
| environment: | |
| API_URL: ${env:TEST_API_URL} | |
| iamRoleStatements: | 
  
    
      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
    
  
  
    
  | 'use strict'; | |
| import 'reflect-metadata'; | |
| import { Callback, Context } from 'aws-lambda'; | |
| import { Container } from 'aurelia-dependency-injection'; | |
| import { MessageController } from '../controller/Message'; | |
| class Message { | |
| public invoke: any = async (event: any, context: Context, callback: Callback) => { | |
| try { | |
| const container = new Container(); | 
  
    
      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
    
  
  
    
  | docker run --rm -v \"$PWD\":/var/task lambci/lambda:nodejs8.10 your_lambda_function_name | 
  
    
      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
    
  
  
    
  | # A single command that will clean up any resources — images, containers, volumes, and networks — that are dangling (not associated with a container): | |
| docker system prune | |
| # Or just the volumes | |
| docker volume rm $(docker volume ls -qf dangling=true) | |
| # Or just the images | |
| docker rmi $(docker images -q -f dangling=true) | |
| # Run any command in a running container | 
  
    
      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
    
  
  
    
  | version: '2' | |
| services: | |
| app: | |
| depends_on: | |
| - composer | |
| image: php:7.2-fpm | |
| command: php -S 0.0.0.0:8000 /app/public/index.php | |
| ports: | |
| - "8000:8000" | |
| volumes: | 
  
    
      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
    
  
  
    
  | <?php | |
| $_fp = fopen("php://stdin", "r"); | |
| while (($buffer = fgets($_fp)) !== false) { | |
| echo $buffer; | |
| } | 
  
    
      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
    
  
  
    
  | <?php | |
| $time = microtime(true); | |
| // Here goes your time consuming operation | |
| echo "Time/RAM: "; | |
| echo microtime(true) - $time . "\n" . memory_get_peak_usage(true) . "\n"; | 
NewerOlder