Comments (3)
Done in pull request #52.
An event.json file is created in a location based on the request_id:
- /tmp/resquest_id/event.json
from scar.
The request_id does not seem to be available as an environment variable in the container (say REQUEST_ID). This is necessary for scripts in the containers to know the location of the event file.
The current environment variables are:
FAKECHROOT=true
container_uuid=c264515d-e6ba-3b4e-aaf6-20e2d535ad03
FAKECHROOT_DIR_MAP=/tmp/udocker-150-92ebcd53-b0a5-3a65-8ecd-5338fbdeb2fe-passwd!/etc/passwd:/tmp/udocker-150-39f325ac-1c34-3868-888e-e5d580cc2276-group!/etc/group
USER=sbx_user1099
LD_LIBRARY_PATH=/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//usr/lib:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//lib:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//usr/lib64:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//lib64:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//usr/lib/x86_64-linux-gnu:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//lib/x86_64-linux-gnu:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT/lib/x86_64-linux-gnu:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT/usr/lib/x86_64-linux-gnu:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT/usr/lib/x86_64-linux-gnu/gconv:/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT/usr/lib/x86_64-linux-gnu/coreutils:.
SHLVL=0
container_ruser=sbx_user1099
HOME=/
PS1=c264515d[\\W]$
FAKECHROOT_VERSION=2.18.1
container_root=/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT
container_execmode=F1
container_names=lambda_cont
LOGNAME=sbx_user1099
_=/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//lib64/ld-linux-x86-64.so.2
FAKECHROOT_BASE=/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT
USERNAME=sbx_user1099
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
FAKECHROOT_AF_UNIX_PATH=/tmp
LD_PRELOAD=/tmp/home/.udocker/lib/libfakechroot-x86_64.so
FAKECHROOT_EXCLUDE_PATH=/tmp:/dev:/proc
PWD=/
FAKECHROOT_ELFLOADER=/tmp/home/.udocker/containers/c264515d-e6ba-3b4e-aaf6-20e2d535ad03/ROOT//lib64/ld-linux-x86-64.so.2
from scar.
Done in PR #79
If you do a printenv yo can see:
...
PS1=69ec2f6b[\W]$
container_uuid=69ec2f6b-5be4-3497-a78b-6adc824bf5d2
HOME=/
REQUEST_ID=a031e3dd-4aa6-11e7-afb4-e3c4cd0c509e
SHLVL=0
FAKECHROOT_AF_UNIX_PATH=/tmp
LOGNAME=sbx_user1132
...
from scar.
Related Issues (20)
- My docker image is 396MB which is <512MB still AWS cloud watch fails to execute saying No SPACE LEFT HOT 2
- Scar unable to execute AWS Lambda function using Uploaded Docker image to S3 HOT 2
- Bash script executed successfully but how do i post the results to cloudwatch HOT 5
- How can i schedule scar run -n <Function name> HOT 2
- How To Convert your "scar init -f scar.yaml" inside docker to an equivalent docker exec -it scar init -f scar.yaml file using docker-compose HOT 1
- Can I use this lambda for training? HOT 3
- Getting No logs/failures for private docker "scar init -n SREBlackBoxTester -i 8236.dkr.ecr.us-west-2.amazonaws.com/abc-gat:latest" HOT 6
- JSON object must be str, bytes or bytearray, not NoneType HOT 5
- Scar local, does not honour env variables HOT 3
- Is it possible to mount a container using tmpfs? HOT 1
- Running a script inside docker container HOT 1
- How do I send an input(for ex a json input) to my script that is running in the container in aws lambda? HOT 3
- Access EFS storage from within container HOT 10
- batch processing from public bucket / subscribing to SNS topic HOT 2
- Allow creating a function inside a VPC
- Integration with Serverless
- How could the darknet example be changed if the weights, cfg, and data files were in s3?
- S3 storage not working with user-defined scripts HOT 2
- Error checking supervisor version in run command in case if image runtime
- SCAR throwing “Must specify userName when calling with non-User credentials” error when using AWS temporary credentials.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scar.