-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathdocker_commands.sh
68 lines (53 loc) · 1.62 KB
/
docker_commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
docker build -t ghactivity-aws .
docker run \
--name ghactivity-aws \
-d \
ghactivity-aws
docker exec -it ghactivity-aws bash
docker run \
--name ghactivity-aws \
-v /Users/itversity/.aws:/root/.aws \
-e AWS_PROFILE=ghactivity \
-e BUCKET_NAME=aigithub \
-e FOLDER=landing/ghactivity \
-d \
ghactivity-aws
python -c "import app;app.lambda_ingest(None, None)"
aws s3 ls s3://aigithub/landing/ghactivity --recursive
docker run \
--name ghactivity-aws \
-p 9080:8080 \
-v /Users/itversity/.aws:/root/.aws \
-e AWS_PROFILE=ghactivity \
-e BUCKET_NAME=aigithub \
-e FOLDER=landing/ghactivity \
-d \
ghactivity-aws
export AWS_PROFILE=ghactivity
aws ecr get-login-password \
--region us-east-1 | \
docker login \
--username AWS \
--password-stdin 269066542444.dkr.ecr.us-east-1.amazonaws.com
docker tag ghactivity-aws:latest \
269066542444.dkr.ecr.us-east-1.amazonaws.com/ghactivity-aws:latest
docker push 269066542444.dkr.ecr.us-east-1.amazonaws.com/ghactivity-aws:latest
aws ecr list-images \
--repository-name ghactivity-aws
aws lambda get-function \
--function-name ghactivity-ingestor
aws lambda get-function-configuration \
--function-name ghactivity-ingestor
docker run \
--name ghactivity-aws \
-p 9080:8080 \
-v /Users/itversity/.aws:/root/.aws \
-e AWS_PROFILE=ghactivity \
-e BUCKET_NAME=aigithub \
-e FOLDER=landing/ghactivity \
-e TARGET_FOLDER=raw/ghactivity \
-d \
ghactivity-aws
curl -XPOST \
"http://localhost:9080/2015-03-31/functions/function/invocations" \
-d '{"jobRunDetails": {"last_run_file_name": "2022-06-05-2.json.gz"}}'