Skip to content

Commit

Permalink
Update to F41
Browse files Browse the repository at this point in the history
  • Loading branch information
gbraad authored Dec 11, 2024
1 parent e939d93 commit b00a9ca
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 25 deletions.
7 changes: 3 additions & 4 deletions .codesandbox/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM --platform=linux/amd64 ghcr.io/gbraad-devenv/fedora/dotfiles:40
FROM --platform=linux/amd64 ghcr.io/gbraad-devenv/fedora/dotfiles:41

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

USER root

Expand All @@ -7,6 +9,3 @@ RUN dnf update -y tailscale \
&& rm -rf /var/cache/yum

USER gbraad

RUN git clone https://github.com/gbraad/dotfiles ~/.dotfiles \
&& ~/.dotfiles/install.sh
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Fedora developer environment",
//"dockerFile": "Dockerfile",
"image": "ghcr.io/gbraad-devenv/fedora/dotfiles:40",
"image": "ghcr.io/gbraad-devenv/fedora/dotfiles:41",
"context": "..",
"runArgs": [ "--cap-add=NET_ADMIN", "--cap-add=NET_RAW", "--device=/dev/net/tun" ],
"postStartCommand": "github/install.sh",
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build containers
run-name: building containers
on:
schedule:
- cron: "0 0 1 * *"
push:
branches:
- "main"
pull_request: {}
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Run podman build - base
run: podman build -t ghcr.io/gbraad-devenv/fedora/base:41 -f containers/Containerfile-base .
- name: Run podman build - dotfiles
run: podman build -t ghcr.io/gbraad-devenv/fedora/dotfiles:41 -f containers/Containerfile-dotfiles .
- name: Run podman build - systemd
run: podman build -t ghcr.io/gbraad-devenv/fedora/systemd:41 -f containers/Containerfile-systemd .
- name: Push image to ghcr.io - base
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/base:41
- name: Push image to ghcr.io - dotfiles
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/dotfiles:41
- name: Push image to ghcr.io - systemd
run: podman push --creds=${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} ghcr.io/gbraad-devenv/fedora/systemd:41
21 changes: 7 additions & 14 deletions containers/Containerfile-base
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
FROM registry.fedoraproject.org/fedora:40

USER root
ARG BASE_IMAGE="quay.io/fedora/fedora"
ARG BASE_VERSION="41"

FROM ${BASE_IMAGE}:${BASE_VERSION} AS base

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

# Needed for the experimental network mode (to support Tailscale)
#RUN curl -o /usr/bin/slirp4netns -fsSL https://github.com/rootless-containers/slirp4netns/releases/download/v1.1.12/slirp4netns-$(uname -m) \
# && chmod +x /usr/bin/slirp4netns
USER root

# Add user with the expected ID (automated setup does not work atm)
RUN useradd -l -u 1000 -G wheel -md /home/gbraad -s /usr/bin/zsh -p gbraad gbraad \
Expand All @@ -19,7 +18,7 @@ RUN dnf install -y \
&& rm -rf /var/cache/yum

# install tailscale
RUN dnf config-manager --add-repo https://pkgs.tailscale.com/stable/fedora/tailscale.repo \
RUN dnf config-manager addrepo --from-repofile=https://pkgs.tailscale.com/stable/fedora/tailscale.repo \
&& dnf install -y \
tailscale \
&& dnf clean all \
Expand All @@ -28,12 +27,6 @@ RUN dnf config-manager --add-repo https://pkgs.tailscale.com/stable/fedora/tails

COPY scripts/tailscaled /etc/init.d/tailscaled

# for toolbox
#RUN dnf install -y \
# zsh bc curl diffutils dnf-plugins-core findutils gnupg2 less lsof ncurses passwd pinentry procps-ng shadow-utils sudo time util-linux wget vte-profile \
# && dnf clean all \
# && rm -rf /var/cache/yum

# dotfiles for root
RUN curl -sSL https://raw.githubusercontent.com/gbraad/dotfiles/master/install.sh | sh

Expand Down Expand Up @@ -99,7 +92,7 @@ RUN dnf install -y \
&& rm -rf /var/cache/yum

# github client
RUN dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo \
RUN dnf config-manager addrepo --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo \
&& dnf install -y \
gh \
&& dnf clean all \
Expand Down
6 changes: 5 additions & 1 deletion containers/Containerfile-coder
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM ghcr.io/gbraad-devenv/fedora/systemd:40
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/systemd:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

RUN VERSION=4.93.1 \
&& USER=gbraad \
Expand Down
6 changes: 5 additions & 1 deletion containers/Containerfile-dotfiles
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM ghcr.io/gbraad-devenv/fedora/base:40
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/base:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

RUN git clone https://github.com/gbraad/dotfiles ~/.dotfiles \
&& ~/.dotfiles/install.sh
Expand Down
5 changes: 5 additions & 0 deletions containers/Containerfile-rdesktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/base:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"
6 changes: 5 additions & 1 deletion containers/Containerfile-systemd
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM ghcr.io/gbraad-devenv/fedora/dotfiles:40
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/dotfiles:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

USER root

Expand Down
6 changes: 5 additions & 1 deletion containers/Containerfile-toolbox
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM ghcr.io/gbraad-devenv/fedora/base:40
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/base:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

USER root

Expand Down
6 changes: 5 additions & 1 deletion containers/Containerfile-vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
FROM ghcr.io/gbraad-devenv/fedora/base:40
ARG BASE_VERSION="41"

FROM ghcr.io/gbraad-devenv/fedora/base:${BASE_VERSION}

LABEL org.opencontainers.image.source = "https://github.com/gbraad-devenv/fedora"

USER root

Expand Down
2 changes: 1 addition & 1 deletion gitpod/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=linux/amd64 ghcr.io/gbraad-devenv/fedora/base:40
FROM --platform=linux/amd64 ghcr.io/gbraad-devenv/fedora/base:41

USER root

Expand Down

0 comments on commit b00a9ca

Please sign in to comment.