Last change
on this file was
58a023e4,
checked in by Brian Warner <warner@…>, at 2017-09-19T16:25:39Z
|
add dockerfile for hacking with docker compose file for local environment
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | FROM debian:9 |
---|
2 | LABEL maintainer "gordon@leastauthority.com" |
---|
3 | RUN apt-get update |
---|
4 | RUN DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade |
---|
5 | RUN DEBIAN_FRONTEND=noninteractive apt-get -yq install build-essential python-dev libffi-dev libssl-dev python-virtualenv git |
---|
6 | RUN \ |
---|
7 | git clone https://github.com/tahoe-lafs/tahoe-lafs.git /root/tahoe-lafs; \ |
---|
8 | cd /root/tahoe-lafs; \ |
---|
9 | virtualenv --python=python2.7 venv; \ |
---|
10 | ./venv/bin/pip install --upgrade setuptools; \ |
---|
11 | ./venv/bin/pip install --editable .; \ |
---|
12 | ./venv/bin/tahoe --version; |
---|
13 | RUN \ |
---|
14 | cd /root; \ |
---|
15 | mkdir /root/.tahoe-client; \ |
---|
16 | mkdir /root/.tahoe-introducer; \ |
---|
17 | mkdir /root/.tahoe-server; |
---|
18 | RUN /root/tahoe-lafs/venv/bin/tahoe create-introducer --location=tcp:introducer:3458 --port=tcp:3458 /root/.tahoe-introducer |
---|
19 | RUN /root/tahoe-lafs/venv/bin/tahoe start /root/.tahoe-introducer |
---|
20 | RUN /root/tahoe-lafs/venv/bin/tahoe create-node --location=tcp:server:3457 --port=tcp:3457 --introducer=$(cat /root/.tahoe-introducer/private/introducer.furl) /root/.tahoe-server |
---|
21 | RUN /root/tahoe-lafs/venv/bin/tahoe create-client --webport=3456 --introducer=$(cat /root/.tahoe-introducer/private/introducer.furl) --basedir=/root/.tahoe-client --shares-needed=1 --shares-happy=1 --shares-total=1 |
---|
22 | VOLUME ["/root/.tahoe-client", "/root/.tahoe-server", "/root/.tahoe-introducer"] |
---|
23 | EXPOSE 3456 3457 3458 |
---|
24 | ENTRYPOINT ["/root/tahoe-lafs/venv/bin/tahoe"] |
---|
25 | CMD [] |
---|
Note: See
TracBrowser
for help on using the repository browser.