Skip to content

Commit

Permalink
Added install instructions for using as docker containers (#84)
Browse files Browse the repository at this point in the history
* Fix wrong location in comment

* Merge dev branch into master for 0.2 Beta and Holistic Testing (#24)

* Updated publishing samples to reflect changes made to source code

* Updated Publihing SDs, shp, csv samples to reflect latest API changes

* Publisher sample updates - added samples for web maps and web scene (#3)

* Updated notebook title to match filename

* Added a new sample to showcase publishing web maps and web scenes

* Fixed credentials

* Updated sample titled "Using and updating GIS content" (#4)

* Updated notebook title to match filename

* Added a new sample to showcase publishing web maps and web scenes

* Fixed credentials

* Updated the sample with additional examples

* Fixed credentials

* Added an example for line featuers. Added some text explaining what smart mapping is

* Additional widgets to minimize scrolling. Fixed geocoder usage following API update

* Updated geocoder usage to match API updates

* Updated the sample to match gp service update. Added a bit more text explaining the usage of gp tools (#12)

* Minor - updated sample to search for desired item to add instead of a fixed index (#13)

* GIS analysts - sample illustrating spatial analysis using ArcGIS Python API (#14)

* Initial commit

* Furnished the sample with spatial analysis examples

* Fixes for API changes. Added summary text and elaborated a few steps (#15)

* new sample to showcase big data anlaysis using NYC taxi example (#16)

* Updated hurricane tracks sample to match API changes (#17)

* Updated hurricane tracks sample to match API changes and added descriptive text

* updated credentials

* Updated sample to match API changes, added explanatory text (#19)

* clean up sample (#18)

* clean up sample (#20)

* Remove usage statistics notebook as the API isnt available

This requires work on the portal backend as well as it does not yet
support ASM.

* bug fixes and added descriptive text (#22)

* synced raster product sample in 05 Content Publishers folder to match that in 04 GIS Analysts and Data Scientists (#21)

Thanks, @AtmaMani

* Updated Overview page - updated sample TOC (#23)

* doc updates

* apidoc update for 0.2 beta release

* updated install instructions

* Updated samples download link to point to v0.2-beta release (#25)

* fixed wrong import

* fixed execution count

* ignore IDE files

* added try it live and docker to install instructions
  • Loading branch information
AtmaMani authored and rohitgeo committed Mar 1, 2017
1 parent 5e7cf54 commit 96cb516
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
guide/gis module/.ipynb_checkpoints/class gis.ContentManager-checkpoint.ipynb
.ipynb_checkpoints
.ipynb_checkpoints
.idea
64 changes: 60 additions & 4 deletions guide/01 Getting Started/Install and set up.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,39 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Install using Conda\n",
"There are multiple ways in which you can experience the ArcGIS API for Python and its SDK. You can either install the API and SDK using conda or try it using the live sandbox or get it as a Docker image.\n",
"\n",
" - [Try the API live in a sandbox](#Try-it-live)\n",
" - [Install the API in your computer using conda](#Install-using-Conda)\n",
" - [Install using ArcGIS Pro](#Install-using-ArcGIS-Pro)\n",
" - [Install the API as a Docker image](#Install-as-a-Docker-image)\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Try it live\n",
"The API is now available in a live sandbox. You may choose to experience it in the sandbox before going ahead with the installation. Click the link below to launch a temporary Jupyter notebook environment. \n",
"\n",
"<a class=\"btn\" href=\"//notebooks.esri.com/\" target=\"_blank\">Try it live</a>\n",
"\n",
"Note, these are temporary environments which are erased after you close the browser tab. If you would like to save your changes, download your notebooks from the `File` menu of the Jupyter notebook IDE."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Install using Conda\n",
"\n",
"The ArcGIS API for Python is distributed via conda. [Conda](http://conda.pydata.org/docs/get-started.html) is a popular package and environment manager application that helps you install and update packages such as the ArcGIS Python API and their dependencies. You can install the API through two main workflows - install through anaconda or install using ArcGIS Pro. Both are outlined below.\n",
"\n",
"## Step: 1 Get Conda\n",
"### Step: 1 Get Conda\n",
"Install the latest version of [Anaconda for Python](https://www.continuum.io/downloads) (for Python 3x), if you don't already have conda. The ArcGIS API for Python requires Python 3.5 or higher.\n",
"If you have installed ArcGIS Pro 1.4 or later, you already have conda.\n",
"\n",
"## Step: 2 Install `arcgis` package\n",
"### Step: 2 Install `arcgis` package\n",
"To download and install the API in your conda environment, type the following command in your terminal.\n",
"\n",
" conda install -c esri arcgis\n",
Expand Down Expand Up @@ -78,11 +102,43 @@
"\n",
"Next, you can learn more about the API using the [guide](/python/guide/) and try out the [samples](/python/sample-notebooks/)."
]
},
{
"cell_type": "markdown",
"metadata": {
"collapsed": true
},
"source": [
"---------------------------------------\n",
"## Install as a Docker image\n",
"\n",
"[Docker](https://www.docker.com) is a popular containerization technology. Docker containers bundle software in a complete file system with everything that is needed to run it. Docker containers run the same regardless of your operating system. To learn more about docker, refer to [the official documentation](https://docs.docker.com/engine/getstarted/).\n",
"\n",
"The ArcGIS API for Python is shipped as a [Docker image](https://hub.docker.com/r/esridocker/arcgis-api-python-notebook/) which you can download and power up whenever you want to use the API. These images when spun up into containers, run in an isolated environment without making any changes to your local file system.\n",
"\n",
"Follow the steps below to get Docker on your computer and run the API:\n",
"\n",
" * [Download docker](https://www.docker.com/products/overview) and [install](https://docs.docker.com/engine/installation/) it on your computer.\n",
" * Once installed, run the following command in terminal to pull Docker image\n",
" \n",
" `docker pull esridocker/arcgis-api-python-notebook`\n",
" \n",
" ![docker pull command](http://esri.github.io/arcgis-python-api/notebooks/nbimages/guide_getstarted_InstallAndSetup_04.PNG)\n",
"\n",
"\n",
" * Then spin the image into a container using the following command in terminal. Replace the `<localport>` with an available port number, for instance `8889`. \n",
" \n",
" `docker run -it -p <localport>:8888 esridocker/arcgis-api-python-notebook`\n",
"\n",
"\n",
" * When the container starts, it will provide a URL (with a one time token) to open your local Notebook instance. Copy the URL and paste it in your browser's address bar to use the notebooks."
]
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python [default]",
"language": "python",
"name": "python3"
},
Expand Down

0 comments on commit 96cb516

Please sign in to comment.