Mercurial > hg > config
annotate bin/install-k0s-web.sh @ 918:9d89288e3b4c
add script for k0s.org web install
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 02 Jun 2024 14:39:08 -0700 |
parents | |
children | cc3b78bc4c21 |
rev | line source |
---|---|
918
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
1 #!/usr/bin/env bash |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
2 |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
3 set -exuo pipefail |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
4 |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
5 PYTHON_VERSION="3.7" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
6 |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
7 # TODO: take this from "$1" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
8 DEST="${HOME}/web3" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
9 rm -rf "${DEST}" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
10 |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
11 mkdir -p "${DEST}" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
12 cd "${DEST}" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
13 pyenv install "${PYTHON_VERSION}" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
14 pyenv local "${PYTHON_VERSION}" |
9d89288e3b4c
add script for k0s.org web install
Jeff Hammel <k0scist@gmail.com>
parents:
diff
changeset
|
15 python --version |