mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-07 06:57:26 +01:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e9e7c47da | ||
|
|
7da83b40f4 | ||
|
|
1b48ab6983 | ||
|
|
14357b93a1 | ||
|
|
8a68fda3f3 |
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@@ -27,6 +27,6 @@ jobs:
|
|||||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: helm/chart-releaser-action@master
|
uses: helm/chart-releaser-action@v1.2.1
|
||||||
env:
|
env:
|
||||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|||||||
@@ -88,7 +88,8 @@ WORKDIR /var/www/app
|
|||||||
|
|
||||||
# Do not remove this ENV
|
# Do not remove this ENV
|
||||||
ENV IS_DOCKER true
|
ENV IS_DOCKER true
|
||||||
RUN /usr/local/bin/composer install --no-dev --quiet
|
RUN /usr/local/bin/composer install --no-dev --quiet \
|
||||||
|
&& rm .env
|
||||||
|
|
||||||
# Override the environment settings from projects .env file
|
# Override the environment settings from projects .env file
|
||||||
ENV APP_ENV production
|
ENV APP_ENV production
|
||||||
|
|||||||
@@ -27,18 +27,20 @@ file_env() {
|
|||||||
local fileVar="${var}_FILE"
|
local fileVar="${var}_FILE"
|
||||||
local def="${2:-}"
|
local def="${2:-}"
|
||||||
|
|
||||||
if [ "$(ie_gv ${var})" != "" ] && [ "$(ie_gv ${fileVar})" != "" ]; then
|
|
||||||
in_error "Both $var and $fileVar are set (but are exclusive)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
local val="$def"
|
|
||||||
if [ "$(ie_gv ${var})" != "" ]; then
|
if [ "$(ie_gv ${var})" != "" ]; then
|
||||||
val=$(ie_gv ${var})
|
if [ "$(ie_gv ${fileVar})" != "" ]; then
|
||||||
elif [ "$(ie_gv ${fileVar})" != "" ]; then
|
in_error "Both $var and $fileVar are set (but are exclusive)"
|
||||||
val=$(cat $(ie_gv ${fileVar}))
|
fi
|
||||||
|
unset "$fileVar"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$(ie_gv ${fileVar})" != "" ] && [ -f "$(ie_gv ${fileVar})" ]; then
|
||||||
|
export "$var"="$(cat $(ie_gv ${fileVar}))"
|
||||||
|
elif [ ! -z "$def" ]; then
|
||||||
|
export "$var"="$def"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export "$var"="$val"
|
|
||||||
unset "$fileVar"
|
unset "$fileVar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
- name: common
|
- name: common
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 1.4.2
|
version: 1.4.3
|
||||||
- name: nginx
|
- name: nginx
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 8.8.1
|
version: 8.8.5
|
||||||
- name: mariadb
|
- name: mariadb
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 9.3.6
|
version: 9.3.11
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 12.9.2
|
version: 12.9.2
|
||||||
digest: sha256:fd3577637e412f553b3300f0c174ea7282073e0971da621d2f5c0e43b8f2fdfc
|
digest: sha256:4255a558312b033e820635f491b0960bd4ec8e716164025212af06adafbd4cb9
|
||||||
generated: "2021-04-07T20:59:19.568334+08:00"
|
generated: "2021-05-11T09:31:45.433+08:00"
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.3.2
|
version: 0.4.0
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
appVersion: 5.1.41
|
appVersion: 5.1.61
|
||||||
keywords:
|
keywords:
|
||||||
- invoiceninja
|
- invoiceninja
|
||||||
home: https://invoiceninja.github.io/dockerfiles
|
home: https://invoiceninja.github.io/dockerfiles
|
||||||
|
|||||||
@@ -115,6 +115,18 @@ The following table shows the configuration options for the Invoice Ninja helm c
|
|||||||
| `extraVolumeMounts` | Additional volume mounts | `[]` |
|
| `extraVolumeMounts` | Additional volume mounts | `[]` |
|
||||||
| `extraVolumes` | Additional volumes | `[]` |
|
| `extraVolumes` | Additional volumes | `[]` |
|
||||||
|
|
||||||
|
### Volume Permissions parameters
|
||||||
|
|
||||||
|
| Parameter | Description | Default |
|
||||||
|
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
|
||||||
|
| `volumePermissions.enabled` | Enable init container that changes the owner and group of the persistent volume(s) mountpoint to `runAsUser:fsGroup` | `false` |
|
||||||
|
| `volumePermissions.image.registry` | Init container volume-permissions image registry | `docker.io` |
|
||||||
|
| `volumePermissions.image.repository` | Init container volume-permissions image name | `bitnami/bitnami-shell` |
|
||||||
|
| `volumePermissions.image.tag` | Init container volume-permissions image tag | `"10"` |
|
||||||
|
| `volumePermissions.image.pullPolicy` | Init container volume-permissions image pull policy | `Always` |
|
||||||
|
| `volumePermissions.image.pullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
|
||||||
|
| `volumePermissions.resources` | Init container volume-permissions resource | `{}` |
|
||||||
|
|
||||||
### Exposure parameters
|
### Exposure parameters
|
||||||
|
|
||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|
|||||||
@@ -9,7 +9,14 @@ Return the proper image name
|
|||||||
Return the proper Docker Image Registry Secret Names
|
Return the proper Docker Image Registry Secret Names
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "invoiceninja.imagePullSecrets" -}}
|
{{- define "invoiceninja.imagePullSecrets" -}}
|
||||||
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image ) "global" .Values.global) -}}
|
{{- include "common.images.pullSecrets" (dict "images" (list .Values.image .Values.volumePermissions.image) "global" .Values.global) -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return the proper image name (for the init container volume-permissions image)
|
||||||
|
*/}}
|
||||||
|
{{- define "invoiceninja.volumePermissions.image" -}}
|
||||||
|
{{ include "common.images.image" (dict "imageRoot" .Values.volumePermissions.image "global" .Values.global) }}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|||||||
@@ -81,6 +81,26 @@ spec:
|
|||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "common.names.fullname" . }}
|
name: {{ include "common.names.fullname" . }}
|
||||||
|
{{- if and .Values.podSecurityContext .Values.volumePermissions.enabled (or .Values.persistence.public.enabled .Values.persistence.storage.enabled) }}
|
||||||
|
- name: volume-permissions
|
||||||
|
image: {{ include "invoiceninja.volumePermissions.image" . }}
|
||||||
|
imagePullPolicy: {{ .Values.volumePermissions.image.pullPolicy | quote }}
|
||||||
|
command:
|
||||||
|
- /bin/bash
|
||||||
|
- -ec
|
||||||
|
- |
|
||||||
|
chown -R {{ .Values.containerSecurityContext.runAsUser }}:{{ .Values.podSecurityContext.fsGroup }} /var/www/app/{public,storage}
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
{{- if .Values.volumePermissions.resources }}
|
||||||
|
resources: {{- toYaml .Values.volumePermissions.resources | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /var/www/app/public
|
||||||
|
name: public
|
||||||
|
- mountPath: /var/www/app/storage
|
||||||
|
name: storage
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.initContainers }}
|
{{- if .Values.initContainers }}
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
|
{{- include "common.tplvalues.render" (dict "value" .Values.initContainers "context" $) | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
image:
|
image:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
repository: invoiceninja/invoiceninja
|
repository: invoiceninja/invoiceninja
|
||||||
tag: 5.1.42
|
tag: 5.1.61
|
||||||
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
|
||||||
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||||
##
|
##
|
||||||
@@ -165,6 +165,24 @@ containerSecurityContext:
|
|||||||
# - ALL
|
# - ALL
|
||||||
# readOnlyRootFilesystem: true
|
# readOnlyRootFilesystem: true
|
||||||
|
|
||||||
|
## Init containers parameters:
|
||||||
|
## volumePermissions: Change the owner and group of the persistent volume mountpoint to runAsUser:fsGroup values from the securityContext section.
|
||||||
|
##
|
||||||
|
volumePermissions:
|
||||||
|
enabled: false
|
||||||
|
image:
|
||||||
|
registry: docker.io
|
||||||
|
repository: bitnami/bitnami-shell
|
||||||
|
tag: "10"
|
||||||
|
pullPolicy: Always
|
||||||
|
## Optionally specify an array of imagePullSecrets.
|
||||||
|
## Secrets must be manually created in the namespace.
|
||||||
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||||
|
##
|
||||||
|
# pullSecrets:
|
||||||
|
# - myRegistryKeySecretName
|
||||||
|
resources: {}
|
||||||
|
|
||||||
## Number of replicas (requires ReadWriteMany PVC support)
|
## Number of replicas (requires ReadWriteMany PVC support)
|
||||||
##
|
##
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|||||||
45
env
45
env
@@ -1,26 +1,33 @@
|
|||||||
APP_URL=http://in.localhost:8003/
|
# IN application vars
|
||||||
|
APP_URL=http://in.localhost:8003
|
||||||
APP_KEY=<insert your generated key in here>
|
APP_KEY=<insert your generated key in here>
|
||||||
APP_DEBUG=true
|
APP_DEBUG=true
|
||||||
MULTI_DB_ENABLED=false
|
REQUIRE_HTTPS=false
|
||||||
DB_HOST1=db
|
PHANTOMJS_PDF_GENERATION=false
|
||||||
DB_PORT1=3306
|
|
||||||
DB_USERNAME1=ninja
|
# DB connection
|
||||||
DB_PASSWORD1=ninja
|
DB_HOST=db
|
||||||
DB_DATABASE1=ninja
|
DB_PORT=3306
|
||||||
|
DB_DATABASE=ninja
|
||||||
|
DB_USERNAME=ninja
|
||||||
|
DB_PASSWORD=ninja
|
||||||
|
|
||||||
|
# Mail options
|
||||||
|
MAIL_MAILER=log
|
||||||
|
MAIL_HOST=smtp.mailtrap.io
|
||||||
|
MAIL_PORT=2525
|
||||||
|
MAIL_USERNAME=null
|
||||||
|
MAIL_PASSWORD=null
|
||||||
|
MAIL_ENCRYPTION=null
|
||||||
|
MAIL_FROM_ADDRESS='user@example.com'
|
||||||
|
MAIL_FROM_NAME='Self Hosted User'
|
||||||
|
|
||||||
|
# MySQL
|
||||||
MYSQL_ROOT_PASSWORD=ninjaAdm1nPassword
|
MYSQL_ROOT_PASSWORD=ninjaAdm1nPassword
|
||||||
MYSQL_USER=ninja
|
MYSQL_USER=ninja
|
||||||
MYSQL_PASSWORD=ninja
|
MYSQL_PASSWORD=ninja
|
||||||
MYSQL_DATABASE=ninja
|
MYSQL_DATABASE=ninja
|
||||||
|
|
||||||
#this is a system variable please do not remove
|
# V4 env vars
|
||||||
IS_DOCKER=true
|
# DB_STRICT=false
|
||||||
|
# APP_CIPHER=AES-256-CBC
|
||||||
PHANTOMJS_PDF_GENERATION=false
|
|
||||||
|
|
||||||
#V4 env vars
|
|
||||||
DB_STRICT=false
|
|
||||||
DB_HOST=db
|
|
||||||
DB_DATABASE=ninja
|
|
||||||
DB_USERNAME=ninja
|
|
||||||
DB_PASSWORD=ninja
|
|
||||||
APP_CIPHER=AES-256-CBC
|
|
||||||
|
|||||||
Reference in New Issue
Block a user