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