-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #425 from neilcook/luajit
Use OpenResty Luajit Package with wforce
- Loading branch information
Showing
37 changed files
with
724 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
9 | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Install the built rpms and test them | ||
FROM dist-base as dist | ||
# If you want to install extra packages or do generic configuration, | ||
# do it before the COPY. Either here, or in the dist-base layer. | ||
|
||
COPY --from=sdist /sdist /sdist | ||
COPY --from=package-builder /dist /dist | ||
|
||
# Install built packages with dependencies | ||
RUN apt install -y /dist/*.deb | ||
|
||
# Installation tests | ||
COPY builder-support/install-tests /wforce/builder-support/install-tests | ||
WORKDIR /wforce | ||
RUN builder-support/install-tests/test-simple-exec.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
builder-support/dockerfiles/Dockerfile.target.debian-bookworm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# First do the source builds | ||
@INCLUDE Dockerfile.target.sdist | ||
|
||
FROM debian:bookworm as dist-base | ||
ARG APT_URL | ||
RUN apt-get update && apt-get -y dist-upgrade | ||
|
||
@INCLUDE Dockerfile.debbuild | ||
|
||
# Do a test install and verify | ||
# Can be skipped with skiptests=1 in the environment | ||
@EXEC [ "$skiptests" = "" ] && include Dockerfile.debtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
/usr/bin/wforce --help >/dev/null | ||
/usr/bin/trackalert --help >/dev/null | ||
|
||
# isempty() is an extension only present in the OpenResty fork of LuaJIT, | ||
# the import will error in the original LuaJIT and Lua. | ||
/usr/bin/wforce-luajit -e 'local isempty = require "table.isempty" print(isempty({}))' | ||
|
||
# Check Lua modules are loaded | ||
/usr/bin/wforce-luajit -e 'require "elasticsearch" require "lualdap"' | ||
|
||
# Check that our lua-dist is the first libluajit that is found | ||
/sbin/ldconfig --print-cache | grep '/usr/share/wforce-lua-dist/lib/exported/libluajit' | ||
ldd /usr/bin/wforce | grep '/usr/share/wforce-lua-dist/lib/exported/libluajit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Source: wforce-lua-dist | ||
Maintainer: Neil Cook <[email protected]> | ||
Section: libs | ||
Priority: optional | ||
Standards-Version: 3.9.2 | ||
Build-Depends: libldap2-dev | ||
|
||
Package: wforce-lua-dist | ||
Section: libs | ||
Architecture: any | ||
Depends: ${shlibs:Depends}, ${misc:Depends} | ||
Description: PowerDNS Weakforced LuaJIT distribution |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/make -f | ||
# | ||
# See debhelper(7) (uncomment to enable) | ||
# output every command that modifies files on the build system. | ||
#DH_VERBOSE = 1 | ||
|
||
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/* | ||
DPKG_EXPORT_BUILDFLAGS = 1 | ||
include /usr/share/dpkg/default.mk | ||
|
||
%: | ||
dh $@ | ||
|
||
override_dh_auto_build: | ||
echo '/usr/share/wforce-lua-dist/lib/exported' >wforce-lua-dist.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
3.0 (quilt) | ||
|
Oops, something went wrong.