-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker test suite, include debian 12 to start
- Loading branch information
Showing
7 changed files
with
65 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ hs_err* | |
sample_run | ||
.kotlin | ||
sample_output* | ||
sample*.jar |
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,2 @@ | ||
*/sample/* | ||
*/sample/run_samples.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM debian:12.1-slim | ||
ENV JAVA_HOME=/opt/java/openjdk | ||
COPY --from=eclipse-temurin:22 $JAVA_HOME $JAVA_HOME | ||
ENV PATH="${JAVA_HOME}/bin:${PATH}" | ||
|
||
COPY sample /opt/sample | ||
COPY run_samples.sh /opt/run_samples.sh | ||
|
||
RUN apt update && apt install libvips-dev -y | ||
|
||
WORKDIR /opt | ||
CMD ./run_samples.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
set -eou pipefail | ||
|
||
echo "building samples..." | ||
./gradlew sample:clean sample:shadowJar | ||
|
||
echo "running docker tests..." | ||
WORKSPACE_DIR="$PWD" | ||
|
||
pushd docker_tests/debian-12 | ||
cp -r "$WORKSPACE_DIR"/sample . | ||
cp "$WORKSPACE_DIR"/run_samples.sh . | ||
docker build -t vips-ffm-debian-test . | ||
docker run vips-ffm-debian-test | ||
popd |
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