Merge branch 'pip_install_git' into 'master'

Install fdroidserver from git using pip

See merge request fdroid/docker-executable-fdroidserver!12
This commit is contained in:
Hans-Christoph Steiner 2022-02-21 21:16:31 +00:00
commit a27b529728
2 changed files with 5 additions and 9 deletions

View file

@ -8,8 +8,8 @@ stages:
- release - release
variables: variables:
TEST_IMAGE: registry.gitlab.com/$CI_PROJECT_NAMESPACE/${CI_PROJECT_NAME}:$CI_BUILD_REF_NAME TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME
RELEASE_IMAGE: registry.gitlab.com/$CI_PROJECT_NAMESPACE/${CI_PROJECT_NAME}:latest RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
before_script: before_script:
- echo $CI_BUILD_TOKEN | docker login -u gitlab-ci-token --password-stdin registry.gitlab.com - echo $CI_BUILD_TOKEN | docker login -u gitlab-ci-token --password-stdin registry.gitlab.com

View file

@ -4,12 +4,8 @@ COPY signing-key.asc /
RUN gpg --import /signing-key.asc RUN gpg --import /signing-key.asc
RUN git clone --depth 1 https://gitlab.com/fdroid/fdroidserver.git \ RUN python3 -m pip install --upgrade pip wheel setuptools \
&& cd fdroidserver \ && python3 -m pip install git+https://gitlab.com/fdroid/fdroidserver.git
&& pip3 install --upgrade babel pip setuptools \
&& pip3 install --no-binary python-vagrant -e . \
&& python3 setup.py compile_catalog build \
&& python3 setup.py install
# Install additional utilities required by actual builds (list subject to future expansion) # Install additional utilities required by actual builds (list subject to future expansion)
# build-tools 32.0.0 is needed for a good apksigner # build-tools 32.0.0 is needed for a good apksigner
@ -23,5 +19,5 @@ RUN apt-get update && apt-get install --yes \
VOLUME ["/repo"] VOLUME ["/repo"]
WORKDIR /repo WORKDIR /repo
ENTRYPOINT ["../fdroidserver/fdroid"] ENTRYPOINT ["/usr/local/bin/fdroid"]
CMD ["--help"] CMD ["--help"]