-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,109 @@ | ||
# Mastodon Image for OpenShift | ||
|
||
This repository contains a `Dockerfile` which modifies the [upstream](https://hub.docker.com/r/tootsuite/mastodon) image to be compatible with OpenShift. | ||
As usual, it's a permission thingy. | ||
As usual, it's a file permission thingy. | ||
|
||
Read more [here](https://docs.openshift.com/container-platform/4.11/openshift_images/create-images.html#images-create-guide-openshift_create-images) about why this is needed on OpenShift. | ||
|
||
Get the image on [ghcr.io](https://github.com/appuio/mastodon-openshift/pkgs/container/mastodon-openshift%2Fmastodon): | ||
|
||
``` | ||
docker pull ghcr.io/appuio/mastodon-openshift/mastodon:latest | ||
``` | ||
Get the image on [ghcr.io](https://github.com/appuio/mastodon-openshift/pkgs/container/mastodon-openshift%2Fmastodon). | ||
|
||
## Image Maintenance | ||
|
||
TODO Renovate and GitHub Action | ||
The image is automatically rebuilt once a new upstream Mastodon image gets available. | ||
Thanks to `renovate.json` and the GitHub Action pipeline. | ||
|
||
## Helm Values | ||
|
||
TODO add an example for the [upstream Chart](https://github.com/mastodon/mastodon/tree/main/chart) | ||
Here is an example for the [upstream Chart](https://github.com/mastodon/mastodon/tree/main/chart) which works on OpenShift. | ||
It's neither optimized nor perfect, but it works: | ||
|
||
```yaml | ||
replicaCount: 1 | ||
|
||
image: | ||
repository: ghcr.io/appuio/mastodon-openshift/mastodon | ||
tag: v4.0.2 | ||
pullPolicy: IfNotPresent | ||
|
||
mastodon: | ||
createAdmin: | ||
enabled: true | ||
username: theadmin | ||
email: [email protected] | ||
local_domain: mastodon.local | ||
persistence: | ||
assets: | ||
accessMode: ReadWriteMany | ||
storageClassName: cephfs-fspool-cluster | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
system: | ||
accessMode: ReadWriteMany | ||
storageClassName: cephfs-fspool-cluster | ||
resources: | ||
requests: | ||
storage: 10Gi | ||
secrets: | ||
secret_key_base: CHANGEME | ||
otp_secret: CHANGEME | ||
vapid: | ||
private_key: CHANGEME | ||
public_key: CHANGEME | ||
smtp: | ||
auth_method: plain | ||
delivery_method: smtp | ||
domain: mastodon.local | ||
enable_starttls: 'auto' | ||
from_address: [email protected] | ||
openssl_verify_mode: peer | ||
port: 587 | ||
reply_to: [email protected] | ||
server: CHANGEME | ||
tls: false | ||
login: CHANGEME | ||
password: CHANGEME | ||
|
||
ingress: | ||
enabled: true | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
hosts: | ||
- host: mastodon.local | ||
paths: | ||
- path: '/' | ||
tls: | ||
- secretName: ingress-tls | ||
hosts: | ||
- mastodon.local | ||
|
||
podSecurityContext: null | ||
securityContext: null | ||
|
||
## Services | ||
elasticsearch: | ||
enabled: false | ||
|
||
postgresql: | ||
enabled: true | ||
auth: | ||
database: mastodon_production | ||
username: mastodon | ||
password: CHANGEME | ||
primary: | ||
podSecurityContext: | ||
enabled: false | ||
containerSecurityContext: | ||
enabled: false | ||
|
||
redis: | ||
password: CHANGEME | ||
architecture: standalone | ||
master: | ||
persistence: | ||
size: "1Gi" | ||
podSecurityContext: | ||
enabled: false | ||
containerSecurityContext: | ||
enabled: false | ||
``` |