I'm trying to start the service "windsribe vpn" and then login. my docker file is able to run the start command etc/init.d/windscribe-cli start to start the service but it skips the command windscribe login,
when I run sudo docker-compose up the output is:
Starting windscribe ... OK
which means it started but it stays there, is not showing any errors.
it doesn't show any other output but should be showing
Windscribe Username: example-username
Windscribe Password: example-password
in the output to login
I'm using the line
CMD bash -c "/etc/init.d/windscribe-cli start && windscribe login" and I even try to run other lines like:
CMD bash -c "/etc/init.d/windscribe-cli start && python3 myscript.py" which works for starting the service and running the python script but for some reason it never shows the login output
this is my DockerFile
FROM ubuntu:latest
RUN apt-get update
#install windscribe
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key FDC247B7
RUN echo 'deb https://repo.windscribe.com/ubuntu bionic main' | tee /etc/apt/sources.list.d/windscribe-repo.list
RUN apt-get -y update
RUN apt-get install -y windscribe-cli
ENV HOME /home/host
COPY ["./"]
CMD bash -c "/etc/init.d/windscribe-cli start && windscribe login"
and this is my docker-compose.yml
version: "3"
services:
app:
image: my-app:latest
deploy:
replicas: 1
update_config:
parallelism: 1
delay: 5s
restart_policy:
condition: on-failure
build: .
environment:
- DISPLAY=${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
networks:
- scrapping
tty: true
networks:
scrapping:
ipam:
driver: default
config:
- subnet: 192.168.150.0/24
EDIT here I'm adding the output for the command windscribe status and the cmd line would look like this CMD bash -c "/etc/init.d/windscribe-cli start && windscribe status && windscribe login"
and it's output is:
Starting windscribe ... OK
windscribe -- pid: 19, status: running, uptime: 0m, %cpu: 0.0, %mem:
0.2