rocky-linux / documentation

Official Rocky Linux documentation repository.
https://docs.rockylinux.org
Creative Commons Attribution Share Alike 4.0 International
353 stars 298 forks source link

Podman Local Development (docs.rockylinux.org) Guide #1714

Open j0eybrinkman opened 7 months ago

j0eybrinkman commented 7 months ago

I followed this guide step-by-step and it does not work for my system.

Tested on: OS-release = Rocky Linux 9.3 Python version = 3.9 Podman version = 4.6.1

Guide: https://docs.rockylinux.org/guides/contribute/localdocs/rockydocs_webdev_v2/

Errors during final step, running 'docker-compose up': rockydocs-mkdocs-1 | error: patch failed: requirements.txt:1 rockydocs-mkdocs-1 | error: requirements.txt: patch does not apply rockydocs-mkdocs-1 | error: patch failed: mkdocs.yml:58 rockydocs-mkdocs-1 | error: mkdocs.yml: patch does not apply rockydocs-mkdocs-1 exited with code 1

sspencerwire commented 7 months ago

@j0eybrinkman I'm sorry that this procedure isn't working for you. Let me see if I can duplicate your issue. Thank you!

sspencerwire commented 7 months ago

@j0eybrinkman I was able to get this to work in 9.3 w/o an issue, however there does appear to be a problem with the docker-compose up command, as for me, I had to run it with sudo or I got permissions errors. [disclaimer: I don't use this particular local docs method, so I did this in a container just to test the procedure.] A couple of questions:

  1. Did you start by verifying that the prerequisites were met? For me, I just went to that section and installed them all, even if they already existed, just to be sure.
  2. If you run pwd just prior to running the docker-compose up command, what does it show?
sspencerwire commented 7 months ago

@wale Can you perhaps lend a hand here with @j0eybrinkman and this procedure? I've asked a couple of questions above.

j0eybrinkman commented 7 months ago

Ran through the steps again but I get the same errors. I'm not sure what I am doing wrong.

sudo dnf -y install podman podman-docker git

sudo systemctl enable --now podman.socket

sudo curl -SL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose

sudo chmod 755 /usr/local/bin/docker-compose

sudo chmod 666 /var/run/docker.sock

git clone https://github.com/rocky-linux/documentation.git

git clone https://github.com/rocky-linux/docs.rockylinux.org.git

systemctl enable --now podman.socket

curl -SL https://raw.githubusercontent.com/rocky-linux/documentation-test/main/docs/labs/docker-compose-rockydocs.yml -o docker-compose.yml

docker-compose up


pwd = /home/me/projects/rockydocs


I had to run sudo to output docker-compose to /usr/local/bin but did not need to use it to run docker-compose.

wale commented 7 months ago

@wale Can you perhaps lend a hand here with @j0eybrinkman and this procedure? I've asked a couple of questions above.

I don't think I can help, because I have no relation to the Rocky Linux project. You must have me confused for someone else.

wsoyinka commented 7 months ago

@j0eybrinkman @sspencerwire - New updated docker image has been updated to the registry. Please try again.

(p.s. I need to look further into the docker compose approach. Launching or using with compose is broken)

sspencerwire commented 4 months ago

@j0eybrinkman Is this issue resolved?

j0eybrinkman commented 4 months ago

@sspencerwire I will test tonight and record going through steps! Will update soon

j0eybrinkman commented 4 months ago

Screenshot from 2024-05-06 23-20-37