aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile7
-rwxr-xr-xbuild.sh1
-rwxr-xr-xbuildpackage.sh5
-rwxr-xr-xtestrun.sh13
4 files changed, 22 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 156d947..13bb9a3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
diff --git a/build.sh b/build.sh
index 4f4c609..6d733c3 100755
--- a/build.sh
+++ b/build.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