aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.pxe/build.sh
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-07-13 08:42:42 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-07-13 09:23:55 +0000
commitefe51d995a9d736ce194dbd1c850d4a09e0a1506 (patch)
treeff3cf08ce37caaf9579a86d5b8ea558af9197980 /fdio.infra.pxe/build.sh
parent192e1ac1f274d8eed3d33cdbc15fa995a74247c7 (diff)
feat(packer): Cleanup
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I947f0e349584c3688e207a910e0debfc87562af6
Diffstat (limited to 'fdio.infra.pxe/build.sh')
-rwxr-xr-xfdio.infra.pxe/build.sh45
1 files changed, 0 insertions, 45 deletions
diff --git a/fdio.infra.pxe/build.sh b/fdio.infra.pxe/build.sh
deleted file mode 100755
index bd28a4227f..0000000000
--- a/fdio.infra.pxe/build.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-
-# Clean.
-docker container rm --force pxe-dnsmasq
-docker image rm pxe-dnsmasq
-docker container rm --force pxe-nginx
-docker image rm pxe-nginx
-
-# Build.
-docker build \
- --network host \
- --build-arg HTTP_PROXY="$http_proxy" \
- --build-arg HTTPS_PROXY="$http_proxy" \
- --build-arg NO_PROXY="$no_proxy" \
- --build-arg http_proxy="$http_proxy" \
- --build-arg https_proxy="$http_proxy" \
- --build-arg no_proxy="$no_proxy" \
- --tag pxe-dnsmasq docker-dnsmasq/.
-
-docker build \
- --build-arg HTTP_PROXY="$http_proxy" \
- --build-arg HTTPS_PROXY="$http_proxy" \
- --build-arg NO_PROXY="$no_proxy" \
- --build-arg http_proxy="$http_proxy" \
- --build-arg https_proxy="$http_proxy" \
- --build-arg no_proxy="$no_proxy" \
- --tag pxe-nginx docker-nginx/.
-
-# Run.
-docker run \
- --rm \
- --detach \
- --publish 8081:80 \
- --name pxe-nginx \
- pxe-nginx
-
-docker run \
- --rm \
- --detach \
- --net host \
- --name pxe-dnsmasq \
- --env "E_INT=$(ip -o -4 route show to default | awk '{print $5}')" \
- --env "E_ADD=$(hostname -I | awk '{print $1}')" \
- --cap-add NET_ADMIN \
- pxe-dnsmasq \ No newline at end of file