Galera, to passando um perrengue desgraçado pra instalar essa bagaça.
Sigo os passos da documentação (no link) e não consigo me livrar de um erro durante o docker compose build:
=> ERROR [django 14/15] RUN yes w | pip install --src /usr/src -r requirements.txt && yes w | pip install -e . 31.3s
[django 14/15] RUN yes w | pip install --src /usr/src -r requirements.txt && yes w | pip install -e .: 0.823 Obtaining django_geonode_mapstore_client from git+https://github.com/GeoNode/geonode-mapstore-client.git@master#egg=django_geonode_mapstore_client (from -r requirements.txt (line 1)) 0.824 Cloning https://github.com/GeoNode/geonode-mapstore-client.git (to revision master) to /usr/src/django-geonode-mapstore-client 0.830 Running command git clone --filter=blob:none --quiet https://github.com/GeoNode/geonode-mapstore-client.git /usr/src/django-geonode-mapstore-client 4.824 Resolved https://github.com/GeoNode/geonode-mapstore-client.git to commit 47c8f6a31d4f545036c602f1d9aa4776156d47fa 4.824 Running command git submodule update --init --recursive -q 28.49 Installing build dependencies: started 29.62 Installing build dependencies: finished with status ‘done’ 29.63 Checking if build backend supports build_editable: started 30.08 Checking if build backend supports build_editable: finished with status ‘done’ 30.08 Getting requirements to build editable: started 30.48 Getting requirements to build editable: finished with status ‘done’ 30.49 Preparing editable metadata (pyproject.toml): started 30.83 Preparing editable metadata (pyproject.toml): finished with status ‘done’ 30.84 Obtaining GeoNode from git+https://github.com/GeoNode/geonode.git@master#egg=GeoNode (from -r requirements.txt (line 2)) 30.84 WARNING: Directory /usr/src/geonode already exists, and is not a git clone. 30.84 What to do? (i)gnore, (w)ipe, (b)ackup WARNING: The plan is to install the git repository https://github.com/GeoNode/geonode.git 30.84 WARNING: Deleting /usr/src/geonode 30.85 ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory 30.85 30.99 30.99 [notice] A new release of pip is available: 25.2 -> 25.3 30.99 [notice] To update, run: pip install --upgrade pip
Dockerfile:40
39 |
40 | >>> RUN yes w | pip install --src /usr/src -r requirements.txt &&\
41 | >>> yes w | pip install -e .
42 |
target django: failed to solve: process “/bin/sh -c yes w | pip install --src /usr/src -r requirements.txt && yes w | pip install -e .” did not complete successfully: exit code: 1
Já que a documentação não fala TODOS os passsos, eu tenho que adivinhar (já que não manjo tanto) quando precisa trocar de diretório. Então meus passos foram:
git clone https://github.com/GeoNode/geonode-project.git cd geonode-project git checkout -b 4.2.2 source /usr/share/virtualenvwrapper/virtualenvwrapper.sh mkvirtualenv --python=/usr/bin/python3 geonode pip install Django==3.2.13 cd … django-admin startproject --template=./geonode-project -e py,sh,md,rst,json,yml,ini,env,sample,properties -n monitoring-cron -n Dockerfile geonode
Nesse ponto, um diretório “geonode” foi criado. Então: cd geonode python create-envfile.py docker compose build
Mas ai dá esse erro acima…. Alguma dica?

