1 Commits
0.0.9 ... add

Author SHA1 Message Date
ef1541202c Update Dockerfile 2025-06-21 10:07:05 -05:00
2 changed files with 14 additions and 34 deletions

View File

@@ -10,11 +10,14 @@ on:
workflow_dispatch:
env:
REGISTRY: gitea.sjs.io
IMAGE_NAME: rocky-dev
jobs:
build-and-push:
runs-on: ubuntu-latest
container:
image: gitea/runner-images:ubuntu-latest
permissions:
contents: read
@@ -33,7 +36,7 @@ jobs:
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: ${{ vars.REGISTRY }}
registry: ${{ env.REGISTRY }}
username: ${{ vars.USERNAME }}
password: ${{ secrets.PASS }}
@@ -41,7 +44,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ vars.REGISTRY }}/${{ vars.USERNAME }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ vars.USERNAME }}/${{ env.IMAGE_NAME }}
tags: |
# Only tag with version and latest on tag push
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags/') }}

View File

@@ -1,6 +1,6 @@
FROM rockylinux/rockylinux:9
FROM rockylinux:9
RUN dnf install -y epel-release && \
RUN dnf update -y && \
dnf install -y \
iputils \
iproute \
@@ -11,39 +11,16 @@ RUN dnf install -y epel-release && \
which \
vim \
jq \
sysstat \
createrepo_c \
golang \
python3-pip \
git \
tree \
tmux \
nano \
unzip \
tar \
gzip \
rsync \
nmap-ncat \
telnet \
bind-utils \
tcpdump \
strace \
lsof \
openssh-clients \
nodejs \
npm && \
python3-pip && \
dnf group install -y "Development Tools" && \
dnf clean all
RUN set -e && \
ARCH=$(uname -m) && \
case "$ARCH" in \
x86_64) YQ_ARCH="amd64" ;; \
aarch64) YQ_ARCH="arm64" ;; \
dnf clean all && \
case "$(uname -m)" in \
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 ;; \
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
esac && \
wget "https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_${YQ_ARCH}" -O /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
chmod +x /usr/local/bin/yq
CMD ["/bin/bash"]