Skip to content

Commit

Permalink
Build aarch64 tensorflow image (#1911)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathbunnyru committed Jun 1, 2023
1 parent 6932c83 commit a01a701
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 72 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/docker-merge-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,10 @@ jobs:
name: ${{ inputs.image }}-x86_64-tags
path: /tmp/tags/
- name: Download aarch64 tags file 📥
if: inputs.image != 'tensorflow-notebook'
uses: actions/download-artifact@v3
with:
name: ${{ inputs.image }}-aarch64-tags
path: /tmp/tags/
- name: Create an empty aarch64 tags file for tensorflow-notebook 💩
if: inputs.image == 'tensorflow-notebook'
run: touch /tmp/tags/aarch64-tensorflow-notebook.txt
shell: bash

# Docker might be stuck when pulling images
# https://github.com/docker/for-mac/issues/2083
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,15 @@ jobs:
runsOn: ubuntu-latest
needs: [x86_64-minimal]

aarch64-tensorflow:
uses: ./.github/workflows/docker-build-test-upload.yml
with:
parentImage: scipy-notebook
image: tensorflow-notebook
platform: aarch64
runsOn: ARM64
needs: [aarch64-scipy]

x86_64-tensorflow:
uses: ./.github/workflows/docker-build-test-upload.yml
with:
Expand Down Expand Up @@ -245,6 +254,7 @@ jobs:
minimal-notebook,
scipy-notebook,
r-notebook,
tensorflow-notebook,
datascience-notebook,
pyspark-notebook,
all-spark-notebook,
Expand All @@ -256,6 +266,7 @@ jobs:
aarch64-minimal,
aarch64-scipy,
aarch64-r,
aarch64-tensorflow,
aarch64-datascience,
aarch64-pyspark,
aarch64-all-spark,
Expand Down
11 changes: 0 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@ ALL_IMAGES:= \
pyspark-notebook \
all-spark-notebook

AARCH64_IMAGES:= \
docker-stacks-foundation \
base-notebook \
minimal-notebook \
r-notebook \
scipy-notebook \
datascience-notebook \
pyspark-notebook \
all-spark-notebook

# Enable BuildKit for Docker build
export DOCKER_BUILDKIT:=1

Expand All @@ -50,7 +40,6 @@ build/%: ## build the latest image for a stack using the system's architecture
@echo -n "Built image size: "
@docker images $(OWNER)/$(notdir $@):latest --format "{{.Size}}"
build-all: $(foreach I, $(ALL_IMAGES), build/$(I)) ## build all stacks
build-aarch64: $(foreach I, $(AARCH64_IMAGES), build/$(I)) ## build aarch64 stacks


check-outdated/%: ## check the outdated mamba/conda packages in a stack and produce a report (experimental)
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ This change is tracked in the issue [#1217](https://github.com/jupyter/docker-st

## CPU Architectures

- We publish containers for both `x86_64` and `aarch64` platforms, except for `tensorflow-notebook`, which only supports `x86_64` for now
- We publish containers for both `x86_64` and `aarch64` platforms
- Single-platform images have either `aarch64` or `x86_64` tag prefixes, for example, `jupyter/base-notebook:aarch64-python-3.10.5`
- Starting from `2022-09-21`, we create multi-platform images
- Starting from `2022-09-21`, we create multi-platform images (except `tensorflow-notebook`)
- Starting from `2023-06-01`, we create multi-platform `tensorflow-notebook` image as well

## Using old images

Expand Down
105 changes: 52 additions & 53 deletions docs/images/inherit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/using/selecting.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ The following diagram depicts the build dependency tree of the core images. (i.e
Any given image inherits the complete content of all ancestor images pointing to it.

[![Image inheritance
diagram](../images/inherit.svg)](http://interactive.blockdiag.com/?compression=deflate&src=eJyFj0FqxDAMRfc5hchqsvCuDFNCe4Lu2mVhUBKlNXGkYMtkMqV3r70pOLRk-_T-56tz0k-DxQ_4qgAGGjE6vY7CGuyd4Ake2yod6thF1vjOp5e3V1itfsIilhU8OcJATQ3mGYbURd4ExX4KZpTIA6oVbnP1P7ec61KDYVHqRKYsFyAbs2U7oyukPcte6O2yFVZJslMrcRA_Oll_eXpM2G1wu5yv54em_juZFmOixD0dLvEHK5YtLOinwtqz7KFzZm9-_wDZDphP)
diagram](../images/inherit.svg)](http://interactive.blockdiag.com/?compression=deflate&src=eJyFjjFuwzAMRXefgvDUDDpAYaQnyNaOBQraphPCCmlIFIy0yN0rdQggI4XX9x__Z-91mEfGM_w0ACNNmLx9TSoW-ZvgCK9d5hqYxNBYJaNFgwVk65octalPYulTXk4f77CyXXLOYhDIE0Y6tODeYMwrFFw0HOboJk0y_rWV8v-yctfnBidq1KvORa5AMa4sfEVfSVtWvDjwcqusmhSnNZKoYfK6Pnj7XM0vYqYkA-1Oh53Z5RYXDHNlbVnx0Hu3Ne-_7MWcxg)

### Builds

Expand Down

0 comments on commit a01a701

Please sign in to comment.