Compare commits

...

53 Commits

Author SHA1 Message Date
David Bomba
ff3b7263f5 Merge pull request #825 from turbo124/master
Force cache:clear on first boot
2025-10-28 06:28:11 +11:00
David Bomba
ba896fcc03 Force cache:clear on first boot 2025-10-28 06:26:49 +11:00
David Bomba
b53ed7c914 Merge pull request #749 from turbo124/master
Add deprecation notice for master branch
2025-04-25 08:23:55 +10:00
David Bomba
e3fd4afb7d Add deprecation notice for master branch 2025-04-25 08:23:28 +10:00
David Bomba
afceccfaf6 Merge pull request #734 from benbrummer/master
github latest url, tar.gz, alpine 3.20
2025-03-19 10:05:22 +11:00
Benjamin Brummer
320cdc961d github latest url, tar.gz, alpine 3.20 2025-03-18 07:25:21 +00:00
David Bomba
7e466b38a3 Merge pull request #715 from invoiceninja/revert-689-master
Revert "Align alpine to debian and octane for maintenance"
2025-01-26 09:47:59 +11:00
David Bomba
c5bb7960c3 Revert "Align alpine to debian and octane for maintenance" 2025-01-26 09:47:24 +11:00
David Bomba
3bf4174cbf Merge pull request #712 from turbo124/master
Fixes for publish-image regression
2025-01-24 15:40:41 +11:00
David Bomba
18550bcf3e Fixes for publish-image regression 2025-01-24 15:40:26 +11:00
David Bomba
83bfb1b22f Fixes for publish-image regression 2025-01-24 15:38:25 +11:00
David Bomba
e4b3e0f0f1 Merge pull request #711 from turbo124/master
Revert and run on ubuntu 22.04
2025-01-24 15:01:20 +11:00
David Bomba
a060c70d3f Revert and run on ubuntu 22.04 2025-01-24 15:01:08 +11:00
David Bomba
d8749fa049 Revert and run on ubuntu 22.04 2025-01-24 14:59:52 +11:00
David Bomba
febb70263c Merge pull request #710 from turbo124/master
align build and publish images
2025-01-24 14:49:21 +11:00
David Bomba
4b6b287906 align build and publish images 2025-01-24 14:48:52 +11:00
David Bomba
e0bb394346 minor changes 2025-01-24 14:32:47 +11:00
David Bomba
914bebebf6 Merge pull request #705 from turbo124/master
Working on php extension installer issue
2025-01-24 12:20:23 +11:00
David Bomba
e617f2d808 Working on php extension installer issue 2025-01-24 12:19:56 +11:00
David Bomba
3a4f138f6a Merge pull request #704 from turbo124/master
Fixes for yaml syntax
2025-01-24 11:51:00 +11:00
David Bomba
ce9ce4fd26 Fixes for yaml syntax 2025-01-24 11:50:35 +11:00
David Bomba
d01706a734 Merge pull request #703 from turbo124/master
Change the way we invoke install php extensions
2025-01-24 11:49:34 +11:00
David Bomba
00e54c9c23 Change the way we invoke install php extensions 2025-01-24 11:41:37 +11:00
David Bomba
4ea7218cd8 Merge pull request #702 from turbo124/master
Reduce parallel jobs and add swap in case we are hitting github actions
2025-01-24 10:10:16 +11:00
David Bomba
e161a85133 Reduce parallel jobs and add swap in case we are hitting github action limitations 2025-01-24 10:09:25 +11:00
David Bomba
d27c1a22d8 Merge pull request #701 from turbo124/master
Require mbstring
2025-01-24 09:24:18 +11:00
David Bomba
83dbf94c2b require mbstring 2025-01-24 09:22:01 +11:00
David Bomba
c0ee1a5521 Merge pull request #689 from benbrummer/master
Align alpine to debian and octane for maintenance
2025-01-24 09:16:34 +11:00
Benjamin Brummer
018e0e7b2a readded mariadb-connector-c 2025-01-15 11:29:46 +00:00
Benjamin Brummer
07a211bc13 pidfile is not required 2025-01-15 11:16:45 +00:00
Benjamin Brummer
4c9ae7e92f Align supervisor with debian 2025-01-15 11:09:04 +00:00
Benjamin Brummer
fe1ff5c496 remove hosts 2025-01-15 09:53:08 +00:00
Benjamin Brummer
3a0d184fb2 remove network 2025-01-15 09:52:00 +00:00
Benjamin Brummer
42c62adf1a php optimization 2025-01-15 09:49:58 +00:00
Benjamin Brummer
7a72c2ef16 set alpine to 3.20 2025-01-15 09:29:59 +00:00
Benjamin Brummer
974df2fa20 align supervisord to laravel docs/debian 2025-01-14 20:27:22 +00:00
Benjamin Brummer
7629f51492 cleanup php.ini 2025-01-14 20:25:50 +00:00
Benjamin Brummer
977e2001f0 disable preload for artisan tinker 2025-01-13 12:19:01 +00:00
Benjamin Brummer
a520f32385 cleanup 2025-01-13 12:16:43 +00:00
Benjamin Brummer
9b63fc3fbc php-fpm.conf, renamed server to nginx 2025-01-12 14:03:31 +00:00
Benjamin Brummer
cbaf961012 update php.ini, fix for valkey configuration 2025-01-12 12:27:20 +00:00
Benjamin Brummer
797aa6bdf8 redis/valkey cache 2025-01-12 11:43:08 +00:00
Benjamin Brummer
103b912467 align nginx with debian 2025-01-12 11:12:38 +00:00
Benjamin Brummer
7a171b96c7 align with debian, php 8.3 2025-01-12 10:46:52 +00:00
David Bomba
c69093a265 Merge pull request #674 from turbo124/master
Updates for github actions
2024-12-11 09:56:08 +11:00
David Bomba
8863ed9e38 Updates for github actions 2024-12-11 09:54:48 +11:00
David Bomba
76b5e10318 Update README.md 2024-11-23 14:18:12 +11:00
David Bomba
9941847af7 Merge pull request #608 from turbo124/master
Add intl extension
2024-07-08 09:44:43 +10:00
David Bomba
edf21b5d4f Add intl extension 2024-07-08 09:21:29 +10:00
David Bomba
7acd479cfd Merge pull request #593 from turbo124/master
Changes for release filename
2024-06-24 09:06:16 +10:00
David Bomba
bed751ce18 Changes for release filename 2024-06-24 09:05:48 +10:00
David Bomba
303bc81d3d Merge pull request #517 from Leopere/patch-1
Please don't bind mysql to all interfaces with default credentials in Docker-compose
2024-06-23 13:59:00 +10:00
Leopere
6a05bdbbd5 Update docker-compose.yml
Please don't do this. Default credentials on the sql container in the .env file and then bind blindly 3305 on all interfaces for the public  to log in with ninja//ninja
2023-06-23 11:06:27 -04:00
8 changed files with 31 additions and 27 deletions

