mirror of https://github.com/apache/superset.git
Switching Docker compose over to the official image (#11707)
This commit is contained in:
parent
a16a2b87c7
commit
5700f8d363
|
@ -1,32 +0,0 @@
|
||||||
#
|
|
||||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
# contributor license agreements. See the NOTICE file distributed with
|
|
||||||
# this work for additional information regarding copyright ownership.
|
|
||||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
# (the "License"); you may not use this file except in compliance with
|
|
||||||
# the License. You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
######################################################################
|
|
||||||
# Dev image...
|
|
||||||
######################################################################
|
|
||||||
FROM apache/incubator-superset:master-dev
|
|
||||||
|
|
||||||
COPY ./requirements/*.txt ./docker/requirements-*.txt /app/requirements/
|
|
||||||
COPY ./setup.py ./MANIFEST.in /app/
|
|
||||||
|
|
||||||
USER root
|
|
||||||
# Cache everything for dev purposes...
|
|
||||||
RUN cd /app \
|
|
||||||
&& pip install -e . \
|
|
||||||
&& pip install -r requirements/docker.txt \
|
|
||||||
&& pip install -r requirements/requirements-local.txt || true
|
|
||||||
USER superset
|
|
|
@ -14,11 +14,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
x-superset-build: &superset-build
|
x-superset-image: &superset-image apache/incubator-superset:latest-dev
|
||||||
args:
|
|
||||||
NPM_BUILD_CMD: build-dev
|
|
||||||
context: ./
|
|
||||||
dockerfile: Dockerfile-dev
|
|
||||||
x-superset-depends-on: &superset-depends-on
|
x-superset-depends-on: &superset-depends-on
|
||||||
- db
|
- db
|
||||||
- redis
|
- redis
|
||||||
|
@ -53,7 +49,7 @@ services:
|
||||||
|
|
||||||
superset:
|
superset:
|
||||||
env_file: docker/.env
|
env_file: docker/.env
|
||||||
build: *superset-build
|
image: *superset-image
|
||||||
container_name: superset_app
|
container_name: superset_app
|
||||||
command: ["flask", "run", "-p", "8088", "--with-threads", "--reload", "--debugger", "--host=0.0.0.0"]
|
command: ["flask", "run", "-p", "8088", "--with-threads", "--reload", "--debugger", "--host=0.0.0.0"]
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -63,7 +59,7 @@ services:
|
||||||
volumes: *superset-volumes
|
volumes: *superset-volumes
|
||||||
|
|
||||||
superset-init:
|
superset-init:
|
||||||
build: *superset-build
|
image: *superset-image
|
||||||
container_name: superset_init
|
container_name: superset_init
|
||||||
command: ["/app/docker-init.sh"]
|
command: ["/app/docker-init.sh"]
|
||||||
env_file: docker/.env
|
env_file: docker/.env
|
||||||
|
@ -79,7 +75,7 @@ services:
|
||||||
volumes: *superset-volumes
|
volumes: *superset-volumes
|
||||||
|
|
||||||
superset-worker:
|
superset-worker:
|
||||||
build: *superset-build
|
image: *superset-image
|
||||||
container_name: superset_worker
|
container_name: superset_worker
|
||||||
command: ["celery", "worker", "--app=superset.tasks.celery_app:app", "-Ofair", "-l", "INFO"]
|
command: ["celery", "worker", "--app=superset.tasks.celery_app:app", "-Ofair", "-l", "INFO"]
|
||||||
env_file: docker/.env
|
env_file: docker/.env
|
||||||
|
@ -88,7 +84,7 @@ services:
|
||||||
volumes: *superset-volumes
|
volumes: *superset-volumes
|
||||||
|
|
||||||
superset-tests-worker:
|
superset-tests-worker:
|
||||||
build: *superset-build
|
image: *superset-image
|
||||||
container_name: superset_tests_worker
|
container_name: superset_tests_worker
|
||||||
command: ["celery", "worker", "--app=superset.tasks.celery_app:app", "-Ofair", "-l", "INFO"]
|
command: ["celery", "worker", "--app=superset.tasks.celery_app:app", "-Ofair", "-l", "INFO"]
|
||||||
env_file: docker/.env
|
env_file: docker/.env
|
||||||
|
|
Loading…
Reference in New Issue