Compare commits

...

11 Commits

Author SHA1 Message Date
nicolas.dorier
5a48c420ab
deprecate 2021-03-14 13:27:23 +09:00
nicolas.dorier
3bbd2d43f8
fix 2019-09-03 18:33:08 +09:00
nicolas.dorier
286e21c799
Don't use git to download pynacl sources 2019-09-03 18:20:53 +09:00
nicolas.dorier
a9961c8cd4
Fix build 2019-09-03 17:15:13 +09:00
nicolas.dorier
c0c4bcd73a
Patch PyNacl to make build pass on arm 2019-09-03 17:05:38 +09:00
nicolas.dorier
03cb5e7830
Remove pip install -q 2019-08-31 14:38:53 +09:00
nicolas.dorier
eab9d4e2f8
remove duplicate pip upgrade 2019-08-31 14:38:08 +09:00
nicolas.dorier
5604d95b18
bump PYINSTALLER_VER 2019-08-31 14:36:50 +09:00
nicolas.dorier
4772fcaa23
fix 2019-08-31 14:33:03 +09:00
nicolas.dorier
a52e3a1dfc
Install pip upgrade first 2019-08-31 14:30:56 +09:00
nicolas.dorier
d9256fb909
upgrade pip before starting 2019-08-31 14:16:36 +09:00
5 changed files with 53 additions and 17 deletions

14
PyNaCl-remove-check.patch Normal file
View File

@ -0,0 +1,14 @@
diff --git a/setup.py b/setup.py
index 747dc62..bad491d 100644
--- a/setup.py
+++ b/setup.py
@@ -175,9 +175,6 @@ class build_clib(_build_clib):
# Build the library
subprocess.check_call(["make"] + make_args, cwd=build_temp)
- # Check the build library
- subprocess.check_call(["make", "check"] + make_args, cwd=build_temp)
-
# Install the built library
subprocess.check_call(["make", "install"] + make_args, cwd=build_temp)

1
README.md Normal file
View File

@ -0,0 +1 @@
MOVED TO https://github.com/btcpayserver/dockerfile-deps/tree/master/docker-compose

View File

@ -7,13 +7,14 @@ RUN apt-get update && apt-get install -qq --no-install-recommends unzip
# Set the versions
ARG DOCKER_COMPOSE_VER
# docker-compose requires pyinstaller 3.3.1 (check github.com/docker/compose/requirements-build.txt)
# docker-compose requires pyinstaller 3.5 (check github.com/docker/compose/requirements-build.txt)
# If this changes, you may need to modify the version of "six" below
ENV PYINSTALLER_VER 3.3.1
# "six" is needed for PyInstaller. v1.11.0 is the latest as of PyInstaller 3.3.1
ENV PYINSTALLER_VER 3.5
# "six" is needed for PyInstaller. v1.11.0 is the latest as of PyInstaller 3.5
ENV SIX_VER 1.11.0
# Install dependencies
RUN pip install --upgrade pip
RUN pip install six==$SIX_VER
# Compile the pyinstaller "bootloader"
@ -28,9 +29,9 @@ WORKDIR /build/dockercompose
RUN curl -fsSL https://github.com/docker/compose/archive/$DOCKER_COMPOSE_VER.zip > $DOCKER_COMPOSE_VER.zip \
&& unzip $DOCKER_COMPOSE_VER.zip
# Run the build steps (taken from github.com/docker/compose/script/build/linux-entrypoint)
# Run the build steps (taken from https://github.com/docker/compose/blob/master/script/build/linux-entrypoint)
RUN cd compose-$DOCKER_COMPOSE_VER && mkdir ./dist \
&& pip install -q -r requirements.txt -r requirements-build.txt
&& pip install -r requirements.txt -r requirements-build.txt
RUN cd compose-$DOCKER_COMPOSE_VER \
&& echo "unknown" > compose/GITSHA \

View File

