Compare commits
1 Commits
master
...
remove-whi
Author | SHA1 | Date | |
---|---|---|---|
d4d68fd1c6 |
@ -7,32 +7,8 @@ skip-arches = [ "386" ]
|
|||||||
["alt/zot"]
|
["alt/zot"]
|
||||||
skip-arches = [ "386" ]
|
skip-arches = [ "386" ]
|
||||||
|
|
||||||
["alt/kafka"]
|
|
||||||
skip-arches = [ "386" ]
|
|
||||||
|
|
||||||
["alt/ansible"]
|
["alt/ansible"]
|
||||||
skip-branches = [ "c10f2", "c10f1", "p10" ]
|
skip-branches = [ "c10f2", "c10f1", "p10" ]
|
||||||
|
|
||||||
["alt/buildkit"]
|
["alt/buildkit"]
|
||||||
skip-branches = [ "c10f1", "p10" ]
|
skip-branches = [ "c10f1", "p10" ]
|
||||||
|
|
||||||
["kubevirt/virt-api"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
|
||||||
["kubevirt/virt-controller"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
|
||||||
["kubevirt/virt-exportproxy"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
|
||||||
["kubevirt/virt-exportserver"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
|
||||||
["kubevirt/virt-handler"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
|
||||||
["kubevirt/virt-launcher"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
|
||||||
["kubevirt/virt-operator"]
|
|
||||||
skip-arches = [ "386", "loong64" ]
|
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest
|
|
||||||
|
|
||||||
MAINTAINER alt-cloud
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="kafka"
|
|
||||||
LABEL org.opencontainers.image.description="Apache Kafka is a distributed event store and stream-processing platform"
|
|
||||||
LABEL org.opencontainers.image.source="https://github.com/apache/kafka"
|
|
||||||
LABEL org.opencontainers.image.licenses="Apache-2.0"
|
|
||||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
|
||||||
|
|
||||||
{{ install_packages("kafka", "ca-certificates", "gpg") }}
|
|
||||||
|
|
||||||
USER kafka:kafka
|
|
||||||
EXPOSE 9092 2181
|
|
||||||
WORKDIR /var/lib/kafka
|
|
||||||
VOLUME ["/var/lib/kafka","/var/log/kafka"]
|
|
||||||
|
|
||||||
COPY kafka-entrypoint.sh /kafka-entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/bin/bash" ]
|
|
||||||
CMD ["/kafka-entrypoint.sh"]
|
|
@ -1,37 +0,0 @@
|
|||||||
# Kafka image
|
|
||||||
|
|
||||||
Command for run kafka server:
|
|
||||||
```
|
|
||||||
podman run --rm -it -p 9092:9092 <REGISTRY>/<BRANCH>/kafka:latest
|
|
||||||
```
|
|
||||||
|
|
||||||
To lead images running need use kafka-entrypoint.sh or change it. As default login kafka need runnig zookeeper and than kafka's start script.
|
|
||||||
|
|
||||||
Commnad for using kafka:
|
|
||||||
```
|
|
||||||
podman exec -it -u kafka <CONTAINER ID> /usr/bin/sh
|
|
||||||
```
|
|
||||||
```
|
|
||||||
sh-5.2$ /usr/lib/kafka/bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
|
|
||||||
```
|
|
||||||
Created topic quickstart-events.
|
|
||||||
```
|
|
||||||
sh-5.2$ /usr/lib/kafka/bin/kafka-topics.sh --describe --topic quickstart-events --bootstrap-server localhost:9092
|
|
||||||
```
|
|
||||||
Topic: quickstart-events TopicId: kPjhCFFAS-Sg5J3Hpgr-PA PartitionCount: 1 ReplicationFactor: 1 Configs:
|
|
||||||
Topic: quickstart-events Partition: 0 Leader: 0 Replicas: 0 Isr: 0 Elr: N/A LastKnownElr: N/A
|
|
||||||
```
|
|
||||||
sh-5.2$ /usr/lib/kafka/bin/kafka-console-producer.sh --topic quickstart-events --bootstrap-server localhost:9092
|
|
||||||
```
|
|
||||||
>hello 1
|
|
||||||
>hello 2
|
|
||||||
>hello 3
|
|
||||||
```
|
|
||||||
sh-5.2$ /usr/lib/kafka/bin/kafka-console-consumer.sh --topic quickstart-events --from-beginning --bootstrap-server localhost:9092
|
|
||||||
```
|
|
||||||
hello 1
|
|
||||||
hello 2
|
|
||||||
hello 3
|
|
||||||
^CProcessed a total of 3 messages
|
|
||||||
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
is_versioned: true
|
|
||||||
version_template: "{{ version }}"
|
|
||||||
source_packages:
|
|
||||||
- kafka
|
|
||||||
annotations:
|
|
||||||
org.opencontainers.image.revision: ''
|
|
||||||
org.opencontainers.image.source: 'https://github.com/apache/kafka'
|
|
||||||
org.opencontainers.image.url: ''
|
|
||||||
org.opencontainers.image.version: ''
|
|
||||||
org.opencontainers.image.title: 'kafka'
|
|
||||||
org.opencontainers.image.description: 'Apache Kafka is a distributed event store and stream-processing platform'
|
|
||||||
org.opencontainers.image.licenses: Apache-2.0
|
|
||||||
org.opencontainers.image.vendor: 'ALT Linux Team'
|
|
||||||
...
|
|
@ -1,4 +0,0 @@
|
|||||||
#!/bin/sh -eux
|
|
||||||
|
|
||||||
nohup /usr/lib/kafka/bin/zookeeper-server-start.sh /etc/kafka/zookeeper.properties &
|
|
||||||
/usr/lib/kafka/bin/kafka-server-start.sh /etc/kafka/server.properties
|
|
@ -1 +0,0 @@
|
|||||||
ls -a /usr/lib/kafka/bin/ | grep kafka && /usr/lib/kafka/bin/kafka-topics.sh --version
|
|
@ -1,19 +0,0 @@
|
|||||||
FROM {{ registry }}{{ branch }}/{{ alt_image }}:latest
|
|
||||||
|
|
||||||
MAINTAINER alt-cloud
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="redis"
|
|
||||||
LABEL org.opencontainers.image.description="Redis is an advanced key-value store"
|
|
||||||
LABEL org.opencontainers.image.source="http://redis.io"
|
|
||||||
LABEL org.opencontainers.image.licenses="BSD-3-Clause AND BSD-2-Clause AND MIT AND BSL-1.0"
|
|
||||||
LABEL org.opencontainers.image.vendor="ALT Linux Team"
|
|
||||||
|
|
||||||
{{ install_packages("ca-certificates","redis","redis-cli") }}
|
|
||||||
|
|
||||||
USER _redis:_redis
|
|
||||||
EXPOSE 6379
|
|
||||||
VOLUME ["/var/lib/redis","/var/log/redis"]
|
|
||||||
WORKDIR /var/lib/redis
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/sbin/redis-server" ]
|
|
||||||
CMD [ "/etc/redis/redis.conf" ]
|
|
@ -1,8 +0,0 @@
|
|||||||
# Redis image
|
|
||||||
|
|
||||||
Command for run redis-db server:
|
|
||||||
```
|
|
||||||
podman run --rm -it -v ./redis.conf:/etc/redis/redis.conf -p 6379:6379 <REGISTRY>/<BRANCH>/redis:latest
|
|
||||||
```
|
|
||||||
For testing running server you can run redis.py, if it's working you will see version redis
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
is_versioned: true
|
|
||||||
version_template: "{{ version }}"
|
|
||||||
source_packages:
|
|
||||||
- redis
|
|
||||||
annotations:
|
|
||||||
org.opencontainers.image.revision: ''
|
|
||||||
org.opencontainers.image.source: 'http://redis.io/'
|
|
||||||
org.opencontainers.image.url: ''
|
|
||||||
org.opencontainers.image.version: ''
|
|
||||||
org.opencontainers.image.title: 'redis'
|
|
||||||
org.opencontainers.image.description: 'Redis is an advanced key-value store'
|
|
||||||
org.opencontainers.image.licenses: 'BSD-3-Clause AND BSD-2-Clause AND MIT AND BSL-1.0'
|
|
||||||
org.opencontainers.image.vendor: 'ALT Linux Team'
|
|
||||||
...
|
|
@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/python3
|
|
||||||
|
|
||||||
import redis
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
r = redis.Redis(host='127.0.0.1', port=6379, db=0, username='test', password='test')
|
|
||||||
|
|
||||||
try:
|
|
||||||
info = r.info()
|
|
||||||
print(info['redis_version'])
|
|
||||||
response = r.ping()
|
|
||||||
if response:
|
|
||||||
print("Подключение успешно!")
|
|
||||||
else:
|
|
||||||
print("Не удалось подключиться к Redis.")
|
|
||||||
except redis.exceptions.RedisError as e:
|
|
||||||
print(f"Ошибка: {e}")
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
redis-cli --version && redis-server --version
|
|
@ -1,5 +0,0 @@
|
|||||||
bind 0.0.0.0
|
|
||||||
requirepass test
|
|
||||||
appendonly yes
|
|
||||||
appendfsync everysec
|
|
||||||
user test on -DEBUG +@all ~* >test
|
|
Reference in New Issue
Block a user