travis
This commit is contained in:
@@ -24,6 +24,8 @@ jobs:
|
||||
curl -L -o qemu-arm-static.tar.gz https://github.com/multiarch/qemu-user-static/releases/download/v2.6.0/qemu-arm-static.tar.gz &&
|
||||
tar xzf qemu-arm-static.tar.gz &&
|
||||
popd
|
||||
#copy it to container
|
||||
- sed -i -e '2iCOPY tmp/qemu-arm-static /usr/bin/qemu-arm-static\' Dockerfile-$ARCH
|
||||
|
||||
# build
|
||||
- docker build -t $PROJECT -f Dockerfile-$ARCH .
|
||||
|
||||
+8
-11
@@ -3,16 +3,13 @@ FROM arm32v7/python:slim
|
||||
ENV LIBRARY_PATH=/lib:/usr/lib
|
||||
|
||||
ADD src/requirements.txt /
|
||||
COPY tmp/qemu-arm-static /usr/bin/qemu-arm-static
|
||||
RUN /usr/bin/apt-get update
|
||||
RUN apt-get update && apt-get install -y build-essential autoconf \
|
||||
&& pip install --upgrade pip && pip install -r /requirements.txt \
|
||||
&& apt-get remove -y build-essential autoconf \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
#RUN apt-get update && apt-get install -y build-essential autoconf \
|
||||
# && pip install --upgrade pip && pip install -r /requirements.txt \
|
||||
# && apt-get remove -y build-essential autoconf \
|
||||
# && apt-get autoremove -y \
|
||||
# && rm -rf /var/lib/apt/lists/*
|
||||
WORKDIR /app
|
||||
COPY src /app
|
||||
|
||||
#WORKDIR /app
|
||||
#COPY src /app
|
||||
|
||||
#CMD ["python3", "-u", "/app/main.py"]
|
||||
CMD ["python3", "-u", "/app/main.py"]
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
aqara:
|
||||
build: .
|
||||
dockerfile: Dockerfile-rpi
|
||||
dockerfile: Dockerfile-armhf
|
||||
container_name: aqara
|
||||
volumes:
|
||||
- "./config:/app/config"
|
||||
|
||||
Reference in New Issue
Block a user