Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.
Merged
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
10 changes: 10 additions & 0 deletions Dockerfile.riot
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
ARG riot_version=latest
FROM vectorim/riot-web:${riot_version}

COPY config.riot.json /app/config.json

# Custom Branding
RUN rm -rf /app/themes/riot/
COPY /branding/themes/riot/ /app/themes/
RUN rm -f /app/welcome/images/logo.svg
COPY /branding/themes/riot/img/logos/riot-im-logo.svg /app/welcome/images/logo.svg
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
DOCKER_REVISION ?= matrix-testing-$(USER)
DOCKER_TAG = docker-push.ocf.berkeley.edu/synapse:$(DOCKER_REVISION)
SYNAPSE_DOCKER_TAG = docker-push.ocf.berkeley.edu/synapse:$(DOCKER_REVISION)
RIOT_DOCKER_TAG = docker-push.ocf.berkeley.edu/riot:$(DOCKER_REVISION)
RANDOM_PORT := $(shell expr $$(( 8000 + (`id -u` % 1000) + 2 )))

SYNAPSE_VERSION := v1.9.1-py3
RIOT_VERSION := v1.5.15

.PHONY: cook-image
cook-image:
docker build --build-arg synapse_version=$(SYNAPSE_VERSION) --pull -t $(DOCKER_TAG) .
docker build --build-arg synapse_version=$(SYNAPSE_VERSION) --pull -t $(SYNAPSE_DOCKER_TAG) .
docker build -f Dockerfile.riot --build-arg riot_version=$(RIOT_VERSION) --pull -t $(RIOT_DOCKER_TAG) .

.PHONY: push-image
push-image:
docker push $(DOCKER_TAG)
docker push $(SYNAPSE_DOCKER_TAG)
docker push $(RIOT_DOCKER_TAG)

Binary file added branding/themes/riot/img/backgrounds/valley.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions branding/themes/riot/img/logos/riot-im-logo-black-text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added branding/themes/riot/img/logos/riot-im-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions branding/themes/riot/img/logos/riot-im-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions config.riot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"default_server_config": {
"m.homeserver": {
"base_url": "https://matrix.ocf.berkeley.edu",
"server_name": "matrix.ocf.berkeley.edu"
},
"m.identity_server": {
"base_url": "https://vector.im"
}
},
"disable_identity_server": false,
"disable_custom_urls": false,
"disable_guests": true,
"disable_login_language_selector": false,
"disable_3pid_login": false,
"brand": "OCF Chat",
"integrations_ui_url": "https://scalar.vector.im/",
"integrations_rest_url": "https://scalar.vector.im/api",
"integrations_jitsi_widget_url": "https://scalar.vector.im/api/widgets/jitsi.html",
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
"defaultCountryCode": "GB",
"showLabsSettings": true,
"features": {
"feature_pinning": "labs",
"feature_custom_status": "labs",
"feature_custom_tags": "labs",
"feature_state_counters": "labs",
"feature_many_integration_managers": "labs",
"feature_mjolnir": "labs",
"feature_dm_verification": "labs",
"feature_cross_signing": "labs"
},
"default_federate": true,
"welcomePageUrl": "home.html",
"default_theme": "dark",
"roomDirectory": {
"servers": [
"matrix.ocf.berkeley.edu",
"matrix.org"
]
},
"enable_presence_by_hs_url": {
"https://matrix.org": false
}
}
55 changes: 55 additions & 0 deletions kubernetes/riot.yml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
---
apiVersion: v1
kind: Service
metadata:
labels:
app: riot
name: riot
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
app: riot
type: ClusterIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: riot
name: riot
spec:
replicas: 1
selector:
matchLabels:
app: riot
template:
metadata:
labels:
app: riot
spec:
containers:
- image: "docker.ocf.berkeley.edu/riot:<%= version %>"
imagePullPolicy: IfNotPresent
name: riot-web
readinessProbe:
tcpSocket:
port: 80
restartPolicy: Always
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
app: riot
name: vhost-ingress
spec:
rules:
- host: chat.ocf.berkeley.edu
http:
paths:
- backend:
serviceName: riot
servicePort: 80