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

Docker container not building #117

Open
philfreo opened this issue Aug 16, 2022 · 9 comments
Open

Docker container not building #117

philfreo opened this issue Aug 16, 2022 · 9 comments

Comments

@philfreo
Copy link

$ docker-compose build loconotion     
...
 => ERROR [ 4/12] RUN wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_  3.5s

#0 3.449 The following packages have unmet dependencies:
#0 3.485  google-chrome-stable:amd64 : Depends: libasound2:amd64 (>= 1.0.16) but it is not installable
....
#0 3.485                               Recommends: libvulkan1:amd64 but it is not installable
#0 3.493 E: Unable to correct problems, you have held broken packages.
------
failed to solve: executor failed running [/bin/sh -c wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb   && apt install -y /tmp/chrome.deb   && rm /tmp/chrome.deb]: exit code: 100

Any ideas?

CC @sueszli since I see you're also trying to get things working in Docker

@sueszli
Copy link

sueszli commented Aug 16, 2022

This is an easy one :) @philfreo

Check out the docker file and uncomment the lines that download this dependency.

@sueszli
Copy link

sueszli commented Mar 27, 2023

Update: my pull request to fix this issue wasn't fixed because the Docker build is not a priority for the Author (see: #133)

But I found a work around by auto-installing the chrome driver such that there is no need for docker in the first place in my fork of loconotion here: https://github.com/sueszli/notionSnapshot/

@vlafriday
Copy link

Это легко :)@philfreo

Проверьте файл докера и раскомментируйте строки, которые загружают эту зависимость.

Hi, I'm a beginner 😁 Can you tell me the name of the file where I need to uncomment?

@sueszli
Copy link

sueszli commented May 14, 2023

@vlafriday it's been a while since i last touched this project and I can't remember which line it was anymore.

but as mentioned: in my fork you don't even need docker to build anything

https://github.com/sueszli/notionSnapshot/

@vlafriday
Copy link

@sueszli maybe you have a video tutorial or an article for https://github.com/sueszli/notionSnapshot/ ?

I'm just learning and I'm having difficulties 😢

Thank you very much

@sueszli
Copy link

sueszli commented May 14, 2023

@vlafriday well - sadly i don't :/
but if you learn the basics of python autodidactically you should be fine :)

@vlafriday
Copy link

@sueszli Do I need to add the "snapshots" folder to a project on github? I'm having some problems deploying on vercel
image

@awhiteside1
Copy link

I got a number of dependency issues likely due to the outdated chromedriver version. I was able to replace the custom install and use a maintained chromedriver base image though. The updated dockerfile looks like

FROM rapidfort/python-chromedriver

RUN mkdir -p /app/loconotion/
WORKDIR /app/loconotion/
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY . .
ENTRYPOINT [ "python", "loconotion", "--chromedriver", "/chromedriver/chromedriver"]

@sueszli
Copy link

sueszli commented Jun 26, 2023

@awhiteside1 a docker script is a total overkill for this project as there are chrome auto-installers in python.

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

4 participants