@@ -15,10 +15,13 @@ DCT_PIP="$HOME/.cache/pip"
15
15
DCT_BUILD=" $HOME /build"
16
16
```
17
17
18
+ The git directory matchs to the local directory that contains the git repositories.
19
+ The build directory matchs to the local directory where the archive is created.
20
+
18
21
And the command :
19
22
20
23
``` sh
21
- docker run --rm=true -it --env " USER_UID=$( id -u) " --env " USER_GID=$( id -g) " --volume " $DCT_PIP :/home/builder/.cache/pip/" --volume " $DCT_GIT :/home/builder/git/" --volume " $DCT_TDP :/home/builder/build" --workdir /home/builder/ < image >
24
+ docker run --rm=true -it --env " USER_UID=$( id -u) " --env " USER_GID=$( id -g) " --volume " $DCT_PIP :/home/builder/.cache/pip/" --volume " $DCT_GIT :/home/builder/git/" --volume " $DCT_BUILD :/home/builder/build" --workdir /home/builder/ tdp_builder_python
22
25
```
23
26
24
27
## Sourcing the NodeJS environment
@@ -35,12 +38,12 @@ If you haven't cloned the repository before, do it, otherwise, it should be moun
35
38
In addition to the git repository, create the requirement file to generate wheel files. The requirement file must contain :
36
39
37
40
``` sh
38
- pip> =21.3.1
41
+ echo " pip>=21.3.1
39
42
jupyterhub-traefik-proxy==0.3.0
40
43
jupyterhub_ldapauthenticator==1.3.2
41
44
oauthenticator==15.1.0
42
45
jupyterhub_yarnspawner==0.4.0
43
- psycopg2-binary==2.8.6
46
+ psycopg2-binary==2.8.6" > $HOME /build/requirements.txt
44
47
```
45
48
46
49
## Generate wheels
@@ -54,6 +57,7 @@ python3.6 -m pip wheel --wheel-dir $HOME/build/dependencies/ --requirement $HOME
54
57
Get the binary for traeffik and change its permissions
55
58
56
59
``` sh
60
+ mkdir $HOME /build/bin
57
61
curl -L --output $HOME /build/bin/traefik " https://github.com/traefik/traefik/releases/download/v1.7.29/traefik_linux-amd64"
58
62
chmod 755 $HOME /build/bin/traefik
59
63
```
@@ -63,15 +67,16 @@ chmod 755 $HOME/build/bin/traefik
63
67
Add the next line :
64
68
65
69
``` sh
66
- jupyterhub==2.3.1
70
+ echo " jupyterhub==2.3.1" >> $HOME /build/requirements.txt
67
71
```
68
72
69
73
## Create archive
70
74
71
75
Create the archive with wheel files, the requirement file and the traeffik binary, then create the checksum
72
76
73
77
``` sh
74
- tar cf jupyterhub-2.3.1-0.0.tar.gz $HOME /build
78
+ cd $HOME
79
+ tar cf jupyterhub-2.3.1-0.0.tar.gz build/
75
80
sha256sum jupyterhub-2.3.1-0.0.tar.gz | sed ' s#.*/# #' > jupyterhub-2.3.1-0.0.tar.gz.sha256
76
81
```
77
82
0 commit comments