Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add podman as an alternative to docker #18

Merged
merged 1 commit into from
Mar 1, 2024
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
11 changes: 4 additions & 7 deletions api.http
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
POST /_add HTTP/1.1
Host: localhost:4002
Authorization: Basic dXNlcjpwYXNzd29yZA==
POST {{host}}/_add HTTP/1.1
Authorization: Basic {{auth}}
Content-Type: application/json
Content-Length: 58

{
"url": "https://github.com",
Expand All @@ -11,6 +9,5 @@ Content-Length: 58

###

GET /_stats HTTP/1.1
Host: localhost:4002
Authorization: Basic dXNlcjpwYXNzd29yZA==
GET {{host}}/_stats HTTP/1.1
Authorization: Basic {{auth}}
30 changes: 30 additions & 0 deletions beebee.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
##
# Resources for testing and running locally - intended for use with Podman.
##

apiVersion: v1
kind: Pod
metadata:
labels:
app: beebee
name: beebee
spec:
containers:
- name: redis
image: docker.io/library/redis:latest
ports:
- containerPort: 6379
hostPort: 6379
# for beebee if we want to add it to the pod later with ./pod.sh
- containerPort: 4000
hostPort: 4000
volumeMounts:
- mountPath: /data
name: redis-pvc

volumes:
- name: redis-pvc
persistentVolumeClaim:
claimName: beebee-redis

restartPolicy: Never
10 changes: 10 additions & 0 deletions pod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

buildah build \
--build-arg VCS_REF="local" \
--build-arg BUILD_DATE="local" \
--build-arg VERSION="local" \
--tag beebee .

podman container rm --force --ignore "beebee-beebee"
podman run --detach --pod beebee --name "beebee-beebee" beebee
Loading