comparison bin/install-k0s-web.sh @ 919:cc3b78bc4c21

install k0s.org requirements
author Jeff Hammel <k0scist@gmail.com>
date Sun, 02 Jun 2024 14:57:09 -0700
parents 9d89288e3b4c
children 531a7200649f
comparison
equal deleted inserted replaced
918:9d89288e3b4c 919:cc3b78bc4c21
6 6
7 # TODO: take this from "$1" 7 # TODO: take this from "$1"
8 DEST="${HOME}/web3" 8 DEST="${HOME}/web3"
9 rm -rf "${DEST}" 9 rm -rf "${DEST}"
10 10
11 # Make a directory for k0s.org web
11 mkdir -p "${DEST}" 12 mkdir -p "${DEST}"
12 cd "${DEST}" 13 cd "${DEST}"
13 pyenv install "${PYTHON_VERSION}" 14
15 # Install the proper version of Python with pyenv
16 # See https://github.com/pyenv/pyenv/wiki#suggested-build-environment
17 pyenv install --skip-existing "${PYTHON_VERSION}"
14 pyenv local "${PYTHON_VERSION}" 18 pyenv local "${PYTHON_VERSION}"
15 python --version 19 python --version
20
21 # Create a virtual environment
22 python -m venv .
23
24 # Activate the virtual environment
25 . bin/activate
26
27 # Install the required packages
28 bin/pip install --upgrade pip
29 bin/pip install -r "${HOME}"/web/requirements.txt