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
| BRANCH_NAME="master" | |
| # Clone the repository .git information only | |
| # Docs: https://git-scm.com/docs/git-clone | |
| # | |
| # --no-checkout :: Do not fetch any files, only the `.git` directory. | |
| # --sparse :: Only files at the top-level directory, at the root of the repository, will be part of the checkout. | |
| # --branch <branch_name> :: Only fetch the information for the given branch. | |
| # --depth 1 :: Only fetch the tip commit, HEAD of the specified branch. | |
| # --filter=blob:none :: Do not download any blob files. |
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
| package main | |
| import ( | |
| "bufio" | |
| "context" | |
| "log" | |
| "net/http" | |
| "os" | |
| "strconv" | |
| "sync" |
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
| package main | |
| import ( | |
| "bufio" | |
| "context" | |
| "log" | |
| "net/http" | |
| "sync" | |
| "time" |
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
| ################################################################################################### | |
| #### Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| #### | |
| #### Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | |
| #### except in compliance with the License. A copy of the License is located at | |
| #### | |
| #### http://aws.amazon.com/apache2.0/ | |
| #### | |
| #### or in the "license" file accompanying this file. This file is distributed on an "AS IS" | |
| #### BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
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
| 2022-01-29T19:44:43.080 runner[121033e8] lhr [info] Shutting down virtual machine | |
| 2022-01-29T19:44:43.215 app[121033e8] lhr [info] Sending signal SIGINT to main child process w/ PID 518 | |
| 2022-01-29T19:44:43.218 app[121033e8] lhr [info] Main child exited with signal (with signal 'SIGINT', core dumped? false) | |
| 2022-01-29T19:44:43.219 app[121033e8] lhr [info] Starting clean up. | |
| 2022-01-29T19:44:43.234 app[121033e8] lhr [info] Umounting /dev/vdc from /db | |
| 2022-01-29T19:44:47.326 runner[16cd4003] lhr [info] Starting instance | |
| 2022-01-29T19:44:47.367 runner[16cd4003] lhr [info] Configuring virtual machine | |
| 2022-01-29T19:44:47.369 runner[16cd4003] lhr [info] Pulling container image | |
| 2022-01-29T19:44:49.319 runner[16cd4003] lhr [info] Unpacking image | |
| 2022-01-29T19:44:50.514 runner[16cd4003] lhr [info] Preparing kernel init |
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
| timestamp | message | |
|---|---|---|
| 1643482975156 | 2022/01/29 19:02:55.012950 [INFO] Starting... | |
| 1643482975156 | 2022/01/29 19:02:55.013002 [INFO] Starting EBPlatform-PlatformEngine | |
| 1643482975156 | 2022/01/29 19:02:55.013018 [INFO] reading event message file | |
| 1643482975156 | 2022/01/29 19:02:55.013572 [INFO] no eb envtier info file found, skip loading env tier info. | |
| 1643482975156 | 2022/01/29 19:02:55.013765 [INFO] Engine received EB command cfn-hup-exec | |
| 1643482975910 | 2022/01/29 19:02:55.101565 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBAutoScalingGroup --region eu-west-1 | |
| 1643482976410 | 2022/01/29 19:02:55.677999 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:eu-west-1:<redacted>:stack/awseb-e-234tsz8zsf-stack/59ba6f50-812b-11ec-89c0-0227d013ec45 -r AWSEBBeanstalkMetadata --region eu-west-1 | |
| 1643482976410 | 2022/01/29 19:02:56.245445 [INFO] checking wh |
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
| // Option 1 | |
| async function streamToString(stream: NodeJS.ReadableStream): Promise<string> { | |
| const chunks: Array<any> = []; | |
| for await (let chunk of stream) { | |
| chunks.push(chunk) | |
| } | |
| const buffer = Buffer.concat(chunks); | |
| return buffer.toString("utf-8") | |
| } |