Skip to content

Commit 95f16b7

Browse files
committed
Merge branch 'next' of https://github.com/Esri/arcgis-python-api into next
2 parents 2ca78cc + e428c27 commit 95f16b7

File tree

9,614 files changed

+13262
-4614552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,614 files changed

+13262
-4614552
lines changed

.github/workflows/DockerBuild.LambdaBaseImage.yaml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ name: DockerBuild.LambdaImage
33
on:
44
# allow it to be run on-demand
55
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: "Version of ArcGIS API for Python to install in the image"
9+
type: string
10+
default: "2.2.0"
11+
python_version:
12+
description: "Python version to base image on"
13+
type: string
14+
default: "3.9"
15+
is_latest_release:
16+
description: "Version of ArcGIS API for Python is Latest current release"
17+
type: boolean
18+
default: false
19+
is_default_supported_python:
20+
description: "Python version is default supported version (i.e. python used by Pro and Enterprise)"
21+
type: boolean
22+
default: false
623

724
jobs:
825
build-and-push:
@@ -31,10 +48,10 @@ jobs:
3148
images: |
3249
ghcr.io/esri/arcgis-python-api-lambda
3350
tags: |
34-
type=raw,value=2.2.0,enable={{is_default_branch}}
35-
type=raw,value=latest,enable={{is_default_branch}}
36-
type=schedule,pattern={{date 'YY.MM'}},enable={{is_default_branch}}
37-
type=sha,format=long
51+
type=raw,value=${{ inputs.version }}-python${{ inputs.python_version }}
52+
type=raw,value=${{ inputs.version }},enable=${{ inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }}
53+
type=raw,value=latest,enable=${{ inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }}
54+
type=schedule,pattern={{date 'YY.MM'}},enable=${{ inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }}
3855
3956
- id: docker_build
4057
name: Build image and push to GitHub Container Registry
@@ -43,6 +60,9 @@ jobs:
4360
# relative path to the place where source code with Dockerfile is located
4461
context: .
4562
file: ./docker/LambdaBaseImage.Dockerfile
63+
build-args: |
64+
python_version=${{ inputs.python_version }}
65+
arcgis_version=${{ inputs.version }}
4666
tags: ${{ steps.meta.outputs.tags }}
4767
provenance: false
4868
platforms: linux/amd64
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: DockerBuild.NotebookImage
2+
3+
on:
4+
# allow it to be run on-demand
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: "Version of ArcGIS API for Python to install in the image"
9+
type: string
10+
default: "2.2.0"
11+
python_version:
12+
description: "Python version to base image on"
13+
type: string
14+
default: "3.9"
15+
is_latest_release:
16+
description: "Version of ArcGIS API for Python is Latest current release"
17+
type: boolean
18+
default: false
19+
is_default_supported_python:
20+
description: "Python version is default supported version (i.e. python used by Pro and Enterprise)"
21+
type: boolean
22+
default: false
23+
24+
jobs:
25+
build-and-push:
26+
name: Build Docker image and push to ghcr.io
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v4
32+
33+
- name: Set up Docker Buildx
34+
id: buildx
35+
uses: docker/setup-buildx-action@v2
36+
37+
- name: Login to Github Packages
38+
uses: docker/login-action@v2
39+
with:
40+
registry: ghcr.io
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
44+
- name: Docker meta
45+
id: meta
46+
uses: docker/metadata-action@v4
47+
with:
48+
images: |
49+
ghcr.io/esri/arcgis-python-api-notebook
50+
tags: |
51+
type=raw,value=${{ inputs.version }}-python${{ inputs.python_version }}
52+
type=raw,value=${{ inputs.version }},enable=${{ inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }}
53+
type=raw,value=latest,enable=${{ inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }}
54+
type=schedule,pattern={{date 'YY.MM'}},enable=${{ inputs.is_latest_release && inputs.is_default_supported_python && github.ref_name == github.event.repository.default_branch }}
55+
56+
- id: docker_build
57+
name: Build image and push to GitHub Container Registry
58+
uses: docker/build-push-action@v4
59+
with:
60+
# relative path to the place where source code with Dockerfile is located
61+
context: ./docker
62+
file: ./docker/NotebookImage.Dockerfile
63+
build-args: |
64+
python_version=${{ inputs.python_version }}
65+
arcgis_version=${{ inputs.version }}
66+
tags: ${{ steps.meta.outputs.tags }}
67+
provenance: false
68+
platforms: linux/amd64
69+
push: true

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ This SDK repository contains the following items:
88
* API Reference Documentation. A hosted version of this can be found [here](https://developers.arcgis.com/python/api-reference/).
99
* Samples as Jupyter Notebooks.
1010
* Guides chapters as Jupyter Notebooks.
11+
* API Reference Documentation can be found [here](https://developers.arcgis.com/python/api-reference/). Downloads are available for current and previous versions [here](https://developers.arcgis.com/downloads/#python).
1112

1213
You have multiple ways of executing these notebooks as listed below:
1314

14-
- Execute locally on your computer by installing anaconda and the API. See help [here](https://developers.arcgis.com/python/guide/install-and-set-up/#Installation-using-Anaconda-for-Python-Distribution)
15-
- Execute with ArcGIS Pro. See help [here](https://developers.arcgis.com/python/guide/install-and-set-up/#Installation-for-ArcGIS-Pro-2.5.x-and-later)
15+
- Execute locally on your computer by installing anaconda and the API. See _Install and set up_ help [Package managers](https://developers.arcgis.com/python/guide/anaconda/)
16+
- Execute with ArcGIS Pro. See the _Install and set up_ [ArcGIS Pro](https://developers.arcgis.com/python/guide/arcgis-pro/) topic. For additional details, see [Notebooks in ArcGIS Pro](https://pro.arcgis.com/en/pro-app/latest/arcpy/get-started/pro-notebooks.htm).
1617
- Execute with ArcGIS Notebooks, hosted on ArcGIS Online. Checkout [this group](https://www.arcgis.com/home/group.html?id=2464da88f55e45d89aedcae843167f51#overview) with sample notebooks.
17-
- Execute in a Dockerised environment. See help [here](https://developers.arcgis.com/python/guide/install-and-set-up/#Installation-as-a-Docker-image)
18+
- Execute in a Dockerised environment. See _Install and set up_ help [Installation as Docker image](https://developers.arcgis.com/python/guide/install-and-set-up/#installation-as-a-docker-image)
1819
- Execute with Binder. See help [here](https://mybinder.org/)
1920

2021
## Issues

apidoc/.buildinfo

Lines changed: 0 additions & 4 deletions
This file was deleted.

apidoc/0.1.0/.buildinfo

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)