File tree Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/bash
2
- IMAGE_NAME=msal:latest
3
2
4
- docker build -t $IMAGE_NAME - < Dockerfile
3
+ # Error out if there is less than 1 argument
4
+ if [ " $# " -lt 1 ]; then
5
+ echo " Usage: $0 <Python_image> [command]"
6
+ echo " Example: $0 python:3.14.0a2-slim bash"
7
+ exit 1
8
+ fi
5
9
6
- echo " === Integration Test for Python 3.14 which has no AppImage yet ==="
10
+ # We will get a standard Python image from the input,
11
+ # so that we don't need to hard code one in a Dockerfile
12
+ IMAGE_NAME=$1
13
+
14
+ echo " === Starting $IMAGE_NAME (especially those which have no AppImage yet) ==="
7
15
echo " After seeing the bash prompt, run the following to test:"
16
+ echo " apt update && apt install -y gcc libffi-dev # Needed in Python 3.14.0a2-slim"
8
17
echo " pip install -e ."
9
18
echo " pytest --capture=no -s tests/chosen_test_file.py"
10
19
docker run --rm -it \
11
20
--privileged \
12
21
-w /home -v $PWD :/home \
13
22
$IMAGE_NAME \
14
- $@
23
+ $2
15
24
You can’t perform that action at this time.
0 commit comments