Instructions for Alpine container

master
brian 3 years ago
parent b18a10ac14
commit 9bd0bbd43b

@ -5,22 +5,21 @@ Code for what once was piazzaoptical.com. Backend and frontend.
## To use: ## To use:
```bash ```bash
podman run -it --rm -p 8000:8000 docker.io/ podman run -it --rm -p 8000:8000 docker.io/library/alpine:3.14 # v3.15 can't seem to work with package "bsd-compat-headers"
``` ```
Then: Then within the container:
```bash ```bash
apt update apk add --no-cache build-base bsd-compat-headers m4 openssl-dev libmagic libuuid lmdb lmdb-dev git readline-dev autoconf automake libtool zlib-dev vips ncurses wget unzip openssl bash
apt install m4 libssl-dev
apt install libmagic-dev uuid-dev liblmdb-dev
apt install git # for lua_uuid
luarocks install luarocks-fetch-gitrec # for magic
apt install libreadline-dev # for luaprompt
git config --global url."https://".insteadOf git:// # for luarocks pulling from github; it uses unencrypted git config --global url."https://".insteadOf git:// # for luarocks pulling from github; it uses unencrypted
apt install autoconf libtool libz-dev # for magic git clone https://git.sakal.us/brian/luaver.git ~/.luaver
apt install libvips42 && ln -s /usr/lib/x86_64-linux-gnu/libvips.so.42 /usr/lib/x86_64-linux-gnu/libvips.so bash
apt install lua5.1 # for cqueues ```
Then in `bash` shell (not the default `ash`):
```bash
luarocks install compat53 luarocks install compat53
luarocks install cqueues luarocks install cqueues
luarocks install lpeg luarocks install lpeg

Loading…
Cancel
Save