[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #27343 [Core Tor/sbws]: Dockerfile for sbws basic install



#27343: Dockerfile for sbws basic install
-------------------------------+--------------------
     Reporter:  gabe           |      Owner:  (none)
         Type:  enhancement    |     Status:  new
     Priority:  Medium         |  Milestone:
    Component:  Core Tor/sbws  |    Version:
     Severity:  Normal         |   Keywords:
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:                 |
-------------------------------+--------------------
 {{{
 FROM debian

 ENV DEBIAN_FRONTEND=noninteractive

 RUN apt-get update && apt-get -qy install python3-pip git &&  \
         apt-get clean && \
         rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

 RUN useradd --shell /bin/bash -u 1000 -m  test

 USER test

 RUN git clone https://git.torproject.org/stem.git /home/test/stem
 RUN git clone https://github.com/pastly/simple-bw-scanner.git /home/test
 /simple-bw-scanner

 USER root

 RUN pip3 install /home/test/stem
 RUN pip3 install /home/test/simple-bw-scanner

 USER test

 CMD /usr/local/bin/sbws scanner

 }}}

 Just a basic Dockerfile to get sbws installed inside Docker. Note that it
 needs to be adapted a little bit, as it lacks a config file... Whenever I
 figure out the config file aspect, I can get that included easily.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27343>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs