-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issues with incorrect work directory and missing environment variables. #17
Open
rlyle
wants to merge
204
commits into
justinram11:master
Choose a base branch
from
rlyle:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
204 commits
Select commit
Hold shift + click to select a range
2a81f0c
Unzip the file into the v/ar/task/ folder, so it can find it's files.
rlyle b6f0899
1.0.8
rlyle 009e532
Updating package name.
rlyle 89d7502
Revert "Unzip the file into the v/ar/task/ folder, so it can find it'…
rlyle c8d7f84
Don't prefix the addtional commands with RUN, so I can use the WORKDI…
rlyle e274468
1.0.9
rlyle ae1edbf
Automatically set the work directory to where the package is extracted.
rlyle 474d618
1.0.10
rlyle 8f984bb
Pass in the function name and XRAY trace ID into the batch job.
rlyle 1ff01b6
1.0.11
rlyle fd0aee1
Adding addtional enviroment variables to pass from the lambda into th…
rlyle 9653d0f
1.0.12
rlyle 2d0694e
Restoring the RUN command, was not needed after all.
rlyle 02d4d1d
Removing the log stream enviornment variables, not seeing logs curren…
rlyle 43f69e1
1.0.13
rlyle 1bf62b6
Removing other enironment variables except for the ones we really need.
rlyle 72d25aa
1.0.14
rlyle 4688297
Allow the lambda schedule function to use XRAY.
rlyle 80a4ea4
1.0.15
rlyle cebcb26
Fixed typo.
rlyle ec508ba
1.0.16
rlyle 9de1645
Adding support for XRAY.
rlyle e439919
1.0.17
rlyle 8d97fdb
Removing the _X_AMAZ_TRACE_ID, to see if XRAY work inside the AWS bat…
rlyle ea321db
1.0.18
rlyle a535146
Restoring the _X_AMZN_TRACE_ID environment variable.
rlyle 53c90a4
1.0.19
rlyle 9a7df20
Adding AWS_REQUEST_ID to the environment variables to see if this works.
rlyle 4905942
1.0.20
rlyle 988bbaf
Trying to fix the error: The provided execution role does not have pe…
rlyle 4a1e4b1
1.0.21
rlyle d6bff61
IOA-15971 | Seperating the EC2 permissions from the XRAY ones.
rlyle c6c2453
1.0.22
rlyle 1e1ca55
Updating to nodejs12.x
rlyle e8089bf
1.0.23
rlyle 6b67b95
Explicity add the access keys to the batch env.
rlyle 45b1403
1.0.24
rlyle d047540
Removing the XRAY trace ID, we are pushed over the limit for containe…
rlyle 98b396b
1.0.25
rlyle 43f9f5b
Removing the headers from the event before we submit a job, we are ex…
rlyle 7adf30a
1.0.26
rlyle a62ea1b
HOTFIX: Return an access-control-allow-origin header.
rlyle ee576db
1.0.27
rlyle 515f87e
Don't save an absolute path into the template file, make's it impossi…
rlyle cf523b7
1.0.28
rlyle 0f1b032
Undo my last change, log out the config so we can see the contents of…
rlyle 5fe2bb8
1.0.29
rlyle 6914bc6
Hook the after:aws.common:moveArtifactsToPackage:move to see what dat…
rlyle 372459a
1.0.30
rlyle 18fedde
Reverting last change.
rlyle c0e4b9a
1.0.31
rlyle 7c71b09
Don't use latest for the image names, as this doesn't allow us to bui…
rlyle 759c60d
1.0.32
rlyle cf688ad
We need to initialize a variable, so the calls to getDockerImageName(…
rlyle b0e279d
1.0.33
rlyle cec2d8a
Updated the life-cycle policy on the ECR to just delete images over 9…
rlyle 4b8112e
1.0.34
rlyle 5c7c119
Updated variable name.
rlyle c4a841c
Fixing text.
rlyle 8d27986
1.0.35
rlyle bfaf97b
HOTFIX: I think we need to double escape the life cycle policy text.
rlyle b88508a
1.0.36
rlyle f9784c0
HOTFIX: Adding a log to see what the ecrTemplate looks like before we…
rlyle bcb5481
1.0.37
rlyle 5687cb2
HOTFIX: This should have worked [skip test]
rlyle 3187985
1.0.38
rlyle 38a6230
HOTFIX: Removing the outer quotes, not needed. [skip test]
rlyle 5d1049f
1.0.39
rlyle dacfbcc
HOTFIX: Removing console.log now that it's working. [skip test]
rlyle e906130
1.0.40
rlyle 36957bf
HOTFIX: output the content of stdout and stderr when the docker comma…
rlyle 81b5473
1.0.41
rlyle 407f7c1
HOTFIX: Removed the status check when running docker.
rlyle eac1b60
1.0.42
rlyle 3e8fd68
HOTIFIX: Log the errors but don't throw when the status code is not 0.
rlyle 629d4f6
1.0.43
rlyle 2c5ad49
HOTFIX: Adding log when a docker command is ran. Make sure DOCKER_TAG…
rlyle 6a75bc5
1.0.44
rlyle 46409ae
HOTFIX: Not seeing the console.log, so changed to console.error. [ski…
rlyle f9175a8
1.0.45
rlyle f8627d2
HOTIFIX: INclude the DOCKER_TAG when we call getRespositoryURL(). [sk…
rlyle bdafb57
1.0.46
rlyle 72414c8
HOTFIX: need to use the --all-tags option with docker push now. [skip…
rlyle e243a34
1.0.47
rlyle f5d04a5
HOTFIX: Removing some console.errors I added to debug. [skip test]
rlyle 907d08a
1.0.48
rlyle be63ac1
Always set the NODE_OPTIONS variable.
rlyle 3eb0746
1.0.49
rlyle 315ab83
Trying to add support for nodejs16.x
rlyle eca9674
1.0.50
rlyle 778b531
IOA-22224 | Lets try running batch under node 12, it should be fine. …
rlyle af86038
1.0.51
rlyle 356c3cf
Revert "IOA-22224 | Lets try running batch under node 12, it should b…
rlyle a90246c
IOA-22224 | Trying to get the nodejs 16 in the docker image working.
rlyle 298dc9a
1.0.52
rlyle bdd8937
IOA-22245 | Getting node 16 setup in our docker images.
rlyle 50cfcf7
1.0.53
rlyle c629c60
IOA-22245 | sudo command not found :(
rlyle 46f7065
1.0.54
rlyle 5a59f97
IOA-22245 | Getting node 16 setup in our docker images. [skip test] […
rlyle 85d88a8
1.0.55
rlyle cbfec23
IOA-22245 | Getting node 16 setup in our docker images. [skip test] […
rlyle 9fba7b9
1.0.56
rlyle e101232
IOA-22245 | Getting node 16 setup in our docker images. [skip test] […
rlyle d73f75f
1.0.57
rlyle 400d54a
IOA-22245 | Getting node 16 setup in our docker images. [skip test] […
rlyle cc5a001
1.0.58
rlyle d8eac90
IOA-22245 | Getting node 16 setup in our docker images. [skip test] […
rlyle 5c5b87f
1.0.59
rlyle 1542deb
IOA-22245 | Getting node 16 setup in our docker images. [skip test] […
rlyle 7fb0feb
1.0.60
rlyle 3d072fa
IOA-22245 | Trying dnf install yum. [skip test] [skip subs]
rlyle e7d99dc
1.0.61
rlyle 85f0936
IOA-22245 | try using the full path to yum. [skip test] [skip subs]
rlyle ba151d7
1.0.62
rlyle 77c2ea6
IOA-22245 | Lets attempt to use the AWS lambda image. [skip test] [sk…
rlyle 5f42818
1.0.63
rlyle 9076f29
IOA-22245 | Added the CMD [ "app.handler" ] to the dockerfile. [skip …
rlyle ac54857
1.0.64
rlyle b21dfe6
IOA-22245 | Seems we need to clear the entry point, so the script can…
rlyle 3faaaeb
1.0.65
rlyle 75fb2c9
IOA-22245 | The ENTRYPOINT may need to be node. [skip test] [skip subs]
rlyle ea243cf
1.0.66
rlyle 82d4a81
IOA-22245 | Pass one argument into the container, passing two causes …
rlyle eb135c4
1.0.67
rlyle 075dc18
IOA-22245 | Updating the batch lambda to node 16 as well. [skip test…
rlyle 4b47361
IOA-22245 | I think the WORKDIR command is messing up the bootstrap. …
rlyle 63584a6
1.0.68
rlyle 53bfdb4
IOA-22245 | Pass the handler name without the prefixed directory. [sk…
rlyle 658c102
1.0.69
rlyle 0330932
IOA-22245 | Extract the service directly into the /var/task/ director…
rlyle 22cd8ee
1.0.70
rlyle 4174cde
IOA-22245 | Went back to the other image, going to copy curl/yum from…
rlyle 356d8b8
1.0.71
rlyle bfd7a7c
IOA-22245 | We need the libcurl.so.4 file to run curl. [skip test] […
rlyle 5143530
1.0.72
rlyle 3608f74
IOA-22245 | We need the libcurl.* libs to run curl. [skip test] [ski…
rlyle e727f80
1.0.73
rlyle 0d515db
IOA-22245 | Copy the entire lib64 and lib folders. [skip test] [skip …
rlyle e87240b
1.0.74
rlyle 952c0b0
IOA-22245 | Copy yum as well. [skip test] [skip subs]
rlyle 675986a
1.0.75
rlyle 1966900
1.0.76
rlyle 4586463
IOA-22245 | Ok, hopfully this fixes the issue. [skip test] [skip subs]
rlyle 3620597
1.0.77
rlyle 1c06744
IOA-22245 | Clean up some files and set the NODE_PATH. [skip test] […
rlyle eb56337
1.0.78
rlyle 6a359eb
IOA-22245 | We need tar to extract the binaries. [skip test] [skip s…
rlyle 7ee6343
1.0.79
rlyle c7c57bf
IOA-22245 | tar needs gzip [skip test] [skip subs]
rlyle 54c21dc
1.0.80
rlyle 4213d67
IOA-22245 | We have the rm -rf /tmp/* at the end, so we can remove th…
rlyle cbe4e35
1.0.81
rlyle 4bd31bd
IOA-22245 | Switch to the root user when doing the file copies. [skip…
rlyle 9f44c2c
1.0.82
rlyle ec5072d
IOA-22245 | Need to add /var/task/node_modules to NODE_PATH. [skip te…
rlyle df3b361
1.0.83
rlyle 795d725
IOA-22245 | Cleaned up the docker build process, do most of the thing…
rlyle ded006c
1.0.84
rlyle 4e2aa73
IOA-22245 | Need to add /var/runtime/node_modules so we can find the …
rlyle 9b6ca85
1.0.85
rlyle 9ba352e
IOA-22245 | Adding node 16 to our public web contents, so we can pull…
rlyle ac94585
1.1.0
rlyle e367268
IOA-22245 | Fixed typo in the URL. [skip test][skip subs]
rlyle 40f5270
1.1.1
rlyle eb8fcad
HOTFIX: additonalRunCommands should be on the actual image our lambda…
rlyle a9b378c
1.1.1
rlyle 85fa2a7
1.1.2
rlyle 3c16383
Merge branch 'master' of https://github.com/rlyle/serverless-aws-batch
rlyle 1d95309
HOTFIX: run the additional command before we clean up.
rlyle 1aa9321
1.1.3
rlyle e7113d2
Add addtionalBuildCommands so we can run any command on the build ima…
rlyle 24f1770
1.1.4
rlyle b36a88a
Removing the hard-coded commands to install node 16.x, instead doing …
rlyle fee974a
1.1.5
rlyle 97f7503
IOA-23313 | Updating to pull from our private respository.
rlyle 4def15d
1.1.6
rlyle c4613ed
HOTFIX: Removing the 90 day Lifecycle policy.
rlyle a034a54
1.1.7
rlyle feee2d0
Ran into a problem with cloud formation failing when it's generating …
rlyle 6f480b0
1.1.8
rlyle 13569d5
IOA-23781 | Add the DependsOn to the IAM execution row, since the rol…
rlyle 466be19
1.1.9
rlyle 7121f10
IOA-23781 | Need to apply the DependsOn in the right place for the ex…
rlyle 342e13a
1.1.10
rlyle c566bac
1.1.11
rlyle ca61097
Allow the build image name to be pulled from the serverless.yaml file…
rlyle 7079385
Updating version to 1.1.10
rlyle f888930
Merged other changes made on my other machine.
rlyle 428ede5
Updating version to 1.1.12
rlyle 9c0c5e0
HOTFIX: Added batchImage support as well.
rlyle 8a584b0
Updating to version 1.1.13
rlyle dd4c13d
Use the runtime from the provider section of the config by default in…
rlyle 9feb32f
1.1.14
rlyle 03f546e
Default to node v18, use a variable from the custom config section in…
8f617e0
1.1.15
2dbe4b6
Updated to use AWS sdk v3.
rlyle 0bb0e4f
1.1.16
rlyle 3808ae8
MRF-162 | Adding support for the serverless-log-forwarding plugin, so…
685d748
1.1.17
633686b
MRF-162 | We are going to need a different log group for batch jobs i…
d0566dd
1.1.18
93d5ee9
MRF-162 | Fixed typo.
a644b41
1.1.19
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -233,6 +233,28 @@ function generateLambdaScheduleExecutionRole() { | |
"PolicyDocument": { | ||
"Version": "2012-10-17", | ||
"Statement": [ | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"xray:PutTraceSegments", | ||
"xray:PutTelemetryRecords" | ||
], | ||
"Resource": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
"ec2:CreateNetworkInterface", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixes the error creating the lambda for the first time. |
||
"ec2:DescribeNetworkInterfaces", | ||
"ec2:DetachNetworkInterface", | ||
"ec2:DeleteNetworkInterface" | ||
], | ||
"Resource": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"Effect": "Allow", | ||
"Action": [ | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Allow XRAY to work from the lambda.