PR#775 - docker from current git
This commit is contained in:
parent
98a7395ebf
commit
2be2d77ffa
2 changed files with 15 additions and 4 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,19 +1,29 @@
|
||||||
# Dockerfile for providing buildozer
|
# Dockerfile for providing buildozer
|
||||||
# Build with:
|
# Build with:
|
||||||
# docker build --tag=buildozer .
|
# docker build --tag=buildozer .
|
||||||
|
#
|
||||||
|
# if you want to use bleeding edge/current version from git, instead from pypi, then use
|
||||||
|
# docker build --tag=buildozer --build-arg git=true .
|
||||||
|
#
|
||||||
# In order to give the container access to your current working directory
|
# In order to give the container access to your current working directory
|
||||||
# it must be mounted using the --volume option.
|
# it must be mounted using the --volume option.
|
||||||
# Run with (e.g. `buildozer --version`):
|
# Run with (e.g. `buildozer --version`):
|
||||||
# docker run --volume "$(pwd)":/home/user/hostcwd buildozer --version
|
# docker run --volume "$(pwd)":/home/user/hostcwd buildozer --version
|
||||||
# Or for interactive shell:
|
# Or for interactive shell:
|
||||||
# docker run --volume "$(pwd)":/home/user/hostcwd --entrypoint /bin/bash -it --rm buildozer
|
# docker run --volume "$(pwd)":/home/user/hostcwd --entrypoint /bin/bash -it --rm buildozer
|
||||||
FROM ubuntu:18.04
|
|
||||||
|
|
||||||
|
FROM ubuntu:18.04
|
||||||
|
ARG git
|
||||||
|
|
||||||
|
ENV BDOZER_REQ=${git:+"/src"}
|
||||||
|
ENV BDOZER_REQ=${BDOZER_REQ:-"buildozer"}
|
||||||
ENV USER="user"
|
ENV USER="user"
|
||||||
ENV HOME_DIR="/home/${USER}"
|
ENV HOME_DIR="/home/${USER}"
|
||||||
ENV WORK_DIR="${HOME_DIR}/hostcwd" \
|
ENV WORK_DIR="${HOME_DIR}/hostcwd" \
|
||||||
PATH="${HOME_DIR}/.local/bin:${PATH}"
|
PATH="${HOME_DIR}/.local/bin:${PATH}"
|
||||||
|
|
||||||
|
COPY . /src
|
||||||
|
|
||||||
# configures locale
|
# configures locale
|
||||||
RUN apt update -qq > /dev/null && \
|
RUN apt update -qq > /dev/null && \
|
||||||
apt install -qq --yes --no-install-recommends \
|
apt install -qq --yes --no-install-recommends \
|
||||||
|
@ -44,7 +54,8 @@ USER ${USER}
|
||||||
WORKDIR ${WORK_DIR}
|
WORKDIR ${WORK_DIR}
|
||||||
|
|
||||||
# installs buildozer and dependencies
|
# installs buildozer and dependencies
|
||||||
RUN pip install --user Cython==0.25.2 buildozer
|
RUN pip install --user Cython==0.25.2 $BDOZER_REQ
|
||||||
|
|
||||||
# calling buildozer adb command should trigger SDK/NDK first install and update
|
# calling buildozer adb command should trigger SDK/NDK first install and update
|
||||||
# but it requires a buildozer.spec file
|
# but it requires a buildozer.spec file
|
||||||
RUN cd /tmp/ && buildozer init && buildozer android adb -- version && cd -
|
RUN cd /tmp/ && buildozer init && buildozer android adb -- version && cd -
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -47,7 +47,7 @@ setup(
|
||||||
],
|
],
|
||||||
package_data={'buildozer': ['default.spec']},
|
package_data={'buildozer': ['default.spec']},
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
install_requires=['pexpect', 'virtualenv'],
|
install_requires=['pexpect', 'virtualenv', 'sh'],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 4 - Beta', 'Intended Audience :: Developers',
|
'Development Status :: 4 - Beta', 'Intended Audience :: Developers',
|
||||||
'Topic :: Software Development :: Build Tools',
|
'Topic :: Software Development :: Build Tools',
|
||||||
|
|
Loading…
Add table
Reference in a new issue