-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup_container.sh
44 lines (30 loc) · 1.43 KB
/
setup_container.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/ash
# install man
apk add man man-pages mdocml-apropos less less-doc
export PAGER=less
# install bash
apk add bash bash-doc bash-completion
# install curl
apk add curl curl-doc
# install git
apk add git git-doc
# install gcc and some libs
apk add build-base gcc-doc
# explicitly install patch (the one with Alpine's build-base doesn't support force) to fix: patch: unrecognized option: force
apk add patch
# install zlib source to fix: zipimport.ZipImportError: can't decompress data; zlib not available
apk add zlib-dev
# install libffi source to fix: ModuleNotFoundError: No module named '_ctypes'
apk add libffi-dev
# install linux headers to fix: ModuleNotFoundError: No module named '_socket'
apk add linux-headers
# install readline source to fix: WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
apk add readline-dev
# install openssl and source to fix: ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
apk add openssl openssl-dev
# install sqlite source to fix: WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?
apk add sqlite-dev
# install bzip source to fix: WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
apk add bzip2-dev
# install pyenv pyenv-doctor pyenv-installer pyenv-update pyenv-virtualenv pyenv-which-ext
curl https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash