Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 40cb279e2e | |||
| da754ca754 | |||
| ae99faf486 | |||
|
|
a51f619dbe | ||
| 6f4a6fdedc | |||
| 143d912da8 | |||
| edeb0d808e |
@@ -16,6 +16,9 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: gitea/runner-images:ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
name: Run Actions
|
|
||||||
run-name: ${{ gitea.actor }} compiles
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
- main
|
|
||||||
tags:
|
|
||||||
- '*.*.*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-push-image:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
packages: write
|
|
||||||
steps:
|
|
||||||
- name: Dump Environment Variables
|
|
||||||
run: |
|
|
||||||
env | sort
|
|
||||||
37
Dockerfile
37
Dockerfile
@@ -1,7 +1,7 @@
|
|||||||
FROM rockylinux:9
|
FROM rockylinux/rockylinux:9
|
||||||
|
|
||||||
RUN dnf update -y && \
|
RUN dnf update -y
|
||||||
dnf install -y \
|
RUN dnf install -y \
|
||||||
iputils \
|
iputils \
|
||||||
iproute \
|
iproute \
|
||||||
iperf3 \
|
iperf3 \
|
||||||
@@ -11,14 +11,39 @@ RUN dnf update -y && \
|
|||||||
which \
|
which \
|
||||||
vim \
|
vim \
|
||||||
jq \
|
jq \
|
||||||
python3-pip && \
|
createrepo_c \
|
||||||
dnf group install -y "Development Tools" && \
|
golang \
|
||||||
|
python3-pip \
|
||||||
|
curl \
|
||||||
|
git \
|
||||||
|
tree \
|
||||||
|
htop \
|
||||||
|
tmux \
|
||||||
|
screen \
|
||||||
|
nano \
|
||||||
|
unzip \
|
||||||
|
tar \
|
||||||
|
gzip \
|
||||||
|
rsync \
|
||||||
|
nmap-ncat \
|
||||||
|
telnet \
|
||||||
|
bind-utils \
|
||||||
|
tcpdump \
|
||||||
|
strace \
|
||||||
|
lsof \
|
||||||
|
openssh-clients \
|
||||||
|
nodejs \
|
||||||
|
rsync \
|
||||||
|
npm
|
||||||
|
RUN dnf group install -y "Development Tools" && \
|
||||||
dnf clean all && \
|
dnf clean all && \
|
||||||
case "$(uname -m)" in \
|
case "$(uname -m)" in \
|
||||||
x86_64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" -O /usr/local/bin/yq ;; \
|
x86_64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64" -O /usr/local/bin/yq ;; \
|
||||||
aarch64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64" -O /usr/local/bin/yq ;; \
|
aarch64) wget "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_arm64" -O /usr/local/bin/yq ;; \
|
||||||
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
|
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
|
||||||
esac && \
|
esac && \
|
||||||
chmod +x /usr/local/bin/yq
|
chmod +x /usr/local/bin/yq && \
|
||||||
|
echo "alias ll='ls -l --color=auto'" >> /root/.bashrc && \
|
||||||
|
echo "alias ls='ls --color=auto'" >> /root/.bashrc
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
Reference in New Issue
Block a user