Clean up docker build
This commit is contained in:
parent
33998d6de0
commit
9caad0f396
32
.github/workflows/docker.yml
vendored
32
.github/workflows/docker.yml
vendored
@ -9,7 +9,35 @@ env:
|
|||||||
IMAGE_NAME: ewpratten/base
|
IMAGE_NAME: ewpratten/base
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_x64:
|
||||||
|
name: Build x64
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: ewpratten/base:latest
|
||||||
|
|
||||||
|
build_arm64:
|
||||||
|
name: Build ARM64
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -34,6 +62,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ewpratten/base:latest
|
tags: ewpratten/base:latest
|
29
Dockerfile
29
Dockerfile
@ -5,18 +5,23 @@ RUN echo "max_parallel_downloads=10" >> /etc/dnf/dnf.conf
|
|||||||
RUN echo "fastestmirror=true" >> /etc/dnf/dnf.conf
|
RUN echo "fastestmirror=true" >> /etc/dnf/dnf.conf
|
||||||
RUN dnf -y update
|
RUN dnf -y update
|
||||||
|
|
||||||
# Core system utils
|
# Install utilities
|
||||||
RUN dnf install -y procps-ng
|
RUN dnf install -y \
|
||||||
|
procps-ng \
|
||||||
# Install basic packages
|
git \
|
||||||
RUN dnf install -y git zsh neovim htop wget curl
|
zsh \
|
||||||
|
neovim \
|
||||||
# Python
|
htop \
|
||||||
RUN dnf install -y python3 python3-pip
|
wget \
|
||||||
|
curl \
|
||||||
# Networking tools
|
python3 \
|
||||||
RUN dnf install -y iproute iputils bind-utils
|
python3-pip \
|
||||||
RUN dnf install -y tcpdump mtr netcat
|
iproute \
|
||||||
|
iputils \
|
||||||
|
bind-utils \
|
||||||
|
tcpdump \
|
||||||
|
mtr \
|
||||||
|
netcat
|
||||||
|
|
||||||
# Copy this repo into the container
|
# Copy this repo into the container
|
||||||
COPY . /tmp/ewconfig
|
COPY . /tmp/ewconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user