Skip to content

Commit d369492

Browse files
committed
update python container to 3.10
1 parent 8c678e0 commit d369492

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

jobs/tutorials/jobs-custom-exit-code/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG type
22

3-
FROM python:3.8-slim AS base
3+
FROM python:3.10-slim AS base
44

55
ENV DATASCIENCE_USER datascience
66
ENV DATASCIENCE_UID 1000

jobs/tutorials/jobs-custom-exit-code/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,32 @@ This folder contains following samples:
1111
- fail-code-exit.py - set your own error code
1212
- shell-with-exit.sh - demonstrates exit code usage in shell script
1313

14-
Build to test and run locally
14+
## Local Machine Test
1515

1616
```bash
1717
docker build --build-arg type=local -t exit-code .
1818
docker run --rm -v $PWD:/app exit-code python /app/fail-with-code.py
1919
```
2020

21-
Build to run as a job
21+
On Apple Silicon (M1...M3)
22+
```bash
23+
docker buildx build --platform linux/amd64 --build-arg type=local -t exit-code .
24+
docker run --rm -v $PWD:/app exit-code python /app/fail-with-code.py
25+
```
26+
27+
## Build for OCI DataScience Jobs
2228

2329
```bash
2430
docker build --build-arg type=remote -t exit-code .
2531
docker run --rm -v $PWD:/app exit-code
2632
```
2733

34+
On Apple Silicon (M1...M3)
35+
```bash
36+
docker buildx build --platform linux/amd64 --build-arg type=remote -t exit-code .
37+
docker run --rm -v $PWD:/app exit-code python /app/fail-with-code.py
38+
```
39+
2840
Tag and push to OCIR
2941

3042
```bash

jobs/tutorials/vscode-server-tunnel/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ARG type
22

3-
FROM python:3.8-slim AS base
3+
FROM python:3.10-slim AS base
44

55
ENV DATASCIENCE_USER datascience
66
ENV DATASCIENCE_UID 1000

jobs/tutorials/vscode-server-tunnel/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ To run the job on the OCI Data Science Service
7070

7171
#### OCIR Login
7272

73-
You may need to `docker login` to the Oracle Cloud Container Registry (OCIR) first, if you haven't done so before, to been able to push the image. To login you have to use your [API Auth Token](https://docs.oracle.com/en-us/iaas/Content/Registry/Tasks/registrygettingauthtoken.htm) that can be created under your `Oracle Cloud Account->Auth Token`. You need to login only once.
73+
You may need to `docker login` to the Oracle Cloud Container Registry (OCIR) first, if you haven't done so before, to been able to push the image. To login you have to use your [API Auth Token](https://docs.oracle.com/en-us/iaas/Content/Registry/Tasks/registrygettingauthtoken.htm) that can be created under your `Oracle Cloud Account->Auth Token`. You need to login only once. You can find all the Oracle Cloud Regions Keys at [Regions Documentation Page](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm)
7474

7575
```bash
7676
docker login -u '<tenant-namespace>/<username>' <region>.ocir.io

0 commit comments

Comments
 (0)