-
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.
Add simple post-install package tests
- Loading branch information
Showing
9 changed files
with
54 additions
and
2 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
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
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
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' |