-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ready 1.0 release, update contrib/tate-release, update readme/release…
…-notes
- Loading branch information
Showing
21 changed files
with
401 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
FROM ubuntu:14.04 | ||
MAINTAINER Rob Nelson <[email protected]> | ||
|
||
VOLUME ["/opt/wine-electrum/drive_c/tate"] | ||
|
||
RUN apt-get update -y \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get install -y git python-pip pyqt4-dev-tools zip unzip \ | ||
&& pip install --pre slowaes && pip install ecdsa \ | ||
&& pip install pyasn1 && pip install pyasn1_modules \ | ||
&& pip install qrcode && pip install requests \ | ||
&& pip install tlslite && pip install pbkdf2 \ | ||
&& pip install SocksiPy-branch \ | ||
&& apt-get install -y software-properties-common && add-apt-repository -y ppa:ubuntu-wine/ppa \ | ||
&& dpkg --add-architecture i386 \ | ||
&& apt-get update -y \ | ||
&& apt-get install -y curl wine1.7 xvfb wget \ | ||
&& apt-get install -y winbind \ | ||
&& apt-get install -y python-pip pyqt4-dev-tools \ | ||
&& apt-get purge -y python-software-properties \ | ||
&& apt-get autoclean -y | ||
|
||
|
||
# Versions | ||
ENV PYTHON_URL https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi | ||
ENV PYQT4_URL http://downloads.sourceforge.net/project/pyqt/PyQt4/PyQt-4.11.1/PyQt4-4.11.1-gpl-Py2.7-Qt4.8.6-x32.exe?r=http%3A%2F%2Fwww.riverbankcomputing.co.uk%2Fsoftware%2Fpyqt%2Fdownload&ts=1410031650&use_mirror=skylink | ||
ENV PYWIN32_URL http://downloads.sourceforge.net/project/pywin32/pywin32/Build%20217/pywin32-217.win32-py2.7.exe?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpywin32%2Ffiles%2Fpywin32%2FBuild%2520217%2F&ts=1410031204&use_mirror=kent | ||
ENV PYINSTALLER_URL https://pypi.python.org/packages/source/P/PyInstaller/PyInstaller-2.1.zip | ||
ENV NSIS_URL http://prdownloads.sourceforge.net/nsis/nsis-2.46-setup.exe?download | ||
|
||
# Paths | ||
ENV WINEPREFIX /opt/wine-electrum | ||
RUN export WINEPREFIX=/opt/wine-electrum | ||
|
||
ENV ELECTRUM_PATH $WINE_PREFIX/drive_c/tate | ||
ENV PYHOME c:/Python27 | ||
ENV PYTHON xvfb-run -a wine $PYHOME/python.exe -B | ||
ENV PIP $PYTHON -m pip | ||
|
||
# Only needed for debugging | ||
# RUN apt-get install -y vnc4server | ||
# RUN export DISPLAY=:33 | ||
# RUN (echo electrum;echo electrum)|vnc4passwd | ||
# EXPOSE 5933 | ||
|
||
|
||
|
||
# Docker kills this run before wine is done setting up, don't remove the sleep | ||
RUN xvfb-run -a --server-num=4 wineboot && sleep 5 \ | ||
&& echo 'DIRECTORY IS ' ; pwd \ | ||
&& wget -O python.msi "$PYTHON_URL" \ | ||
&& xvfb-run -a -e /dev/stdout -a msiexec /q /i python.msi \ | ||
&& sleep 5 \ | ||
&& wget -O pyinstaller.zip "$PYINSTALLER_URL" && unzip pyinstaller.zip && mv PyInstaller-2.1 $WINEPREFIX/drive_c/pyinstaller \ | ||
&& wget -O pywin32.exe "$PYWIN32_URL" \ | ||
&& unzip -qq pywin32.exe; echo 'Done pywin' \ | ||
&& cp -r PLATLIB/* $WINEPREFIX/drive_c/Python27/Lib/site-packages/ \ | ||
&& mkdir -p $WINEPREFIX/drive_c/Python27/Scripts/ \ | ||
&& cp -r SCRIPTS/* $WINEPREFIX/drive_c/Python27/Scripts/ \ | ||
&& $PYTHON $PYHOME/Scripts/pywin32_postinstall.py -install \ | ||
&& wget -O PyQt.exe "$PYQT4_URL" \ | ||
&& rm -rf /tmp/.wine-* && xvfb-run -a wine PyQt.exe /S \ | ||
&& wget -q -O nsis.exe $NSIS_URL \ | ||
&& rm -rf /tmp/.wine-* && xvfb-run -a wine nsis.exe /S | ||
|
||
|
||
COPY ./helpers/ltc_scrypt.pyd /root/ltc_scrypt.pyd | ||
COPY ./helpers/make_packages /root/make_packages | ||
COPY ./helpers/make_release /root/make_release | ||
COPY ./helpers/build-binary /usr/bin/build-binary | ||
|
||
# Clean up stale wine processes | ||
RUN rm -rf /tmp/.wine-* |
Oops, something went wrong.