adding in bazel build

Trying to get Bazel to build containers.
This commit is contained in:
2023-04-10 22:34:38 +00:00
parent 9f492fb42b
commit 660be935ef
9 changed files with 172 additions and 6 deletions

2
packer/BUILD Normal file
View File

@@ -0,0 +1,2 @@
load("@io_bazel_rules_docker//container:container.bzl", "container_image")
load("@io_bazel_rules_docker//contrib:test.bzl", "container_test")

View File

@@ -2,11 +2,12 @@
FROM ubuntu:22.04
LABEL org.opencontainers.image.authors=kyle@imap.cc
ONBUILD RUN apt-get update && apt-get install git bash
RUN apt-get update && apt-get -y install git curl sudo
RUN git clone https://git.wntrmute.dev/kyle/bladerunner
RUN bladerunner/tools/install-go.sh
ADD . packer
WORKDIR packer
RUN ./install-packer.sh
ENTRYPOINT ["/usr/bin/env", "bash"]

View File

@@ -10,6 +10,7 @@ UPSTREAM="https://github.com/mkaczanowski/packer-builder-arm"
UPGRADE="false"
prep () {
sudo apt-get update && sudo apt-get -y install git unzip qemu-user-static e2fsprogs dosfstools 'bsdtar|libarchive-tools'
mkdir -p build
pushd build
}
@@ -40,7 +41,7 @@ install_packer_builder_arm () {
popd
}
cleanup {
cleanup () {
popd
}