Create a Lambda service that returns a list of colours
User serverless.com video and reference material, and for this initial task prefer the Node.js option.
MVP will be a tested deployment to an AWS Gateway API for demo consumption
##Later
| """ | |
| Based on a FB post that wanted streets names of Barry, starting with Gladstone Road, with each successive street | |
| starting with the terminal letter of the previous one. | |
| """ | |
| streets = """ | |
| Aberaeron Close | |
| Aberystwyth Crescent | |
| Abingdon Street | |
| Adar Y Mor | |
| Ael-y-coed |
| Building in Docker Cloud's infrastructure... | |
| Cloning into '.'... | |
| Submodule 'aten/src/ATen/cpu/cpuinfo' (https://github.com/Maratyszcza/cpuinfo) registered for path 'aten/src/ATen/cpu/cpuinfo' | |
| Submodule 'aten/src/ATen/cpu/tbb/tbb_remote' (https://github.com/01org/tbb) registered for path 'aten/src/ATen/cpu/tbb/tbb_remote' | |
| Submodule 'aten/src/ATen/utils/catch' (https://github.com/catchorg/Catch2.git) registered for path 'aten/src/ATen/utils/catch' | |
| Submodule 'third_party/ComputeLibrary' (https://github.com/ARM-software/ComputeLibrary.git) registered for path 'third_party/ComputeLibrary' |
| Setup your fave virtual environment | |
| pip install -r requirements.txt | |
| python syntax.py |
| version: '2' | |
| services: | |
| test-java-params-none: | |
| image: iron/java:1.8 | |
| command: sh -c " java -XX:+PrintFlagsFinal -version|grep -i heapsize|egrep 'Initial|Max'" | |
| test-java-params-cmd-line: | |
| image: iron/java:1.8 | |
| command: sh -c "sleep 2; java -Xms64m -Xmx128m -XX:+PrintFlagsFinal -version|grep -i heapsize|egrep 'Initial|Max'" |
| > assert orig == ret | |
| E assert TimedTask(tid..., 13, 665000)) == TimedTask(tid=..., 13, 664999)) | |
| E Full diff: | |
| E - TimedTask(tid=UUID('6...27'), created=datetime.datetime(2016, 2, 25, 14, 32, 13, 665000)) | |
| E ? ^^^^ | |
| E + TimedTask(tid=UUID('6...27'), created=datetime.datetime(2016, 2, 25, 14, 32, 13, 664999)) | |
| E ? ^^^^ | |
| Note, the time saved was already rounded to milliseconds. The time returned is one ms less than the saved time. |
| [pytest] | |
| python_paths = src/bolts src/spouts | |
| testpaths = src/tests |
| $ docker-machine create -d virtualbox local | |
| $ eval "$(docker-machine env local)" | |
| $ docker run swarm create | |
| .. | |
| 357150828546349cb76f0b0b21af2f1a | |
| $ docker-machine create \ | |
| -d virtualbox \ | |
| --swarm \ | |
| --swarm-master \ |