File tree 15 files changed +18
-18
lines changed
LoggingService/fluent-bit-1.2.2
triggers_timer_based_trigger_control/scripts
tutorials/KNIX-General-Tutorial/resize
15 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 24
24
wget --no-check-certificate https://fluentbit.io/releases/1.2/fluent-bit-1.2.2.tar.gz
25
25
fi
26
26
docker build --build-arg HTTP_PROXY=$HTTP_PROXY --build-arg HTTPS_PROXY=$HTTPS_PROXY --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t fluent-bit-1.2.2-build .
27
- docker run -i --rm --name fluent-bit-1.2.2-sandbox -v $( pwd) :/fluent-bit-build fluent-bit-1.2.2-build /bin/bash -c " cp -r /fluent-bit /fluent-bit-build/. && chmod -R 777 /fluent-bit-build/fluent-bit"
27
+ docker run -i --rm --name fluent-bit-1.2.2-sandbox -v " $( pwd) " :/fluent-bit-build fluent-bit-1.2.2-build /bin/bash -c " cp -r /fluent-bit /fluent-bit-build/. && chmod -R 777 /fluent-bit-build/fluent-bit"
28
28
./package-fluent-bit.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- docker run -it --rm --network host --name mqttpublisher -v $( pwd) :/code -w /code python:3.6 bash -c ' ./mqttpublisher.sh'
2
+ docker run -it --rm --network host --name mqttpublisher -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./mqttpublisher.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- docker run -it --rm --network host --name mqttsubscriber -v $( pwd) :/code -w /code python:3.6 bash -c ' ./mqttsubscriber.sh'
2
+ docker run -it --rm --network host --name mqttsubscriber -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./mqttsubscriber.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- docker run -it --rm --network host --name rabbitpublisher -v $( pwd) :/code -w /code python:3.6 bash -c ' ./publisher.sh'
2
+ docker run -it --rm --network host --name rabbitpublisher -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./publisher.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- docker run -it --rm --network host --name rabbitsubscriber -v $( pwd) :/code -w /code python:3.6 bash -c ' ./subscriber.sh'
2
+ docker run -it --rm --network host --name rabbitsubscriber -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./subscriber.sh'
Original file line number Diff line number Diff line change 126
126
python3 management_init.py start
127
127
END
128
128
chmod 775 dockerrun.sh
129
- docker run -it --rm --network host --ulimit nofile=262144:262144 --env-file .management -v $(pwd):/code -w /code python:3.6 bash -c './dockerrun.sh'
129
+ docker run -it --rm --network host --ulimit nofile=262144:262144 --env-file .management -v " $(pwd)" :/code -w /code python:3.6 bash -c './dockerrun.sh'
130
130
rm dockerrun.sh
131
131
[ "$(docker ps | grep Management)" ] && docker stop Management || true
132
132
[ "$(docker ps -a | grep Management)" ] && docker rm Management || true
Original file line number Diff line number Diff line change 177
177
python3 available_hosts.py add
178
178
END
179
179
chmod 775 dockerrun.sh
180
- docker run -i --rm --network host --ulimit nofile=262144:262144 --env-file .env -v $(pwd):/code -w /code python:3.6 bash -c './dockerrun.sh'
180
+ docker run -i --rm --network host --ulimit nofile=262144:262144 --env-file .env -v " $(pwd)" :/code -w /code python:3.6 bash -c './dockerrun.sh'
181
181
rm dockerrun.sh
182
182
cd -
183
183
mode : ' 0775'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- docker run -it --rm --network host --ulimit nofile=262144:262144 -v $( pwd) :/code -w /code python:3.6 bash -c ' ./dockerrun.sh'
2
+ docker run -it --rm --network host --ulimit nofile=262144:262144 -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./dockerrun.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
./scripts/wait-for-it.sh $( hostname) :5672 -t 30
3
- docker run -d --rm --network host --name rabbitpublisher -v $( pwd) :/code -w /code python:3.6 bash -c ' ./scripts/publisher.sh'
3
+ docker run -d --rm --network host --name rabbitpublisher -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./scripts/publisher.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
./scripts/wait-for-it.sh $( hostname) :5672 -t 30
3
- docker run -it --rm --network host --name rabbitsubscriber -v $( pwd) :/code -w /code python:3.6 bash -c ' ./scripts/subscriber.sh'
3
+ docker run -it --rm --network host --name rabbitsubscriber -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./scripts/subscriber.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
./scripts/wait-for-it.sh $( hostname) :5672 -t 30
3
- docker run -d --rm --network host --name rabbitpublisher -v $( pwd) :/code -w /code python:3.6 bash -c ' ./scripts/publisher.sh'
3
+ docker run -d --rm --network host --name rabbitpublisher -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./scripts/publisher.sh'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
./scripts/wait-for-it.sh $( hostname) :5672 -t 30
3
- docker run -it --rm --network host --name rabbitsubscriber -v $( pwd) :/code -w /code python:3.6 bash -c ' ./scripts/subscriber.sh'
3
+ docker run -it --rm --network host --name rabbitsubscriber -v " $( pwd) " :/code -w /code python:3.6 bash -c ' ./scripts/subscriber.sh'
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Python Imaging Library (`pillow`) needs to packaged along with the function code
17
17
cd resize
18
18
19
19
# install pillow alongside user function
20
- docker run -it --rm -e https_proxy=${http_proxy} -u $( id -u) :$( id -g) -v $( pwd) :/temp -w /temp python:3.6 pip3 install pillow -t .
20
+ docker run -it --rm -e https_proxy=${http_proxy} -u $( id -u) :$( id -g) -v " $( pwd) " :/temp -w /temp python:3.6 pip3 install pillow -t .
21
21
22
22
# create zip package
23
23
zip -r ../resize.zip .
@@ -42,8 +42,8 @@ python3 request.py leaves.jpg
42
42
43
43
``` bash
44
44
# install pillow alongside user function
45
- docker run -it --rm -e https_proxy=${http_proxy} -u $( id -u) :$( id -g) -v $( pwd) :/temp -w /temp python:3.6 pip3 install pillow -t .
45
+ docker run -it --rm -e https_proxy=${http_proxy} -u $( id -u) :$( id -g) -v " $( pwd) " :/temp -w /temp python:3.6 pip3 install pillow -t .
46
46
47
47
# invoke the test script inside a python3.6 docker container
48
- docker run -it --rm -e https_proxy=${http_proxy} -u $( id -u) :$( id -g) -v $( pwd) :/temp -w /temp python:3.6 python3 test_local.py
48
+ docker run -it --rm -e https_proxy=${http_proxy} -u $( id -u) :$( id -g) -v " $( pwd) " :/temp -w /temp python:3.6 python3 test_local.py
49
49
```
Original file line number Diff line number Diff line change 18
18
# pre-requisite (PIL module should be downloaded in the current folder)
19
19
# pip3 install pillow -t .
20
20
# OR
21
- # docker run -it --rm -u $(id -u):$(id -g) -v $(pwd):/temp -w /temp python:3.6 pip3 install pillow -t .
21
+ # docker run -it --rm -u $(id -u):$(id -g) -v " $(pwd)" :/temp -w /temp python:3.6 pip3 install pillow -t .
22
22
# zip -r ../resize.zip .
23
23
24
24
def handle (event , context ):
Original file line number Diff line number Diff line change 14
14
15
15
# Script for locally testing the resize function
16
16
# pre-requisite (PIL module should be downloaded in the current folder)
17
- # docker run -it --rm -u $(id -u):$(id -g) -v $(pwd):/temp -w /temp python:3.6 pip3 install pillow -t .
17
+ # docker run -it --rm -u $(id -u):$(id -g) -v " $(pwd)" :/temp -w /temp python:3.6 pip3 install pillow -t .
18
18
#
19
19
# run as:
20
- # docker run -it --rm -u $(id -u):$(id -g) -v $(pwd):/temp -w /temp python:3.6 python3 test_local.py
20
+ # docker run -it --rm -u $(id -u):$(id -g) -v " $(pwd)" :/temp -w /temp python:3.6 python3 test_local.py
21
21
22
22
import json , base64
23
23
You can’t perform that action at this time.
0 commit comments