by Asim Jalis, MetaProse.com
Create a file __main__.py containing:
print "Hello world from Python"
Zip up the Python files (in this case just this one file) into app.zip by typing:
| # Ask for the user password | |
| # Script only works if sudo caches the password for a few minutes | |
| sudo true | |
| # Install kernel extra's to enable docker aufs support | |
| # sudo apt-get -y install linux-image-extra-$(uname -r) | |
| # Add Docker PPA and install latest version | |
| # sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
| # sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" |
| # iOS | |
| app_identifier "com.myapp.app" # The bundle identifier of your app | |
| apple_id "[email protected]" # Your Apple email address | |
| team_id "1234ABCD" # Developer Portal Team ID | |
| # Android | |
| json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow https://github.com/fastlane/supply#setup to get one | |
| package_name "com.myapp.app" # Your Android app package |
| #!/usr/bin/env python | |
| import nltk | |
| packages = ['words', 'webtext','stopwords','punkt','averaged_perceptron_tagger','maxent_ne_chunker','wordnet'] | |
| nltk.download(packages) |
| # build the environment ... this will take awhile | |
| docker run -v $(pwd):/outputs -it amazonlinux:2016.09 /bin/bash /outputs/build.sh | |
| # should end with something like "venv compressed size 51M" | |
| # unpackage that environment | |
| unzip venv.zip -d ve_package/ |
| i | |
| me | |
| my | |
| myself | |
| we | |
| our | |
| ours | |
| ourselves | |
| you | |
| your |
by Asim Jalis, MetaProse.com
Create a file __main__.py containing:
print "Hello world from Python"
Zip up the Python files (in this case just this one file) into app.zip by typing:
| me:dockerzon iksnae$ docker-compose up | |
| Building dockerzon | |
| Step 1/12 : FROM ruby:2.3-slim | |
| ---> 39bed6bce295 | |
| Step 2/12 : MAINTAINER Nick Janetakis <[email protected]> | |
| ---> Using cache | |
| ---> 7b913db1c007 | |
| Step 3/12 : RUN apt-get update && apt-get install -qq -y --no-install-recommends build-essential nodejs libpq-dev | |
| ---> Using cache | |
| ---> 1b3cd99aad94 |
| $:dockerzon iksnae$ docker-compose up --build | |
| Building dockerzon | |
| Step 1/12 : FROM ruby:2.3-slim | |
| ---> 39bed6bce295 | |
| Step 2/12 : MAINTAINER Nick Janetakis <[email protected]> | |
| ---> Using cache | |
| ---> 7b913db1c007 | |
| Step 3/12 : RUN apt-get update && apt-get install -qq -y --no-install-recommends build-essential nodejs libpq-dev | |
| ---> Using cache | |
| ---> 1b3cd99aad94 |
| FROM ubuntu:16.04 | |
| # run update | |
| RUN apt-get update | |
| # install python, pip, scipy, numpy, matplotlib system support | |
| RUN apt-get install -y python python-pip python-numpy python-scipy python-matplotlib | |
| # supress pip warnings by updating | |
| RUN pip install --upgrade pip |
| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |