Closed jcgruenhage closed 7 years ago
I never ran npm yet when I tested borgweb, it is not required.
Ahh okay, I followed the wrong instructions, appearantly they were for the whole developement environment. However, even after finding where the binary is, there seems to be a problem with automatically changing the interface in the config.py file. Edititng the file with sed did somehow not work, Forking it, editing and commiting it and using my fork as the clone url did not work too, however, manually editing and re-running pip install -e . did work. Any idea what might cause that?
Well, make sure you edit the code that is actually executed. Usually the -e .
is for that, though.
Well, this is my Dockerfile now:
FROM ubuntu:16.04
MAINTAINER Jan Christian Grünhage <mail@janchristiangruenhage.de>
RUN apt update \
&& apt install -y borgbackup git python3-pip \
&& pip3 install --upgrade pip
RUN git clone https://github.com/jcgruenhage/borgweb.git \
&& cd borgweb \
&& pip install -e . \
&& cd ../../ \
&& mkdir logs
EXPOSE 5000
CMD ["/usr/local/bin/borgweb"]
Cloning this repo on my vm works, cloning in in the container somehow does not carry over the config.py change, even though all caching is disabled... Very strange.
With that being said, this is not an issue of borgweb obviously, so I'll close this.
Hello,
I tried building a docker container for borgweb, but the installation messed up at some point, which resulted in the absence of .borg-env/bin/borgweb. I suspect that the problem comes from npm since npm spat out quite a lot of warnings.
My Dockerfile:
The npm warnings:
Since the near 2000 lines of output would be way too much for this issue, I put it in a gist: https://gist.github.com/jcgruenhage/9372981355cf137101be86e660350b5f
Do you have any idea what went wrong?