First commit. Everything working as intended.

This commit is contained in:
ameerhamzakhan committed 2022-11-17 20:58:22 +08:00
commit e47266f5bd
4 files changed
+38

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
ARG UBUNTU_VER
FROM ubuntu:${UBUNTU_VER}
ARG TARGETPLATFORM
RUN apt update
RUN apt install -y curl wget nano lsb-core nano
RUN apt install -y net-tools iputils-ping tcpdump traceroute iproute2 iptables
COPY scripts/entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
+5
View File
@@ -0,0 +1,5 @@
UBUNTU_VER=22.04 TAG=/ubuntu-$UBUNTU_VER:`date "+%Y-%m-%d"`
UBUNTU_VER=22.04 TAG=/ubuntu-$UBUNTU_VER:latest
UBUNTU_VER=22.04 TAG=:ubuntu-$UBUNTU_VER\_latest
UBUNTU_VER=22.04 TAG=:latest
+8
View File
@@ -0,0 +1,8 @@
echo Image TAG: $TAG
docker buildx build . \
-f Dockerfile \
--build-arg UBUNTU_VER \
-t registry.ahkhan.me/docker/ubuntu$TAG \
--platform linux/amd64,linux/arm64,linux/arm/v7 \
--push
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -x
term_handler() {
exit 143; # 128 + 15 -- SIGTERM
}
trap 'kill ${!}; term_handler' SIGTERM
tail -f /dev/null & wait ${!}