Skip to content

Commit e529915

Browse files
authored
Symlink invoke command to support existing projects (#13629)
1 parent 2eefe21 commit e529915

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

entrypoint.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
# Exit script in case of error
44
set -e
5-
source /usr/src/venv/bin/activate
65

76
INVOKE_LOG_STDOUT=${INVOKE_LOG_STDOUT:-FALSE}
87
invoke () {

scripts/docker/base/ubuntu/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,14 @@ RUN . /usr/src/venv/bin/activate
3535
RUN pip3 install uwsgi \
3636
&& pip install pip --upgrade \
3737
&& pip install wheel==0.38.1 \
38+
&& pip install invoke==2.2.0 \
3839
&& pip install GDAL==3.8.4
3940

41+
# Create symlink for "invoke" command
42+
# Required after installing via pip inside a virtualenv and avoid changing the
43+
# entrypoint.sh in existing GeoNode Projects where /usr/local/bin/invoke is used
44+
RUN ln -s $(which invoke) /usr/local/bin/invoke
45+
4046
# Install "sherlock" to be used with "memcached"
4147
RUN pip install sherlock
4248

0 commit comments

Comments
 (0)