mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add docker-compose-arm
This commit is contained in:
parent
b6c109ea4c
commit
d8304008da
@ -47,6 +47,7 @@ A collection of delicious docker recipes.
|
|||||||
|
|
||||||
## IoT
|
## IoT
|
||||||
|
|
||||||
|
- [x] docker-compose-arm
|
||||||
- [x] hass
|
- [x] hass
|
||||||
- [x] hass-arm
|
- [x] hass-arm
|
||||||
- [x] node-red :+1:
|
- [x] node-red :+1:
|
||||||
|
36
docker-compose-arm/Dockerfile
Normal file
36
docker-compose-arm/Dockerfile
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
#
|
||||||
|
# Dockerfile for building docker-compose-arm
|
||||||
|
#
|
||||||
|
|
||||||
|
FROM resin/rpi-raspbian:jessie
|
||||||
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
|
ENV DOCKER_COMPOSE_VERSION 1.12.0
|
||||||
|
ENV PYINSTALLER_VERSION 3.2.1
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y build-essential \
|
||||||
|
curl \
|
||||||
|
python3-dev \
|
||||||
|
zlib1g-dev \
|
||||||
|
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
||||||
|
&& curl https://bootstrap.pypa.io/get-pip.py | python \
|
||||||
|
&& pip install docker-compose==$DOCKER_COMPOSE_VERSION \
|
||||||
|
pyinstaller==$PYINSTALLER_VERSION \
|
||||||
|
&& cd /usr/local/lib/python3.4/dist-packages \
|
||||||
|
&& pip download --no-binary :all: --no-deps pyinstaller==$PYINSTALLER_VERSION \
|
||||||
|
&& tar xjf PyInstaller-$PYINSTALLER_VERSION.tar.bz2 \
|
||||||
|
&& cd PyInstaller-$PYINSTALLER_VERSION/bootloader \
|
||||||
|
&& ./waf all --no-lsb \
|
||||||
|
&& cp -r ../PyInstaller/bootloader/Linux-32bit-arm/ ../../PyInstaller/bootloader/ \
|
||||||
|
&& cd /usr/local/lib/python3.4/dist-packages \
|
||||||
|
&& mkdir -p bin \
|
||||||
|
&& curl -sSL https://github.com/docker/compose/raw/$DOCKER_COMPOSE_VERSION/docker-compose.spec > docker-compose.spec \
|
||||||
|
&& curl -sSL https://github.com/docker/compose/raw/$DOCKER_COMPOSE_VERSION/bin/docker-compose > bin/docker-compose \
|
||||||
|
&& pyinstaller docker-compose.spec \
|
||||||
|
&& cp docker-compose/dist/docker-compose /usr/local/bin/ \
|
||||||
|
&& docker-compose version
|
||||||
|
|
||||||
|
ENTRYPOINT ["docker-compose"]
|
||||||
|
CMD ["help"]
|
24
docker-compose-arm/README.md
Normal file
24
docker-compose-arm/README.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
docker-compose-arm
|
||||||
|
==================
|
||||||
|
|
||||||
|
Automated Build for Docker Compose on Raspberry Pi
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ docker build -t easypi/docker-compose-arm .
|
||||||
|
|
||||||
|
$ docker run --name compose easypi/docker-compose-arm version
|
||||||
|
docker-compose version 1.12.0, build b31ff33
|
||||||
|
docker-py version: 2.2.1
|
||||||
|
CPython version: 3.4.2
|
||||||
|
OpenSSL version: OpenSSL 1.0.1t 3 May 2016
|
||||||
|
|
||||||
|
$ docker cp compose:/usr/local/bin/docker-compose .
|
||||||
|
|
||||||
|
$ file docker-compose
|
||||||
|
docker-compose: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped
|
||||||
|
|
||||||
|
$ docker rm compose
|
||||||
|
compose
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user