Remove deb building overdocumentation
This commit is contained in:
parent
d3fbf17acf
commit
8be89e9a25
26
Dockerfile
26
Dockerfile
|
@ -6,43 +6,37 @@ RUN apt-get update
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
||||||
python-msgpack dh-python python-all-dev build-essential libssl-dev \
|
build-essential libcap-dev libssl-dev \
|
||||||
python-stdeb fakeroot python-pip libcap-dev
|
python-all-dev python-msgpack python-pip python-setuptools
|
||||||
|
|
||||||
RUN pip install --upgrade pip
|
RUN pip2 install --upgrade pip
|
||||||
|
|
||||||
EXPOSE 8444 8442
|
EXPOSE 8444 8442
|
||||||
|
|
||||||
ENV HOME /home/bitmessage
|
ENV HOME /home/bitmessage
|
||||||
ENV BITMESSAGE_HOME ${HOME}
|
ENV BITMESSAGE_HOME ${HOME}
|
||||||
|
|
||||||
ENV VER 0.6.3.2
|
|
||||||
|
|
||||||
WORKDIR ${HOME}
|
WORKDIR ${HOME}
|
||||||
ADD . ${HOME}
|
ADD . ${HOME}
|
||||||
|
|
||||||
# Install tests dependencies
|
# Install tests dependencies
|
||||||
RUN pip install -r requirements.txt
|
RUN pip2 install -r requirements.txt
|
||||||
|
# Install
|
||||||
# Build and install deb
|
RUN python2 setup.py install
|
||||||
RUN python2 setup.py sdist \
|
|
||||||
&& py2dsc-deb dist/pybitmessage-${VER}.tar.gz \
|
|
||||||
&& dpkg -i deb_dist/python-pybitmessage_${VER}-1_amd64.deb
|
|
||||||
|
|
||||||
# Create a user
|
# Create a user
|
||||||
RUN useradd bitmessage && chown -R bitmessage ${HOME}
|
RUN useradd bitmessage && chown -R bitmessage ${HOME}
|
||||||
|
|
||||||
USER bitmessage
|
USER bitmessage
|
||||||
|
|
||||||
# Generate default config
|
|
||||||
RUN src/bitmessagemain.py -t && mv keys.dat /tmp
|
|
||||||
|
|
||||||
# Clean HOME
|
# Clean HOME
|
||||||
RUN rm -rf ${HOME}/*
|
RUN rm -rf ${HOME}/*
|
||||||
|
|
||||||
|
# Generate default config
|
||||||
|
RUN pybitmessage -t
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
RUN mv /tmp/keys.dat . \
|
RUN APIPASS=$(tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo) \
|
||||||
&& APIPASS=$(tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo) \
|
|
||||||
&& echo "\napiusername: api\napipassword: $APIPASS" \
|
&& echo "\napiusername: api\napipassword: $APIPASS" \
|
||||||
&& echo "apienabled = true\napiinterface = 0.0.0.0\napiusername = api\napipassword = $APIPASS" >> keys.dat
|
&& echo "apienabled = true\napiinterface = 0.0.0.0\napiusername = api\napipassword = $APIPASS" >> keys.dat
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user