Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 62 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,68 @@
name: "build_image"
name: build_image

on:
push:
paths:
- "**"
- "!README.md"
branches:
- main
- develop
- 'feat/**'
tags:
- 'v*'
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
#uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
secrets: inherit
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=tag
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
type=sha,format=short

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
60 changes: 53 additions & 7 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
name: "manual_build_image"
name: manual_build_image

on:
workflow_dispatch:
inputs:
Manual Build:
description: 'Manual Build'
tag:
description: 'Optional extra tag to apply (e.g. test-build)'
required: false
default: ''

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
#uses: tiredofit/github_actions/.github/workflows/default_amd64_armv7_arm64.yml@main
#uses: tiredofit/github_actions/.github/workflows/default_amd64.yml@main
uses: tiredofit/github_actions/.github/workflows/default_amd64_arm64.yml@main
secrets: inherit
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=sha,format=short
type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# IDE
.vscode/
.idea/

# Claude Code
.claude/

# OS
.DS_Store
Thumbs.db

# Environment
.env
.env.*
19 changes: 14 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ ARG DISTRO=alpine
ARG DISTRO_VARIANT=3.21-7.10.31

FROM docker.io/tiredofit/${DISTRO}:${DISTRO_VARIANT}
LABEL maintainer="Dave Conroy (github.com/tiredofit)"
LABEL maintainer="nfrastack (github.com/nfrastack)"

ENV INFLUX1_CLIENT_VERSION=1.8.0 \
INFLUX2_CLIENT_VERSION=2.7.5 \
MSODBC_VERSION=18.6.1.1-1 \
MSSQL_VERSION=18.6.1.1-1 \
MYSQL_VERSION=mysql-8.4.8 \
MYSQL_REPO_URL=https://github.com/mysql/mysql-server \
NEO4J_VERSION=5.26.0 \
AWS_CLI_VERSION=1.44.56 \
POSTGRES_VERSION=18.3 \
CONTAINER_ENABLE_MESSAGING=TRUE \
CONTAINER_ENABLE_MONITORING=TRUE \
IMAGE_NAME="tiredofit/db-backup" \
IMAGE_REPO_URL="https://github.com/tiredofit/docker-db-backup/"
IMAGE_NAME="nfrastack/container-db-backup" \
IMAGE_REPO_URL="https://github.com/nfrastack/container-db-backup/"

RUN source /assets/functions/00-container && \
set -ex && \
Expand Down Expand Up @@ -71,8 +72,6 @@ RUN source /assets/functions/00-container && \
awk '$1 == "#define" && $2 == "DEFAULT_PGSOCKET_DIR" && $3 == "\"/tmp\"" { $3 = "\"/var/run/postgresql\""; print; next } { print }' src/include/pg_config_manual.h > src/include/pg_config_manual.h.new && \
grep '/var/run/postgresql' src/include/pg_config_manual.h.new && \
mv src/include/pg_config_manual.h.new src/include/pg_config_manual.h && \
wget -O config/config.guess 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=7d3d27baf8107b630586c962c057e22149653deb' && \
wget -O config/config.sub 'https://git.savannah.gnu.org/cgit/config.git/plain/config.sub?id=7d3d27baf8107b630586c962c057e22149653deb' && \
export LLVM_CONFIG="/usr/lib/llvm19/bin/llvm-config" && \
export CLANG=clang-19 && \
./configure \
Expand Down Expand Up @@ -157,12 +156,14 @@ RUN source /assets/functions/00-container && \
gpg \
gpg-agent \
groff \
jq \
libarchive \
libtirpc \
mariadb-client \
mariadb-connector-c \
mongodb-tools \
ncurses \
openjdk17-jre-headless \
openssl \
pigz \
pixz \
Expand Down Expand Up @@ -211,6 +212,14 @@ RUN source /assets/functions/00-container && \
echo >&2 "Unable to build Influx 2 on this system" ; \
fi ; \
\
mkdir -p /usr/src/neo4j && \
curl -sSL https://dist.neo4j.org/neo4j-community-${NEO4J_VERSION}-unix.tar.gz | tar xzf - --strip-components=1 -C /usr/src/neo4j && \
mkdir -p /opt/neo4j/bin /opt/neo4j/lib && \
cp /usr/src/neo4j/bin/cypher-shell /opt/neo4j/bin/ && \
cp /usr/src/neo4j/lib/*.jar /opt/neo4j/lib/ && \
chmod +x /opt/neo4j/bin/cypher-shell && \
ln -sf /opt/neo4j/bin/cypher-shell /usr/local/bin/cypher-shell && \
\
clone_git_repo https://github.com/influxdata/influxdb "${INFLUX1_CLIENT_VERSION}" && \
go build -o /usr/sbin/influxd ./cmd/influxd && \
strip /usr/sbin/influxd && \
Expand Down
Loading