Sign inSign up

acabeza/python2-google-cloud-sdk

By acabeza

Updated about 2 years ago

Image to use Google Cloud SDK for python2 environment

Image
Languages & frameworks
0

484

acabeza/python2-google-cloud-sdk repository overview

What is used for?

This image is intended to be use as a base for python2 projects in google cloud sdk (appengine) Actually is no longer maintained, so is needed to create a own image to be served

Example of implementation

FROM acabeza/python2-google-cloud-sdk:latest

# Here is your code personalized
RUN apt-get update && apt-get install -y libmysqlclient-dev
RUN apt-get install libxml2-dev libxslt1-dev python-dev -y

COPY src/requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt

# This will start the server on docker run
ENTRYPOINT ["dev_appserver.py", "/app/", "--host", "0.0.0.0"]

Docker run command example (Important that inside of your-project need to be the app.yaml file)

docker run -p 8080:8080 --rm -it -v /home/demo/your-project:/opt/app acabeza/python2-google-cloud-sdk:latest

Tag summary

Content type

Image

Digest

sha256:3bc8c8302

Size

1 GB

Last updated

about 2 years ago

docker pull acabeza/python2-google-cloud-sdk