aws-samples / aws-iot-analytics-workshop

AWS IOT Analytics Workshop
MIT No Attribution
44 stars 31 forks source link

Python 3.5 EOL #11

Open anamorph opened 3 years ago

anamorph commented 3 years ago

As python 3.5 is EOL, this breaks the container build.

a quickfix is in order:

in https://github.com/aws-samples/aws-iot-analytics-workshop#setup-the-docker-image-on-ec2:

wget https://bootstrap.pypa.io/pip/3.5/get-pip.py

then edit Dockerfile as follows:

FROM ubuntu:16.04
# Get required set of software
RUN apt-get update
RUN apt-get install -y python3-pip
ADD get-pip.py get-pip.py
ENTRYPOINT ["python3", "get-pip.py"]
# Get boto for S3 and other libraries
RUN pip3 install boto3
RUN pip3 install urllib3
RUN pip3 install requests
RUN pip3 install RateLimiter
RUN pip3 install split
RUN pip3 install chop
ADD load_data.py load_data.py
# Start python script
ENTRYPOINT ["python3", "load_data.py"]

-Nico