Skip to content

Commit 7e2af07

Browse files
committed
release 1.0.0
1 parent 4c6cecc commit 7e2af07

File tree

2,521 files changed

+503661
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,521 files changed

+503661
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
FROM python:3.7-buster
18+
19+
RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset
20+
21+
# Configure environment
22+
ENV LANG=C.UTF-8 \
23+
LC_ALL=C.UTF-8
24+
25+
RUN apt-get update -y
26+
27+
# Install dependencies to fix `curl https support error` and `elaying package configuration warning`
28+
RUN apt-get install -y apt-transport-https apt-utils
29+
30+
# Install superset dependencies
31+
# https://superset.apache.org/docs/installation/installing-superset-from-scratch
32+
RUN apt-get install -y build-essential libssl-dev \
33+
libffi-dev python3-dev libsasl2-dev libldap2-dev libxi-dev
34+
35+
# Install nodejs for custom build
36+
# https://nodejs.org/en/download/package-manager/
37+
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
38+
&& apt-get install -y nodejs
39+
40+
RUN mkdir -p /home/superset
41+
RUN chown superset /home/superset
42+
43+
WORKDIR /home/superset
44+
ARG VERSION
45+
ARG SUPERSET_RELEASE_RC_TARBALL
46+
47+
# Can fetch source from svn or copy tarball from local mounted directory
48+
COPY $SUPERSET_RELEASE_RC_TARBALL ./
49+
RUN tar -xvf *.tar.gz
50+
WORKDIR /home/superset/apache-superset-$VERSION/superset-frontend
51+
52+
RUN npm ci \
53+
&& npm run build \
54+
&& rm -rf node_modules
55+
56+
WORKDIR /home/superset/apache-superset-$VERSION
57+
RUN pip install --upgrade setuptools pip \
58+
&& pip install -r requirements/base.txt \
59+
&& pip install --no-cache-dir .
60+
61+
RUN flask fab babel-compile --target superset/translations
62+
63+
ENV PATH=/home/superset/superset/bin:$PATH \
64+
PYTHONPATH=/home/superset/superset/:$PYTHONPATH
65+
COPY from_tarball_entrypoint.sh /entrypoint.sh
66+
ENTRYPOINT ["/entrypoint.sh"]

RELEASING/Dockerfile.from_svn_tarball

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
FROM python:3.7-buster
18+
19+
RUN useradd --user-group --create-home --no-log-init --shell /bin/bash superset
20+
21+
# Configure environment
22+
ENV LANG=C.UTF-8 \
23+
LC_ALL=C.UTF-8
24+
25+
RUN apt-get update -y
26+
27+
# Install dependencies to fix `curl https support error` and `elaying package configuration warning`
28+
RUN apt-get install -y apt-transport-https apt-utils
29+
30+
# Install superset dependencies
31+
# https://superset.apache.org/docs/installation/installing-superset-from-scratch
32+
RUN apt-get install -y build-essential libssl-dev \
33+
libffi-dev python3-dev libsasl2-dev libldap2-dev libxi-dev
34+
35+
# Install nodejs for custom build
36+
# https://nodejs.org/en/download/package-manager/
37+
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - \
38+
&& apt-get install -y nodejs
39+
40+
RUN mkdir -p /home/superset
41+
RUN chown superset /home/superset
42+
43+
WORKDIR /home/superset
44+
ARG VERSION
45+
46+
# Can fetch source from svn or copy tarball from local mounted directory
47+
RUN svn co https://dist.apache.org/repos/dist/dev/superset/$VERSION ./
48+
RUN tar -xvf *.tar.gz
49+
WORKDIR apache-superset-$VERSION
50+
51+
RUN cd superset-frontend \
52+
&& npm ci \
53+
&& npm run build \
54+
&& rm -rf node_modules
55+
56+
57+
WORKDIR /home/superset/apache-superset-$VERSION
58+
RUN pip install --upgrade setuptools pip \
59+
&& pip install -r requirements/base.txt \
60+
&& pip install --no-cache-dir .
61+
62+
RUN flask fab babel-compile --target superset/translations
63+
64+
ENV PATH=/home/superset/superset/bin:$PATH \
65+
PYTHONPATH=/home/superset/superset/:$PYTHONPATH
66+
COPY from_tarball_entrypoint.sh /entrypoint.sh
67+
ENTRYPOINT ["/entrypoint.sh"]

RELEASING/Dockerfile.make_docs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
FROM python:3.7-buster
18+
ARG VERSION
19+
20+
RUN git clone --depth 1 --branch ${VERSION} https://github.com/apache/superset.git /superset
21+
WORKDIR /superset
22+
# install doc dependencies
23+
RUN pip install -r requirements/base.txt
24+
# build the docs
25+
RUN python setup.py build_sphinx
26+
27+
COPY make_docs_entrypoint.sh /entrypoint.sh
28+
ENTRYPOINT ["/entrypoint.sh"]

RELEASING/Dockerfile.make_tarball

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
FROM python:3.7-buster
18+
19+
RUN apt-get update -y
20+
RUN apt-get install -y jq
21+
22+
COPY make_tarball_entrypoint.sh /entrypoint.sh
23+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)