Setup development environment on a remote server by docker image

Dear all:
I’m trying to set up dev environment on a remote server(debian) and I prefer to code with VIM instead of VSCode.

  1. i’ve set up a basic env by followingBench Repository . now I can see 4 services are setup: frappe, redis-queue, redis-cache, and maria db.
  2. I get into frappe service by
    docker exec -e "TERM=xterm-256color" -w /workspace/development -it eshop-frappe-1 bash
  3. i try to create my own app by following the tutorial and get errors after this step.
    bench init frappe-bench
/bin/sh: 1: redis-server: not found
Traceback (most recent call last):
  File "/home/frappe/.bench/bench/commands/make.py", line 75, in init
    init(
  File "/home/frappe/.bench/bench/utils/render.py", line 105, in wrapper_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.bench/bench/utils/system.py", line 70, in init
    bench.setup.config(
  File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.bench/bench/bench.py", line 384, in config
    generate_config(self.bench.name)
  File "/home/frappe/.bench/bench/config/redis.py", line 15, in generate_config
    redis_version = get_redis_version()
                    ^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.bench/bench/config/redis.py", line 73, in get_redis_version
    version_string = subprocess.check_output("redis-server --version", shell=True)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frappe/.pyenv/versions/3.11.6/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'redis-server --version' returned non-zero exit status 127.

ERROR: There was a problem while creating frappe-bench

so is any idea on this error? or am I on the correct way to develop on a remote server?

i fixed this by running this script in step 3.