Skip to content

Commit 68c5981

Browse files
committed
fix: All fat flavors now include build systems and LuaRocks
Signed-off-by: Evan Wies <evan@neomantra.net>
1 parent 4e3dc46 commit 68c5981

4 files changed

Lines changed: 45 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
`docker-openresty` Changelog
22
============================
33

4+
## 1.29.2.2-2 (2026-03-26)
5+
6+
* `bookwork-fat` and `bullseye-fat` flavors now include build systems and LuaRocks (#295)
7+
48
## 1.29.2.2-1 (2026-03-25)
59

610
* Fix manifest for CI. `1.29.2.2-0` was never properly released.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Docker is a container management platform. OpenResty is a full-fledged web application server by
88
bundling the standard nginx core, lots of 3rd-party nginx modules, as well as most of their external dependencies.
99

10-
Thank you to [Travis CI](https://www.travis-ci.com) for donating their build infrastructure to this project for over seven years! We have since migrated to GitHub Actions.
10+
Thank you to [Travis CI](https://www.travis-ci.com) for donating their build infrastructure to this project for over seven years! We have since migrated to [GitHub Actions](https://github.com/openresty/docker-openresty/actions).
1111

1212
We provide a series of [pre-built images](#openresty-image-tags) for various operating systems. Some are built-from the upstream OpenResty pre-built images and some are built from source.
1313

bookworm/Dockerfile.fat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,35 @@ ARG RESTY_FAT_IMAGE_TAG="bookworm"
2121
ARG RESTY_FAT_DEB_FLAVOR=""
2222
ARG RESTY_FAT_DEB_VERSION="=1.29.2.2-1~bookworm1"
2323

24+
ARG RESTY_LUAROCKS_VERSION="3.13.0"
25+
2426
LABEL maintainer="Evan Wies <evan@neomantra.net>"
2527
LABEL resty_fat_deb_flavor="${RESTY_FAT_DEB_FLAVOR}"
2628
LABEL resty_fat_deb_version="${RESTY_FAT_DEB_VERSION}"
2729
LABEL resty_fat_image_base="${RESTY_FAT_IMAGE_BASE}"
2830
LABEL resty_fat_image_tag="${RESTY_FAT_IMAGE_TAG}"
31+
LABEL resty_luarocks_version="${RESTY_LUAROCKS_VERSION}"
2932

3033
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
3134
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
3235
-o Dpkg::Options::="--force-confold" \
3336
openresty-resty${RESTY_FAT_DEB_FLAVOR}${RESTY_FAT_DEB_VERSION} \
3437
openresty-opm${RESTY_FAT_DEB_FLAVOR}${RESTY_FAT_DEB_VERSION} \
38+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
39+
build-essential \
40+
ca-certificates \
41+
curl \
42+
make \
43+
unzip \
44+
&& curl -fSL https://luarocks.github.io/luarocks/releases/luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz -o luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
45+
&& tar xzf luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
46+
&& cd luarocks-${RESTY_LUAROCKS_VERSION} \
47+
&& ./configure \
48+
--prefix=/usr/local/openresty/luajit \
49+
--with-lua=/usr/local/openresty/luajit \
50+
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
51+
&& make build \
52+
&& make install \
53+
&& cd /tmp \
54+
&& rm -rf luarocks-${RESTY_LUAROCKS_VERSION} luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
3555
&& rm -rf /var/lib/apt/lists/*

bullseye/Dockerfile.fat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,35 @@ ARG RESTY_FAT_IMAGE_TAG="bullseye"
2121
ARG RESTY_FAT_DEB_FLAVOR=""
2222
ARG RESTY_FAT_DEB_VERSION="=1.29.2.2-1~bullseye1"
2323

24+
ARG RESTY_LUAROCKS_VERSION="3.13.0"
25+
2426
LABEL maintainer="Evan Wies <evan@neomantra.net>"
2527
LABEL resty_fat_deb_flavor="${RESTY_FAT_DEB_FLAVOR}"
2628
LABEL resty_fat_deb_version="${RESTY_FAT_DEB_VERSION}"
2729
LABEL resty_fat_image_base="${RESTY_FAT_IMAGE_BASE}"
2830
LABEL resty_fat_image_tag="${RESTY_FAT_IMAGE_TAG}"
31+
LABEL resty_luarocks_version="${RESTY_LUAROCKS_VERSION}"
2932

3033
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
3134
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
3235
-o Dpkg::Options::="--force-confold" \
3336
openresty-resty${RESTY_FAT_DEB_FLAVOR}${RESTY_FAT_DEB_VERSION} \
3437
openresty-opm${RESTY_FAT_DEB_FLAVOR}${RESTY_FAT_DEB_VERSION} \
38+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
39+
build-essential \
40+
ca-certificates \
41+
curl \
42+
make \
43+
unzip \
44+
&& curl -fSL https://luarocks.github.io/luarocks/releases/luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz -o luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
45+
&& tar xzf luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
46+
&& cd luarocks-${RESTY_LUAROCKS_VERSION} \
47+
&& ./configure \
48+
--prefix=/usr/local/openresty/luajit \
49+
--with-lua=/usr/local/openresty/luajit \
50+
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
51+
&& make build \
52+
&& make install \
53+
&& cd /tmp \
54+
&& rm -rf luarocks-${RESTY_LUAROCKS_VERSION} luarocks-${RESTY_LUAROCKS_VERSION}.tar.gz \
3555
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)