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

Package requirements #11

Open
6r1d opened this issue Jul 14, 2022 · 2 comments
Open

Package requirements #11

6r1d opened this issue Jul 14, 2022 · 2 comments

Comments

@6r1d
Copy link
Collaborator

6r1d commented Jul 14, 2022

Hello, I've tried to build fresh logimu in Docker and it failed several times until I installed some packages.

I don't know Cargo well, but if it can detect the distro and recommend to install packages, that'd be great. Otherwise, those could be added in the README.md, so the whole build process is shortened with the length of packages to be installed.

Anyway, there's my list for now:

  • pkg-config
  • libcairo-dev
  • libpango1.0-dev
  • libgtk-3-dev
  • libxcb-shape0
  • libxcb-xfixes0
  • libxcb-shape0-dev
  • libxcb-xfixes0-dev

What is the preferable solution?

@6r1d
Copy link
Collaborator Author

6r1d commented Jul 14, 2022

Example Dockerfile for the context (using Logimu as the username):

FROM debian:bullseye-20220418

RUN apt-get update && apt-get install -y curl wget bash git build-essential python python3 python3-pip pkg-config libcairo-dev libpango1.0-dev libgtk-3-dev libxcb-shape0 libxcb-xfixes0 libxcb-shape0-dev libxcb-xfixes0-dev

RUN useradd -ms /bin/bash -u 1000 logimu
RUN chown logimu:logimu /home/logimu
USER logimu

WORKDIR /home/logimu

Example docker-compose.yml:

version: "3.2"

services:

  insulator:
    build:
      context: "./"
    command: ["/usr/bin/tail", "-F", "/nonexistent"]
    volumes:
      - ./userdir:/home/logimu

@Demindiro
Copy link
Owner

I don't know Cargo well, but if it can detect the distro and recommend to install packages, that'd be great. Otherwise, those could be added in the README.md, so the whole build process is shortened with the length of packages to be installed.

It should be able to with build.rs, which can execute any arbitrary code, but I think it's more practical to add a note to README instead of trying to detect a bunch of different platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants