agent-claw: automated task changes
This commit is contained in:
1
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/.dockerignore
generated
vendored
Normal file
1
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/.dockerignore
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
build.sh
|
||||
59
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/Dockerfile
generated
vendored
Normal file
59
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/Dockerfile
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
FROM public.ecr.aws/sam/build-python3.11
|
||||
|
||||
RUN mkdir -p /opt
|
||||
WORKDIR /tmp
|
||||
|
||||
#
|
||||
# tools
|
||||
#
|
||||
|
||||
RUN yum update -y \
|
||||
&& yum install -y zip unzip wget tar gzip
|
||||
|
||||
#
|
||||
# aws cli
|
||||
#
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN python -m pip install -r requirements.txt -t /opt/awscli
|
||||
|
||||
#
|
||||
# Add the LICENSE file
|
||||
#
|
||||
|
||||
COPY LICENSE /opt/awscli/LICENSE
|
||||
|
||||
#
|
||||
# organize for self-contained usage
|
||||
#
|
||||
|
||||
RUN mv /opt/awscli/bin/aws /opt/awscli
|
||||
|
||||
#
|
||||
# cleanup
|
||||
#
|
||||
|
||||
RUN rm -rf \
|
||||
/opt/awscli/pip* \
|
||||
/opt/awscli/setuptools* \
|
||||
&& cd /opt/awscli/awscli/examples \
|
||||
&& ls | grep -v "global_options.rst" | xargs rm -rf
|
||||
|
||||
#
|
||||
# Test that the CLI works
|
||||
#
|
||||
|
||||
RUN yum install -y groff
|
||||
RUN /opt/awscli/aws help
|
||||
|
||||
#
|
||||
# create the bundle
|
||||
#
|
||||
|
||||
RUN cd /opt \
|
||||
&& zip --symlinks -r ../layer.zip * \
|
||||
&& echo "/layer.zip is ready" \
|
||||
&& ls -alh /layer.zip;
|
||||
|
||||
WORKDIR /
|
||||
ENTRYPOINT [ "/bin/bash" ]
|
||||
80
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/LICENSE
generated
vendored
Normal file
80
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
# AWS CLI License Information
|
||||
|
||||
## AWS CLI - Apache License 2.0
|
||||
|
||||
Copyright 2012-2020 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 License for the specific
|
||||
language governing permissions and limitations under the License.
|
||||
|
||||
---
|
||||
|
||||
## Third-Party Libraries
|
||||
|
||||
The following third-party libraries are included in this distribution and are subject to their respective licenses:
|
||||
|
||||
1. **Python Requests** (Apache License 2.0)
|
||||
- Copyright 2012-2020 Kenneth Reitz
|
||||
- [Requests GitHub](https://github.com/psf/requests)
|
||||
|
||||
2. **botocore** (Apache License 2.0)
|
||||
- Copyright 2012-2020 Amazon.com, Inc. or its affiliates
|
||||
- [botocore GitHub](https://github.com/boto/botocore)
|
||||
|
||||
3. **s3transfer** (Apache License 2.0)
|
||||
- Copyright 2012-2020 Amazon.com, Inc. or its affiliates
|
||||
- [s3transfer GitHub](https://github.com/boto/s3transfer)
|
||||
|
||||
4. **colorama** (BSD 3-Clause License)
|
||||
- Copyright (c) 2010 Jonathan Hartley
|
||||
- [colorama GitHub](https://github.com/tartley/colorama)
|
||||
|
||||
5. **dateutil** (Apache License 2.0 and BSD 3-Clause License)
|
||||
- Copyright 2003-2011 Gustavo Niemeyer <gustavo@niemeyer.net>
|
||||
- Copyright 2017- Paul Ganssle <paul@ganssle.io>
|
||||
- [dateutil GitHub](https://github.com/dateutil/dateutil)
|
||||
|
||||
6. **docutils** (Python Software Foundation License)
|
||||
- Copyright 2001-2020 David Goodger
|
||||
- [docutils GitHub](https://github.com/docutils/docutils)
|
||||
|
||||
7. **jmespath** (MIT License)
|
||||
- Copyright (c) 2013 Amazon.com, Inc. or its affiliates
|
||||
- [jmespath GitHub](https://github.com/jmespath/jmespath.py)
|
||||
|
||||
8. **pyasn1** (BSD 2-Clause License)
|
||||
- Copyright (c) 2005-2020, Ilya Etingof <etingof@gmail.com>
|
||||
- [pyasn1 GitHub](https://github.com/etingof/pyasn1)
|
||||
|
||||
9. **PyYAML** (MIT License)
|
||||
- Copyright (c) 2017-2021 Ingy döt Net
|
||||
- Copyright (c) 2006-2016 Kirill Simonov
|
||||
- [PyYAML GitHub](https://github.com/yaml/pyyaml)
|
||||
|
||||
10. **rsa** (MIT License)
|
||||
- Copyright (c) 2016 Maxim Biro
|
||||
- [rsa GitHub](https://github.com/sybrenstuvel/python-rsa)
|
||||
|
||||
11. **six** (MIT License)
|
||||
- Copyright (c) 2010-2024 Benjamin Peterson
|
||||
- [six GitHub](https://github.com/benjaminp/six)
|
||||
|
||||
12. **urllib3** (MIT License)
|
||||
- Copyright (c) 2008-2020 Andrey Petrov and contributors.
|
||||
- [urllib3 GitHub](https://github.com/urllib3/urllib3)
|
||||
|
||||
13. **YAML Framework** (CC-BY 2.0)
|
||||
- Copyright: 2005-2013, Dirk Jesse
|
||||
- [YAML Framework Homepage](https://yaml-framework.github.io)
|
||||
|
||||
---
|
||||
|
||||
For full details on these libraries and the full license text, please refer to their respective repositories or documentation.
|
||||
28
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/build.sh
generated
vendored
Executable file
28
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/build.sh
generated
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
mkdir -p ../lib
|
||||
|
||||
echo ">> Building AWS Lambda layer inside a docker image..."
|
||||
|
||||
TAG='aws-lambda-layer'
|
||||
if command -v docker >/dev/null; then
|
||||
DOCKER=docker
|
||||
elif command -v finch >/dev/null; then
|
||||
DOCKER=finch
|
||||
else
|
||||
echo "Neither 'docker' nor 'finch' is available!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
${DOCKER} build -t ${TAG} .
|
||||
|
||||
echo ">> Extracting layer.zip from the build container..."
|
||||
CONTAINER=$(${DOCKER} run -d ${TAG} -- -c 'sleep 60')
|
||||
${DOCKER} cp ${CONTAINER}:/layer.zip ../lib/layer.zip
|
||||
|
||||
echo ">> Stopping container..."
|
||||
${DOCKER} rm -f ${CONTAINER}
|
||||
echo ">> lib/layer.zip is ready"
|
||||
3
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/requirements.txt
generated
vendored
Normal file
3
cdk/node_modules/@aws-cdk/asset-awscli-v1/layer/requirements.txt
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
awscli==1.44.68
|
||||
urllib3>=2.6.3,<3.0.0
|
||||
pyasn1>=0.6.3
|
||||
Reference in New Issue
Block a user