Windscribe / Desktop-App

Windscribe 2.0 desktop client for Windows, Mac and Linux
https://windscribe.com
GNU General Public License v2.0
636 stars 88 forks source link

[Not Bug] Want To Install Windscribe cli for docker container #184

Open Damji7 opened 1 month ago

Damji7 commented 1 month ago

Hello,

Am Trying To intall the windscribe cli ubuntu/debian inside a docker container, but everytime i install the deps and then when it starts building the app , it crashs, Can You Guide Correctly How To Install it.

Ps: Reply Directly With the Docker File Set Up

Thanks And Regards.

bernerdad commented 1 month ago

Hi. Just to clarify, are you trying to build the CLI using the 'Build with Docker' instructions in our readme and it is failing?

Damji7 commented 1 month ago

Yes it is, i installed all the deps that windscribe needs(based on your docker file), and then i download the .dep file , and tried to install it inside docker it crash, and i tried the second time i followed the instructions from the github it crashs again, i didn't understand it, am i wrong in the deps or it is from the app it self, so if can provide me with the correct details or with docker file it'll be great.

Thanks and regards 🙏

Envoyé à partir de Outlook pour Androidhttps://aka.ms/AAb9ysg


From: Jonathan Martin @.> Sent: Monday, October 14, 2024 5:15:32 PM To: Windscribe/Desktop-App @.> Cc: Damji7 @.>; Author @.> Subject: Re: [Windscribe/Desktop-App] [Not Bug] Want To Install Windscribe cli for docker container (Issue #184)

Hi. Just to clarify, are you trying to build the CLI using the 'Build with Docker' instructions in our readme and it is failing?

— Reply to this email directly, view it on GitHubhttps://github.com/Windscribe/Desktop-App/issues/184#issuecomment-2411701772, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7FOZECS7HZ3C6PNWPQ6NLLZ3PU2JAVCNFSM6AAAAABP2UWXFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJRG4YDCNZXGI. You are receiving this because you authored the thread.Message ID: @.***>

bernerdad commented 1 month ago

There are 4 steps in the Build with Docker section of the readme. Please perform only those 4 steps and let us know which step you encounter the issue on, including the error output. Thanks!

Damji7 commented 1 month ago

Well Thats Whats In My Docker File

=======================

Windscribe

=======================

COPY ./tools/requirements.txt /r/ ENV PATH=/opt/cmake/bin:$PATH ENV DEBIAN_FRONTEND=noninteractive RUN apt update && apt install -y build-essential cmake git curl patchelf libpam0g-dev software-properties-common libgl1-mesa-dev fakeroot python3-pip zip unzip libnl-genl-3-dev pkg-config libcap-ng-dev wget autoconf libtool libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-cursor-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev RUN python3 -m pip install -r /r/requirements.txt

RUN wget https://go.dev/dl/go1.22.5.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz RUN ln -sf /usr/local/go/bin/go /usr/local/bin/go

RUN wget https://cmake.org/files/v3.29/cmake-3.29.6-linux-x86_64.sh && mkdir -p /opt/cmake && yes | sh cmake-3.29.6-linux-x86_64.sh --prefix=/opt/cmake RUN ln -sf /opt/cmake/cmake-3.29.6-linux-x86_64/bin/cmake /usr/bin/cmake

WORKDIR /windscribe

RUN apt-get update && \ wget https://github.com/Windscribe/Desktop-App/releases/download/v2.11.11/windscribe-cli_2.11.11_amd64.deb && \ apt-get install -y ./windscribe-cli_2.11.11_amd64.deb && \ rm ./windscribe-cli_2.11.11_amd64.deb

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

Do I need To download Both Gui And CLi , or just cli , in my case i need the cli only.

Am i correct or i need to add things ?


De : Jonathan Martin @.> Envoyé : mardi 15 octobre 2024 17:46 À : Windscribe/Desktop-App @.> Cc : Damji7 @.>; Author @.> Objet : Re: [Windscribe/Desktop-App] [Not Bug] Want To Install Windscribe cli for docker container (Issue #184)

There are 4 steps in the Build with Docker section of the readme. Please perform only those 4 steps and let us know which step you encounter the issue on, including the error output. Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/Windscribe/Desktop-App/issues/184#issuecomment-2414523294, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7FOZEF4ZO7EFIIXXK4UTC3Z3VBH5AVCNFSM6AAAAABP2UWXFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUGUZDGMRZGQ. You are receiving this because you authored the thread.Message ID: @.***>

Damji7 commented 1 month ago

Update:

I attach you the docker file and the error am getting, i've tried all the things without results, if you can modifie the Windscribe section in docker file and send it back you will save me a lot of time.


De : Jonathan Martin @.> Envoyé : mardi 15 octobre 2024 17:46 À : Windscribe/Desktop-App @.> Cc : Damji7 @.>; Author @.> Objet : Re: [Windscribe/Desktop-App] [Not Bug] Want To Install Windscribe cli for docker container (Issue #184)

There are 4 steps in the Build with Docker section of the readme. Please perform only those 4 steps and let us know which step you encounter the issue on, including the error output. Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/Windscribe/Desktop-App/issues/184#issuecomment-2414523294, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A7FOZEF4ZO7EFIIXXK4UTC3Z3VBH5AVCNFSM6AAAAABP2UWXFCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJUGUZDGMRZGQ. You are receiving this because you authored the thread.Message ID: @.***>

SeleniumBase Docker Image

FROM ubuntu:22.04

Set up shell options

SHELL ["/bin/bash", "-o", "pipefail", "-c"] ENV PYTHONUNBUFFERED=1 ENV PYTHONIOENCODING=UTF-8

======================

Locale Configuration

======================

RUN apt-get update && \ apt-get install -y --no-install-recommends tzdata locales && \ sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen && \ ln -snf /usr/share/zoneinfo/America/New_York /etc/localtime && \ echo "America/New_York" > /etc/timezone && \ echo "LANG=en_US.UTF-8" > /etc/locale.conf && \ locale-gen en_US.UTF-8

======================

Install Common Fonts

======================

RUN apt-get update && \ apt-get install -y \ fonts-liberation \ fonts-liberation2 \ fonts-font-awesome \ fonts-ubuntu \ fonts-terminus \ fonts-powerline \ fonts-open-sans \ fonts-mononoki \ fonts-roboto \ fonts-lato

============================

Install Linux Dependencies

============================

RUN apt-get update && \ apt-get install -y \ libasound2 \ libatk-bridge2.0-0 \ libatk1.0-0 \ libatspi2.0-0 \ libcups2 \ libdbus-1-3 \ libdrm2 \ libgbm1 \ libgtk-3-0 \ libnspr4 \ libnss3 \ libu2f-udev \ libvulkan1 \ libwayland-client0 \ libxcomposite1 \ libxdamage1 \ libxfixes3 \ libxkbcommon0 \ libxrandr2

==========================

Install useful utilities

==========================

RUN apt-get update && \ apt-get install -y xdg-utils ca-certificates

=================================

Install Bash Command Line Tools

=================================

RUN apt-get update && \ apt-get install -y --no-install-recommends \ curl \ sudo \ unzip \ vim \ wget \ xvfb

================

Install Chrome

================

RUN apt-get update && \ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ apt-get install -y ./google-chrome-stable_current_amd64.deb && \ rm ./google-chrome-stable_current_amd64.deb

================

Install Python

================

RUN apt-get update && \ apt-get install -y python3 python3-pip python3-setuptools python3-dev python3-tk && \ apt-get -qy --no-install-recommends install python3.10 && \ rm /usr/bin/python3 && \ ln -s python3.10 /usr/bin/python3

===============

Cleanup Lists

===============

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

=====================

Set up SeleniumBase

=====================

COPY SeleniumBase/sbase SeleniumBase/sbase/ COPY SeleniumBase/seleniumbase SeleniumBase/seleniumbase/ COPY SeleniumBase/examples SeleniumBase/examples/ COPY SeleniumBase/integrations SeleniumBase/integrations/ COPY SeleniumBase/requirements.txt SeleniumBase/requirements.txt COPY SeleniumBase/setup.py SeleniumBase/setup.py COPY SeleniumBase/MANIFEST.in SeleniumBase/MANIFEST.in COPY SeleniumBase/pytest.ini SeleniumBase/pytest.ini COPY SeleniumBase/setup.cfg SeleniumBase/setup.cfg COPY SeleniumBase/virtualenv_install.sh SeleniumBase/virtualenv_install.sh

RUN find . -name '*.pyc' -delete && \ pip install --upgrade pip setuptools wheel && \ cd /SeleniumBase && pip install -r requirements.txt --upgrade && \ cd /SeleniumBase && pip install . && \ pip install pyautogui

=======================

Download chromedriver

=======================

RUN seleniumbase get chromedriver --path

=======================

Copy Your Scripts

=======================

COPY script/autriche.py /app/autriche.py COPY script/vpn.py /app/vpn.py COPY script/telegrambot.py /app/telegrambot.py COPY script/config.ini /app/config.ini COPY script/requirements.txt /app/requirements.txt

=======================

Install Your Requirements

=======================

WORKDIR /app RUN pip install -r requirements.txt RUN pip install --upgrade seleniumbase

=======================

Windscribe

=======================

COPY Desktop-App/tools/requirements.txt /windscribe/requirements.txt

ENV PATH=/opt/cmake/bin:$PATH ENV DEBIAN_FRONTEND=noninteractive

RUN apt update && \ apt install -y build-essential git curl patchelf libpam0g-dev software-properties-common libgl1-mesa-dev fakeroot python3-pip zip unzip libnl-genl-3-dev pkg-config libcap-ng-dev wget autoconf libtool libfontconfig1-dev libfreetype6-dev libx11-dev libx11-xcb-dev libxext-dev libxfixes-dev libxi-dev libxrender-dev libxcb1-dev libxcb-cursor-dev libxcb-glx0-dev libxcb-keysyms1-dev libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-util-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev libwayland-dev cmake # Add 'cmake' to install from package manager

RUN python3 -m pip install -r /windscribe/requirements.txt

RUN wget https://go.dev/dl/go1.22.5.linux-amd64.tar.gz && rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz RUN ln -sf /usr/local/go/bin/go /usr/local/bin/go

RUN apt-get update && \ apt-get install -y wget && \ wget https://github.com/Windscribe/Desktop-App/releases/download/v2.11.11/windscribe-cli_2.11.11_amd64.deb && \ apt-get install -y --no-install-recommends ./windscribe-cli_2.11.11_amd64.deb && \ rm ./windscribe-cli_2.11.11_amd64.deb

RUN apt-get clean && rm -rf /var/lib/apt/lists/*

==========================================

Create entrypoint and grab example tests

==========================================

COPY entrypoint.sh /app/entrypoint.sh RUN chmod +x /app/entrypoint.shape

ENTRYPOINT ["/app/entrypoint.sh"] 13.14 2024-10-19 19:12:54 (3.31 MB/s) - 'windscribe-cli_2.11.11_amd64.deb' saved [19177392/19177392] 13.14 13.22 Reading package lists... 14.99 Building dependency tree... 15.30 Reading state information... 15.65 The following additional packages will be installed: 15.65 iproute2 iptables iputils-ping libbpf0 libip6tc2 libmnl0 15.65 libnetfilter-conntrack3 libnfnetlink0 libnftnl11 libxtables12 net-tools 15.66 Suggested packages: 15.66 iproute2-doc firewalld kmod nftables 15.66 Recommended packages: 15.66 libatm1 15.72 The following NEW packages will be installed: 15.72 iproute2 iptables iputils-ping libbpf0 libip6tc2 libmnl0 15.72 libnetfilter-conntrack3 libnfnetlink0 libnftnl11 libxtables12 net-tools 15.72 windscribe-cli 16.02 0 upgraded, 12 newly installed, 0 to remove and 2 not upgraded. 16.02 Need to get 2103 kB/21.3 MB of archives. 16.02 After this operation, 7817 kB of additional disk space will be used. 16.02 Get:1 /app/windscribe-cli_2.11.11_amd64.deb windscribe-cli amd64 2.11.11 [19.2 MB] 16.07 Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libbpf0 amd64 1:0.5.0-1ubuntu22.04.1 [140 kB] 16.63 Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmnl0 amd64 1.0.4-3build2 [13.2 kB] 16.64 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libxtables12 amd64 1.8.7-1ubuntu5.2 [31.3 kB] 16.65 Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 iproute2 amd64 5.15.0-1ubuntu2 [1070 kB] 17.07 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 iputils-ping amd64 3:20211215-1 [42.9 kB] 17.08 Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libip6tc2 amd64 1.8.7-1ubuntu5.2 [20.3 kB] 17.08 Get:8 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnfnetlink0 amd64 1.0.1-3build3 [14.6 kB] 17.09 Get:9 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnetfilter-conntrack3 amd64 1.0.9-1 [45.3 kB] 17.10 Get:10 http://archive.ubuntu.com/ubuntu jammy/main amd64 libnftnl11 amd64 1.2.1-1build1 [65.5 kB] 17.10 Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 iptables amd64 1.8.7-1ubuntu5.2 [455 kB] 17.16 Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 net-tools amd64 1.60+git20181103.0eebece-1ubuntu5 [204 kB] 17.62 debconf: delaying package configuration, since apt-utils is not installed 17.69 Fetched 2103 kB in 1s (1473 kB/s) 17.77 Selecting previously unselected package libbpf0:amd64. (Reading database ... 47944 files and directories currently installed.) 18.20 Preparing to unpack .../00-libbpf0_1%3a0.5.0-1ubuntu22.04.1_amd64.deb ... 18.22 Unpacking libbpf0:amd64 (1:0.5.0-1ubuntu22.04.1) ... 18.32 Selecting previously unselected package libmnl0:amd64. 18.33 Preparing to unpack .../01-libmnl0_1.0.4-3build2_amd64.deb ... 18.33 Unpacking libmnl0:amd64 (1.0.4-3build2) ... 18.42 Selecting previously unselected package libxtables12:amd64. 18.42 Preparing to unpack .../02-libxtables12_1.8.7-1ubuntu5.2_amd64.deb ... 18.43 Unpacking libxtables12:amd64 (1.8.7-1ubuntu5.2) ... 18.51 Selecting previously unselected package iproute2. 18.52 Preparing to unpack .../03-iproute2_5.15.0-1ubuntu2_amd64.deb ... 18.53 Unpacking iproute2 (5.15.0-1ubuntu2) ... 18.65 Selecting previously unselected package iputils-ping. 18.65 Preparing to unpack .../04-iputils-ping_3%3a20211215-1_amd64.deb ... 18.67 Unpacking iputils-ping (3:20211215-1) ... 18.74 Selecting previously unselected package libip6tc2:amd64. 18.75 Preparing to unpack .../05-libip6tc2_1.8.7-1ubuntu5.2_amd64.deb ... 18.76 Unpacking libip6tc2:amd64 (1.8.7-1ubuntu5.2) ... 18.83 Selecting previously unselected package libnfnetlink0:amd64. 18.84 Preparing to unpack .../06-libnfnetlink0_1.0.1-3build3_amd64.deb ... 18.85 Unpacking libnfnetlink0:amd64 (1.0.1-3build3) ... 18.93 Selecting previously unselected package libnetfilter-conntrack3:amd64. 18.94 Preparing to unpack .../07-libnetfilter-conntrack3_1.0.9-1_amd64.deb ... 18.95 Unpacking libnetfilter-conntrack3:amd64 (1.0.9-1) ... 19.03 Selecting previously unselected package libnftnl11:amd64. 19.03 Preparing to unpack .../08-libnftnl11_1.2.1-1build1_amd64.deb ... 19.04 Unpacking libnftnl11:amd64 (1.2.1-1build1) ... 19.12 Selecting previously unselected package iptables. 19.12 Preparing to unpack .../09-iptables_1.8.7-1ubuntu5.2_amd64.deb ... 19.13 Unpacking iptables (1.8.7-1ubuntu5.2) ... 19.26 Selecting previously unselected package net-tools. 19.27 Preparing to unpack .../10-net-tools_1.60+git20181103.0eebece-1ubuntu5_amd64.deb ... 19.28 Unpacking net-tools (1.60+git20181103.0eebece-1ubuntu5) ... 19.36 Selecting previously unselected package windscribe-cli. 19.37 Preparing to unpack .../11-windscribe-cli_2.11.11_amd64.deb ... 19.42 /var/lib/dpkg/tmp.ci/preinst: line 19: killall: command not found 19.43 System has not been booted with systemd as init system (PID 1). Can't operate. 19.43 Failed to connect to bus: Host is down 19.43 Finish pre-install script 19.43 Unpacking windscribe-cli (2.11.11) ... 22.45 Setting up net-tools (1.60+git20181103.0eebece-1ubuntu5) ... 22.48 Setting up libip6tc2:amd64 (1.8.7-1ubuntu5.2) ... 22.50 Setting up libmnl0:amd64 (1.0.4-3build2) ... 22.52 Setting up libxtables12:amd64 (1.8.7-1ubuntu5.2) ... 22.54 Setting up libnfnetlink0:amd64 (1.0.1-3build3) ... 22.57 Setting up libbpf0:amd64 (1:0.5.0-1ubuntu22.04.1) ... 22.59 Setting up iputils-ping (3:20211215-1) ... 22.63 Setting up iproute2 (5.15.0-1ubuntu2) ... 22.93 Setting up libnftnl11:amd64 (1.2.1-1build1) ... 22.96 Setting up libnetfilter-conntrack3:amd64 (1.0.9-1) ... 22.98 Setting up iptables (1.8.7-1ubuntu5.2) ... 23.03 update-alternatives: using /usr/sbin/iptables-legacy to provide /usr/sbin/iptables (iptables) in auto mode 23.05 update-alternatives: using /usr/sbin/ip6tables-legacy to provide /usr/sbin/ip6tables (ip6tables) in auto mode 23.06 update-alternatives: using /usr/sbin/iptables-nft to provide /usr/sbin/iptables (iptables) in auto mode 23.06 update-alternatives: using /usr/sbin/ip6tables-nft to provide /usr/sbin/ip6tables (ip6tables) in auto mode 23.07 update-alternatives: using /usr/sbin/arptables-nft to provide /usr/sbin/arptables (arptables) in auto mode 23.08 update-alternatives: using /usr/sbin/ebtables-nft to provide /usr/sbin/ebtables (ebtables) in auto mode 23.09 Setting up windscribe-cli (2.11.11) ... 23.12 Created symlink /etc/systemd/system/multi-user.target.wants/windscribe-helper.service → /lib/systemd/system/windscribe-helper.service. 23.12 System has not been booted with systemd as init system (PID 1). Can't operate. 23.12 Failed to connect to bus: Host is down 23.12 dpkg: error processing package windscribe-cli (--configure): 23.12 installed windscribe-cli package post-installation script subprocess returned error exit status 1 23.12 Processing triggers for libc-bin (2.35-0ubuntu3.8) ... 23.23 Errors were encountered while processing: 23.23 windscribe-cli 23.25 E: Sub-process /usr/bin/dpkg returned an error code (1)

Dockerfile:160

159 | # Windscribe installation 160 | >>> RUN apt-get update && \ 161 | >>> apt-get install -y wget && \ 162 | >>> wget https://github.com/Windscribe/Desktop-App/releases/download/v2.11.11/windscribe-cli_2.11.11_amd64.deb && \ 163 | >>> apt-get install -y --no-install-recommends ./windscribe-cli_2.11.11_amd64.deb && \ 164 | >>> rm ./windscribe-cli_2.11.11_amd64.deb 165 |

ERROR: failed to solve: process "/bin/bash -o pipefail -c apt-get update && apt-get install -y wget && wget https://github.com/Windscribe/Desktop-App/releases/download/v2.11.11/windscribe-cli_2.11.11_amd64.deb && apt-get install -y --no-install-recommends ./windscribe-cli_2.11.11_amd64.deb && rm ./windscribe-cli_2.11.11_amd64.deb" did not complete successfully: exit code: 100

jaxu commented 1 month ago

You don't need any of those dependencies -- the dependencies are for building the package. You are just installing the package, and it the package manager should pull in all the correct dependencies automatically.

I don't know what error you are running into though -- you have not provided any indication of what the output is when you try to run it.