First commit. Everything working as intended.
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
TAG_LIST.txt
Normal file
5
TAG_LIST.txt
Normal 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
build_command.sh
Executable file
8
build_command.sh
Executable 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
scripts/entrypoint.sh
Executable file
10
scripts/entrypoint.sh
Executable 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 ${!}
|
||||||
Reference in New Issue
Block a user