feast icon indicating copy to clipboard operation
feast copied to clipboard

How to run / develop for Feast with `podman` on RHEL & Fedora

Open tchughesiv opened this issue 9 months ago • 0 comments

Overview

This guide summarizes how both end users and Feast developers can get podman set up, instead of docker, to use or develop for Feast. The instructions below were successfully tested on Fedora and RHEL machines.

Installation Guide

  1. Install and configure podman
sudo dnf install podman-docker

# ensure "docker.io" is first in the `unqualified-search-registries` config array
## e.g. unqualified-search-registries = ["docker.io", "registry.fedoraproject.org", "quay.io"]
# also, ensure `short-name-mode` is set to "permissive" or "disabled"
## e.g. short-name-mode="permissive"
sudo vi /etc/containers/registries.conf
  1. Enable the podman socket

for non-root users

systemctl --user enable --now podman.socket
systemctl --user status podman.socket

for root users

systemctl enable --now podman.socket
systemctl status podman.socket
  1. Set environment variables
# should return something like `unix:///run/user/{user's uid}/podman/podman.sock` or `unix:///run/podman/podman.sock`
export DOCKER_HOST=unix://$(podman info --format '{{.Host.RemoteSocket.Path}}') && echo ${DOCKER_HOST}
export TESTCONTAINERS_RYUK_DISABLED=true

tchughesiv avatar May 09 '24 18:05 tchughesiv