From 630280e880d51146d6af43324562df85591f97a2 Mon Sep 17 00:00:00 2001 From: Newnius Date: Wed, 3 Jan 2018 13:24:30 +0800 Subject: [PATCH] update EasyBigdata since python3.5 has a bug in centos7 --- EasyBigdata/Dockerfile | 18 ++++++++++++------ EasyBigdata/bootstrap.sh | 6 +++++- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/EasyBigdata/Dockerfile b/EasyBigdata/Dockerfile index a2b69b4..a78c9cc 100644 --- a/EasyBigdata/Dockerfile +++ b/EasyBigdata/Dockerfile @@ -1,17 +1,23 @@ -FROM ubuntu:16.04 +FROM alpine:3.7 + MAINTAINER Newnius USER root -RUN apt-get update -y && \ - apt-get install -y \ - make \ +RUN apk update && \ + apk add \ python3 \ python3-dev \ + bash \ + make \ gcc \ g++ \ - libsasl2-dev \ - libmysqlclient-dev + musl-dev \ + mariadb-dev \ + cyrus-sasl \ + cyrus-sasl-dev + +RUN ln -s /usr/include/python3.6m /usr/include/python3.6 WORKDIR /var/www/html diff --git a/EasyBigdata/bootstrap.sh b/EasyBigdata/bootstrap.sh index 5230e2f..7e06cd0 100755 --- a/EasyBigdata/bootstrap.sh +++ b/EasyBigdata/bootstrap.sh @@ -1,5 +1,9 @@ #!/bin/bash -make apps +: ${BOOTSTRAP_DIR:=/bootstrap} + +if [ -d "$BOOTSTRAP_DIR" ]; then + run-parts $BOOTSTRAP_DIR +fi /var/www/html/build/env/bin/desktop runserver 0.0.0.0:8888