@@ -15,10 +15,13 @@ DCT_PIP="$HOME/.cache/pip"
1515DCT_BUILD=" $HOME /build"
1616```
1717
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+
1821And the command :
1922
2023``` 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
2225```
2326
2427## Sourcing the NodeJS environment
@@ -35,12 +38,12 @@ If you haven't cloned the repository before, do it, otherwise, it should be moun
3538In addition to the git repository, create the requirement file to generate wheel files. The requirement file must contain :
3639
3740``` sh
38- pip> =21.3.1
41+ echo " pip>=21.3.1
3942jupyterhub-traefik-proxy==0.3.0
4043jupyterhub_ldapauthenticator==1.3.2
4144oauthenticator==15.1.0
4245jupyterhub_yarnspawner==0.4.0
43- psycopg2-binary==2.8.6
46+ psycopg2-binary==2.8.6" > $HOME /build/requirements.txt
4447```
4548
4649## Generate wheels
@@ -54,6 +57,7 @@ python3.6 -m pip wheel --wheel-dir $HOME/build/dependencies/ --requirement $HOME
5457Get the binary for traeffik and change its permissions
5558
5659``` sh
60+ mkdir $HOME /build/bin
5761curl -L --output $HOME /build/bin/traefik " https://github.com/traefik/traefik/releases/download/v1.7.29/traefik_linux-amd64"
5862chmod 755 $HOME /build/bin/traefik
5963```
@@ -63,15 +67,16 @@ chmod 755 $HOME/build/bin/traefik
6367Add the next line :
6468
6569``` sh
66- jupyterhub==2.3.1
70+ echo " jupyterhub==2.3.1" >> $HOME /build/requirements.txt
6771```
6872
6973## Create archive
7074
7175Create the archive with wheel files, the requirement file and the traeffik binary, then create the checksum
7276
7377``` 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/
7580sha256sum jupyterhub-2.3.1-0.0.tar.gz | sed ' s#.*/# #' > jupyterhub-2.3.1-0.0.tar.gz.sha256
7681```
7782
0 commit comments