View File

@@ -31,7 +31,7 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-4-${{ hashFiles('alpine/5/cache_buster') }}-${{ github.sha }}

View File

@@ -16,7 +16,7 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -31,7 +31,7 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-5-${{ hashFiles('alpine/5/cache_buster') }}-${{ github.sha }}

View File

@@ -11,7 +11,7 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -31,9 +31,9 @@ jobs:
if [[ $VERSION =~ ^5\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
fi
echo ::set-output name=tags::${TAGS}
echo ::set-output name=version::${VERSION}
echo ::set-output name=major::${MAJOR}
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "major=${MAJOR}" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
@@ -45,12 +45,12 @@ jobs:
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ steps.prep.outputs.major }}-${{ hashFiles('alpine/${{ steps.prep.outputs.major }}/cache_buster') }}-${{ github.sha }}
key: ${{ runner.os }}-buildx-5-${{ hashFiles('alpine/5/cache_buster') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-${{ steps.prep.outputs.major }}-${{ hashFiles('alpine/${{ steps.prep.outputs.major }}/cache_buster') }}-
${{ runner.os }}-buildx-5-${{ hashFiles('alpine/5/cache_buster') }}-
- name: Login to DockerHub
if: github.event_name != 'pull_request'
@@ -79,4 +79,4 @@ jobs:
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
run: echo ${{ steps.docker_build.outputs.digest }}

View File

@@ -12,7 +12,7 @@ jobs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -55,7 +55,7 @@ jobs:
- "1.23.15"
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

View File

@@ -1,8 +1,14 @@
![Docker images](https://github.com/invoiceninja/dockerfiles/workflows/Docker%20images/badge.svg)
[![Docker image, latest](https://img.shields.io/docker/image-size/invoiceninja/invoiceninja/latest?label=latest)](https://hub.docker.com/r/invoiceninja/invoiceninja)
[![Docker image, alpine](https://img.shields.io/docker/image-size/invoiceninja/invoiceninja/alpine?label=alpine)](https://hub.docker.com/r/invoiceninja/invoiceninja)
[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/invoiceninja)](https://artifacthub.io/packages/search?repo=invoiceninja)
[![Pusblish Image](https://github.com/invoiceninja/dockerfiles/actions/workflows/publish-image.yaml/badge.svg)](https://github.com/invoiceninja/dockerfiles/actions/workflows/publish-image.yaml) [![Cache v5 Image](https://github.com/invoiceninja/dockerfiles/actions/workflows/build-image-v5.yaml/badge.svg)](https://github.com/invoiceninja/dockerfiles/actions/workflows/build-image-v5.yaml)
[![Publish Image](https://github.com/invoiceninja/dockerfiles/actions/workflows/publish-image.yaml/badge.svg)](https://github.com/invoiceninja/dockerfiles/actions/workflows/publish-image.yaml)
[![Cache v5 Image](https://github.com/invoiceninja/dockerfiles/actions/workflows/build-image-v5.yaml/badge.svg)](https://github.com/invoiceninja/dockerfiles/actions/workflows/build-image-v5.yaml)
# Deprecation Notice
The master branch is not longer receiving active updates. We will continue to tag new releases whilst compatibility with underlying packages remains, however we will not be updating this image going forward.
Instead, please use the debian branch [here](https://github.com/invoiceninja/dockerfiles/tree/debian) this image is a completely fresh start based on the debian image and allows improved package support.
# Docker for [Invoice Ninja](https://www.invoiceninja.com/)

View File

@@ -1,30 +1,28 @@
ARG ALPINE_VERSION=3.20
ARG PHP_VERSION=8.2
ARG BAK_STORAGE_PATH=/var/www/app/docker-backup-storage/
ARG BAK_PUBLIC_PATH=/var/www/app/docker-backup-public/
# Get Invoice Ninja and install nodejs packages
FROM --platform=$BUILDPLATFORM node:lts-alpine as nodebuild
FROM --platform=$BUILDPLATFORM node:lts-alpine${ALPINE_VERSION} as nodebuild
# Download Invoice Ninja
ARG INVOICENINJA_VERSION
ARG REPOSITORY=invoiceninja/invoiceninja
ARG FILENAME=react-invoiceninja.tar
ARG FILENAME=invoiceninja.tar.gz
RUN set -eux; apk add curl unzip grep
RUN DOWNLOAD_URL=$(curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/latest" | grep -o '"browser_download_url": "[^"]*react-invoiceninja.tar"' | cut -d '"' -f 4) && \
curl -LJO "$DOWNLOAD_URL" && \
mv react-invoiceninja.tar /tmp/ninja.tar
# Extract Invoice Ninja
RUN mkdir -p /var/www/app \
&& tar -xvf /tmp/ninja.tar -C /var/www/app/ \
&& mkdir -p /var/www/app/public/logo /var/www/app/storage
RUN mkdir -p /var/www/app
RUN curl -sL "https://github.com/invoiceninja/invoiceninja/releases/latest/download/invoiceninja.tar.gz" | \
tar -xz -C /var/www/app/
RUN mkdir -p /var/www/app/public/logo /var/www/app/storage
WORKDIR /var/www/app
# Prepare php image
FROM php:${PHP_VERSION}-fpm-alpine as phpbuild
FROM php:${PHP_VERSION}-fpm-alpine${ALPINE_VERSION} as phpbuild
LABEL maintainer="David Bomba <turbo124@gmail.com>"
@@ -57,6 +55,7 @@ RUN install-php-extensions \
opcache \
pdo_mysql \
zip \
intl \
@composer \
&& rm /usr/local/bin/install-php-extensions

View File

@@ -1,6 +1,7 @@
#!/bin/sh
php artisan db:seed --force
php artisan cache:clear
# Build up array of arguments...
if [[ ! -z "${IN_USER_EMAIL}" ]]; then

View File

@@ -47,8 +47,6 @@ services:
# For auto DB backups comment out image and use the build block below
# build:
# context: ./config/mysql
ports:
- "3305:3306"
restart: always
env_file: env
volumes: