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

make install.catatonic is not arch friendly #2699

Closed
baude opened this issue Mar 18, 2019 · 18 comments
Closed

make install.catatonic is not arch friendly #2699

baude opened this issue Mar 18, 2019 · 18 comments
Assignees
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@baude
Copy link
Member

baude commented Mar 18, 2019

make install.catatonit is not going to work on any arch other than x86_64 because it appears to be pulling a compiled binary for x86_64. We need an arch friendly way of dealing with this.

@tobwen
Copy link
Contributor

tobwen commented Mar 18, 2019

export GOPATH="$HOME/go"
catatonit_src="openSUSE/catatonit"
          src="$GOPATH/src/github.com/$catatonit_src"
       target="$GOPATH/podman/"

[ -d "$GOPATH" ] || mkdir -p "$GOPATH"
[ -d "$src" ]    || mkdir -p "$src"
[ -d "$target" ] || mkdir -p "$target"

cd "$target"
( git clone --depth=1 "https://github.com/$catatonit_src" "$src" && \
  cd src && autoreconf -i && ./configure && make && make install DESTDIR=$target )

@baude
Copy link
Member Author

baude commented Mar 18, 2019

sure, but frankly i am struggling with this a little. it is clearly a dependency and I find it a bit unusual having dependencies installed like this. thoughts?

@afbjorklund
Copy link
Contributor

I built it from source. Not sure why it defaults to binary, or why not just add it as a dependency ?

Added these steps, to the above:

eval `grep ^CATATONIT_VERSION hack/install_catatonit.sh`

in libpod

git checkout $CATATONIT_VERSION

in catatonit

Also had to patch the location in (libpod.conf and libpod/runtime.go), since it had been hardcoded.

@afbjorklund
Copy link
Contributor

@tobwen : catatonit is a C program. it looks a little odd in a Go directory ?

@vrothberg
Copy link
Member

I suggest cloning catatonit into a tmp directory, build it there, copy it to the CATATONIT_PATH, and remove the directory.

@tobwen
Copy link
Contributor

tobwen commented Mar 20, 2019

@afbjorklund Sure, this is just my podman rendering stack, where anything _GO_es into: https://gist.github.com/tobwen/25a010d3b90a6491e5646c0e77163557

@baude
Copy link
Member Author

baude commented Mar 20, 2019

Why isn't it just a dep like runc or conmon

@rhatdan
Copy link
Member

rhatdan commented Mar 20, 2019

Someone would need to package it up and get it into Fedora/RHEL/Centos. Currently we are just using this as an internal tool of podman.

@vrothberg
Copy link
Member

@lsm5 has a card for that but more important things keep popping up.

@tobwen
Copy link
Contributor

tobwen commented Mar 20, 2019

@rhatdan For what do you use it? I often don't compile it at all. I thought, it's PID 1 for the container when activated?

@afbjorklund
Copy link
Contributor

Maybe it needs to be in a separate package because of licensing issues ? (GPLv3+, vs. ASL 2.0)

I just added it for completeness (i.e. run --init), using tini for the actual container examples...

@rhatdan
Copy link
Member

rhatdan commented Apr 13, 2019

@lsm5 Any movement on this? Has anyone else worked on it?

@baude
Copy link
Member Author

baude commented May 29, 2019

@rhatdan @vrothberg what should we do here? i believe this is still an issue

@baude
Copy link
Member Author

baude commented Aug 2, 2019

ping @vrothberg ideas?

@vrothberg
Copy link
Member

ping @vrothberg ideas?

I am cool with using tini for CI. catatonit isn't packaged for Fedora yet and tini should be available everywhere.

@baude
Copy link
Member Author

baude commented Sep 23, 2019

we need to get an answer here ... what is required to not do what we are doing?

@vrothberg
Copy link
Member

@baude, we can either clone the repository and build it or we download the pre-built binaries from https://github.com/krallin/tini/releases.

I prefer cloning and building catatonit. Will look into this tomorrow morning to warmup.

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

5 participants