Skip to content

Commit

Permalink
Merge branch 'official-element-image' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Jan 15, 2025
2 parents deeda74 + 37e0fde commit 38bb836
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 116 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,3 @@ element:
```
For a list of the settings allowed in `homeserverConfig`, check out [Synapse's own documentation](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html).

# Why do you use a custom Element image?

The official Element image, [`docker.io/vectorim/element-web`](https://hub.docker.com/r/vectorim/element-web), runs as root and is only built for a few architectures. The [image](https://github.com/users/remram44/packages/container/package/matrix-helm%2Felement) in this repo (`element/`) is built from [`docker.io/nginxinc/nginx-unprivileged`](https://hub.docker.com/r/nginxinc/nginx-unprivileged).
4 changes: 2 additions & 2 deletions charts/element/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A chart for Element, the web interface for Matrix.org.

type: application

version: "1.0.62"
version: "1.1.0"

# The version of Element
appVersion: "1.11.89"
appVersion: "1.11.90"
7 changes: 5 additions & 2 deletions charts/element/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: ELEMENT_WEB_PORT
value: "8080"
volumeMounts:
- mountPath: /usr/lib/element/config.json
- mountPath: /app/config.json
name: config
subPath: config.json
readOnly: true
Expand Down
2 changes: 1 addition & 1 deletion charts/element/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
replicaCount: 1

image:
repository: ghcr.io/remram44/matrix-helm/element
repository: docker.io/vectorim/element-web
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
Expand Down
22 changes: 0 additions & 22 deletions element/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions element/build.sh

This file was deleted.

20 changes: 0 additions & 20 deletions element/element.nginx

This file was deleted.

60 changes: 0 additions & 60 deletions element/entrypoint.sh

This file was deleted.

0 comments on commit 38bb836

Please sign in to comment.