From 08a1ce6c54e3c9583219a6762f076b19092ef1a8 Mon Sep 17 00:00:00 2001
From: Levente Polyak <anthraxx@archlinux.org>
Date: Sat, 14 Oct 2023 20:03:49 +0200
Subject: [PATCH] feat(make): add network parameter for debugging and dev
 environment

This allows to easily override the disabled networking, like passing the
host network to have a simple development environment.
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 45fb85a..4cb0965 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
 IMAGE:=dbscripts/test
-RUN_OPTIONS:=--rm --network=none -v $(PWD):/dbscripts:ro --tmpfs=/tmp:exec -w /dbscripts/test
+NETWORK:=none
+RUN_OPTIONS:=--rm --network=$(NETWORK) -v $(PWD):/dbscripts:ro --tmpfs=/tmp:exec -w /dbscripts/test
 CASES ?= cases
 JOBS ?= $(shell nproc)
 BATS_ARGS ?= --jobs $(JOBS) --verbose-run
-- 
GitLab