@ -9,14 +9,15 @@ RUN apt-get update && apt-get install -qq --no-install-recommends unzip
# Set the versions
ARG DOCKER_COMPOSE_VER
# docker-compose requires pyinstaller 3.3.1 (check github.com/docker/compose/requirements-build.txt)
# docker-compose requires pyinstaller 3.5 (check github.com/docker/compose/requirements-build.txt)
# If this changes, you may need to modify the version of "six" below
ENV PYINSTALLER_VER 3.3.1
# "six" is needed for PyInstaller. v1.11.0 is the latest as of PyInstaller 3.3.1
ENV PYINSTALLER_VER 3.5
# "six" is needed for PyInstaller. v1.11.0 is the latest as of PyInstaller 3.5
ENV SIX_VER 1.11.0
# Install dependencies
# RUN apt-get update && apt-get install -y
RUN pip install --upgrade pip
RUN pip install six==$SIX_VER
# Compile the pyinstaller "bootloader"
@ -31,9 +32,18 @@ WORKDIR /build/dockercompose
RUN curl -fsSL https://github.com/docker/compose/archive/$DOCKER_COMPOSE_VER.zip > $DOCKER_COMPOSE_VER.zip \
&& unzip $DOCKER_COMPOSE_VER.zip
# Run the build steps (taken from github.com/docker/compose/script/build/linux-entrypoint)
RUN cd compose-$DOCKER_COMPOSE_VER && mkdir ./dist \
&& pip install -q -r requirements.txt -r requirements-build.txt
# We need to patch pynacl because of https://github.com/pyca/pynacl/issues/553
COPY PyNaCl-remove-check.patch PyNaCl-remove-check.patch
RUN cd compose-$DOCKER_COMPOSE_VER && pip download --dest "/tmp/packages" -r requirements.txt -r requirements-build.txt wheel && cd .. && \
wget -qO pynacl.tar.gz https://github.com/pyca/pynacl/archive/1.3.0.tar.gz && \
echo "205adb2804eed4bc3780584e368ef2e9b8b22a7aae85323068cadd59f3c8a584 pynacl.tar.gz" | sha256sum -c - && \
mkdir pynacl && tar --strip-components=1 -xvf pynacl.tar.gz -C pynacl && rm pynacl.tar.gz && \
cd pynacl && \
git apply ../PyNaCl-remove-check.patch && \
python3 setup.py sdist && \
cp -f dist/PyNaCl-1.3.0.tar.gz /tmp/packages/ && \
cd ../compose-$DOCKER_COMPOSE_VER && rm -rf ../pynacl && \
pip install --no-index --find-links /tmp/packages -r requirements.txt -r requirements-build.txt && rm -rf /tmp/packages
RUN cd compose-$DOCKER_COMPOSE_VER \
&& echo "unknown" > compose/GITSHA \

View File

@ -9,14 +9,15 @@ RUN apt-get update && apt-get install -qq --no-install-recommends unzip
# Set the versions
ARG DOCKER_COMPOSE_VER
# docker-compose requires pyinstaller 3.3.1 (check github.com/docker/compose/requirements-build.txt)
# docker-compose requires pyinstaller 3.5 (check github.com/docker/compose/requirements-build.txt)
# If this changes, you may need to modify the version of "six" below
ENV PYINSTALLER_VER 3.3.1
# "six" is needed for PyInstaller. v1.11.0 is the latest as of PyInstaller 3.3.1
ENV PYINSTALLER_VER 3.5
# "six" is needed for PyInstaller. v1.11.0 is the latest as of PyInstaller 3.5
ENV SIX_VER 1.11.0
# Install dependencies
# RUN apt-get update && apt-get install -y
RUN pip install --upgrade pip
RUN pip install six==$SIX_VER
# Compile the pyinstaller "bootloader"
@ -31,9 +32,18 @@ WORKDIR /build/dockercompose
RUN curl -fsSL https://github.com/docker/compose/archive/$DOCKER_COMPOSE_VER.zip > $DOCKER_COMPOSE_VER.zip \
&& unzip $DOCKER_COMPOSE_VER.zip
# Run the build steps (taken from github.com/docker/compose/script/build/linux-entrypoint)
RUN cd compose-$DOCKER_COMPOSE_VER && mkdir ./dist \
&& pip install -q -r requirements.txt -r requirements-build.txt
# We need to patch pynacl because of https://github.com/pyca/pynacl/issues/553
COPY PyNaCl-remove-check.patch PyNaCl-remove-check.patch
RUN cd compose-$DOCKER_COMPOSE_VER && pip download --dest "/tmp/packages" -r requirements.txt -r requirements-build.txt wheel && cd .. && \
wget -qO pynacl.tar.gz https://github.com/pyca/pynacl/archive/1.3.0.tar.gz && \
echo "205adb2804eed4bc3780584e368ef2e9b8b22a7aae85323068cadd59f3c8a584 pynacl.tar.gz" | sha256sum -c - && \
mkdir pynacl && tar --strip-components=1 -xvf pynacl.tar.gz -C pynacl && rm pynacl.tar.gz && \
cd pynacl && \
git apply ../PyNaCl-remove-check.patch && \
python3 setup.py sdist && \
cp -f dist/PyNaCl-1.3.0.tar.gz /tmp/packages/ && \
cd ../compose-$DOCKER_COMPOSE_VER && rm -rf ../pynacl && \
pip install --no-index --find-links /tmp/packages -r requirements.txt -r requirements-build.txt && rm -rf /tmp/packages
RUN cd compose-$DOCKER_COMPOSE_VER \
&& echo "unknown" > compose/GITSHA \