2024-09-21 14:39:41 +00:00
Commands I executed for testing the build of cmatrix in a alpine-based docker container.
2024-09-21 14:42:28 +00:00
The workflow: These can be copied to a plain Dockerfile (with only the alpine base and possibly author info already defined) and then cleaned to a single RUN command.
2024-09-21 14:40:24 +00:00
```sh
2024-09-21 14:47:08 +00:00
#git
2024-09-21 14:39:41 +00:00
apk update
apk add git
git clone https://git.privacynerd.de/Mirrors/cmatrix.git
cd cmatrix/
2024-09-21 14:47:08 +00:00
#autoreconf -i # skip if using released tarball
2024-09-21 14:39:41 +00:00
apk add --no-cache autoconf
2024-09-21 14:47:08 +00:00
#autoreconf -i # skip if using released tarball
2024-09-21 14:39:41 +00:00
apk add --no-cache automake
autoreconf -i # skip if using released tarball
2024-09-21 14:47:08 +00:00
#./configure
#autoreconf -i # skip if using released tarball
#echo $?
#./configure LDFLAGS="-static" # for static compilation
2024-09-21 14:39:41 +00:00
apk add alpine-sdk # base compilers
2024-09-21 14:47:08 +00:00
#./configure LDFLAGS="-static" # for static compilation
#apk add ncurses
#./configure LDFLAGS="-static" # for static compilation
#apk add ncurses ncurses-dev
#./configure LDFLAGS="-static" # for static compilation
#apk add ncurses ncurses-dev ncurses-static
#./configure LDFLAGS="-static" # for static compilation
2024-09-21 14:39:41 +00:00
apk add ncurses-dev ncurses-static
2024-09-21 14:47:08 +00:00
#./configure LDFLAGS="-static" # for static compilation
#mkdir /usr/lib/kbd/consolefonts /usr/share/consolefonts
2024-09-21 14:39:41 +00:00
mkdir /usr/lib/kbd/consolefonts -p
mkdir /usr/share/consolefonts -p
./configure LDFLAGS="-static" # for static compilation
make
./cmatrix
2024-09-21 14:47:08 +00:00
#./cmatrix -b
#history
2024-09-21 14:42:28 +00:00
```