File: README.md

package info (click to toggle)
python-autobahn 22.7.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,404 kB
  • sloc: python: 38,356; javascript: 2,705; makefile: 905; ansic: 371; sh: 63
file content (92 lines) | stat: -rw-r--r-- 1,809 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Docker Images

## Using

Use one of the following variants to select the desired image variant:

```
docker run -it --rm crossbario/autobahn-python:<PYTHON>-<ARCH>-<VERSION><COMMIT>
```

with `PYTHON: cpy, pypy` and `ARCH: amd64, arm64v8`, eg

1. `docker run -it --rm crossbario/autobahn-python:cpy-amd64`
1. `docker run -it --rm crossbario/autobahn-python:cpy-amd64-21.2.2.dev2`
1. `docker run -it --rm crossbario/autobahn-python:cpy-amd64-21.2.2.dev2-20210213-7a3dce63`

To auto-select `ARCH` using Docker Manifest, eg

1. `docker run -it --rm crossbario/autobahn-python:cpy`

## Building

Docker images are built automatically from the [docker workflow](../github/workflows/docker.yml),
which is triggered after a PR was merged to master.

To manually build the Docker images, go to the root folder of this repository and set the build variables

```
source versions.sh
cd docker
make install_qemu
make copy_qemu
```

then change to the `docker` subfolder and install Qemu

```
cd docker
make install_qemu
make copy_qemu
```

To build from the wheels published to our S3 bucket

```
make clean_wheels
make download_wheels
```

To build the current library into a wheel and use that in the Docker image

```
make build_this_wheel
```

Then, to build and test a Docker image variant

```
make build_cpy_amd64
make test_cpy_amd64
```

```
make build_this_wheel build_cpy_amd64 test_cpy_amd64
```

You can mix `cpy` or `pypy` for the Python flavor, with `amd64` and `arm64` for the CPU architecture.

To repeat a development cycle

To build, test and then publish all image flavors

```
make build
make test
make publish
```


## Checking built images

To show the Docker image hashes and tags:

```
clear && make show list
```

To test the Docker images and print version infos:

```
clear && make test
```