diff options
-rw-r--r-- | Dockerfile | 7 | ||||
-rwxr-xr-x | build.sh | 1 | ||||
-rwxr-xr-x | buildpackage.sh | 5 | ||||
-rwxr-xr-x | testrun.sh | 13 |
4 files changed, 22 insertions, 4 deletions
@@ -1,15 +1,16 @@ FROM archlinux:base-devel RUN pacman --noconfirm -Syu -ARG AUR_RPC_BASE_URL="https://aur.archlinux.org/rpc/v5" +ARG AUR_RPC_BASE_URL="https://aur.archlinux.org/rpc/" ARG PACKAGE_NAME="" ARG BUILD_ALL_AUR_DEPENDS="no" -RUN mkdir /pkgout +RUN mkdir /pkgout /db VOLUME /pkgout +VOLUME /db RUN pacman --noconfirm -S python python-requests COPY --chown=root:root buildpackage.sh /buildpackage.sh -CMD /buildpackage.s $PACKAGE_URL +CMD /buildpackage.sh @@ -1,4 +1,5 @@ #!/bin/bash docker pull archlinux:base-devel +#docker build --no-cache -t archpkg . docker build -t archpkg . diff --git a/buildpackage.sh b/buildpackage.sh index 87c31a4..1de569b 100755 --- a/buildpackage.sh +++ b/buildpackage.sh @@ -1,4 +1,7 @@ #!/bin/bash +echo "BUILDING: $PACKAGE_NAME" +echo "Build Deps: $BUILD_ALL_AUR_DEPENDS" -echo Building OwO +ls -l /db +ls -l /pkgout diff --git a/testrun.sh b/testrun.sh new file mode 100755 index 0000000..e400469 --- /dev/null +++ b/testrun.sh @@ -0,0 +1,13 @@ +#!/bin/bash + + +mkdir -p testrun/db +mkdir -p testrun/pkgout + +./build.sh + +docker run --name archpkg-test --env PACKAGE_NAME=python-octodns \ + -v $(pwd)/testrun/db:/db -v $(pwd)/testrun/pkgout:/pkgout \ + archpkg + +docker rm archpkg-test |