5 Commits

Author SHA1 Message Date
Michal Konecny
57db17afb3 [flatpak-indexer] Run the correct command
The flatpak-indexer-build needs to run only pytest as done in upstream.
Otherwise it fails on missing commands.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-22 13:51:42 +01:00
Michal Konecny
83b60d7c3c [flatpak-indexer] Use the correct ImageStreamTag
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-22 13:46:37 +01:00
Michal Konecny
71c56a448f [flatpak-indexer] Fix indentation
Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-22 13:12:40 +01:00
Michal Konecny
bf4f2520ea [flatpak-indexer] Fix the git ref for branch
Upstream repo doesn't have staging and production branches. So let's
just go with main. In case of redis use the branch where the fix is introduced.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-22 12:30:44 +01:00
Michal Konecny
78235160d4 [flatpak-indexer] Fix deployment in openshift
The project has plenty of updates upstream. This commit reflects that
changes in deployment.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2026-01-22 11:19:25 +00:00
5 changed files with 33 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ spec:
apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
name: ubi9-python-39
name: ubi9-python-312
spec:
lookupPolicy:
local: false
@@ -59,7 +59,7 @@ spec:
- name: latest
from:
kind: DockerImage
name: registry.access.redhat.com/ubi9/python-39:latest
name: registry.access.redhat.com/ubi9/python-312:latest
importPolicy:
scheduled: true
referencePolicy:

View File

@@ -12,16 +12,24 @@ spec:
name: flatpak-indexer-tardiff:latest
runPolicy: Serial
source:
contextDir: differ
dockerfile: |-
FROM registry.access.redhat.com/ubi9/go-toolset
USER root
RUN yum -y install time && yum clean all
ADD tar-diff /tmp/src
RUN chown -R 1001:0 /tmp/src
USER 1001
# We need to pass -buildvcs=false because we only copy part of the git checkout
RUN cd /tmp/src && go build -buildvcs=false -o /opt/app-root/tar-diff ./cmd/tar-diff
git:
uri: https://github.com/yselkowitz/flatpak-indexer.git
uri: https://github.com/owtaylor/flatpak-indexer.git
ref: "{{ flatpak_indexer_git_ref }}"
type: Git
strategy:
dockerStrategy:
from:
kind: ImageStreamTag
name: ubi9-go-toolset:latest
noCache: true
type: Docker
triggers:
@@ -43,6 +51,7 @@ spec:
postCommit:
command:
- tools/test.sh
- "--pytest"
runPolicy: Serial
source:
images:
@@ -55,7 +64,7 @@ spec:
- destinationDir: bin
sourcePath: /usr/bin/time
git:
uri: https://github.com/yselkowitz/flatpak-indexer.git
uri: https://github.com/owtaylor/flatpak-indexer.git
ref: "{{ flatpak_indexer_git_ref }}"
type: Git
strategy:
@@ -65,7 +74,7 @@ spec:
value: "1"
from:
kind: ImageStreamTag
name: ubi9-python-39:latest
name: ubi9-python-312:latest
type: Source
triggers:
- type: ConfigChange
@@ -92,8 +101,9 @@ spec:
source:
contextDir: redis
git:
uri: https://github.com/yselkowitz/flatpak-indexer.git
ref: "{{ flatpak_indexer_git_ref }}"
# This is only temporary till https://github.com/owtaylor/flatpak-indexer/pull/28 is merged
uri: https://github.com/zlopez/flatpak-indexer.git
ref: "fix_indexer"
type: Git
strategy:
dockerStrategy:

View File

@@ -28,6 +28,8 @@ spec:
spec:
containers:
- env:
- name: OUTPUT_DIR
value: /var/www/flatpaks
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
@@ -106,6 +108,8 @@ spec:
spec:
containers:
- env:
- name: OUTPUT_DIR
value: /var/www/flatpaks
- name: FLATPAK_INDEXER_COMMAND
value: differ
- name: REDIS_PASSWORD
@@ -188,7 +192,7 @@ spec:
image: redis:latest
livenessProbe:
exec:
command: ['redis-cli', 'ping']
command: ['valkey-cli', '-a', '$REDIS_PASSWORD', 'ping']
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 10
@@ -200,7 +204,7 @@ spec:
protocol: TCP
readinessProbe:
exec:
command: ['redis-cli', 'ping']
command: ['valkey-cli', '-a', '$REDIS_PASSWORD', 'ping']
failureThreshold: 3
periodSeconds: 60
successThreshold: 1
@@ -264,6 +268,8 @@ spec:
key: password
- name: REDIS_URL
value: redis://redis.flatpak-indexer.svc.cluster.local:6379
- name: OUTPUT_DIR
value: /var/www/flatpaks
image: flatpak-indexer:latest
name: flatpak-indexer
ports:
@@ -335,6 +341,8 @@ spec:
spec:
containers:
- env:
- name: OUTPUT_DIR
value: /var/www/flatpaks
- name: FLATPAK_INDEXER_COMMAND
value: differ
- name: REDIS_PASSWORD

View File

@@ -1,2 +1,2 @@
---
flatpak_indexer_git_ref: production
flatpak_indexer_git_ref: main

View File

@@ -1,2 +1,2 @@
---
flatpak_indexer_git_ref: staging
flatpak_indexer_git_ref: main