You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/03/21 10:04:45 UTC
[superset] 01/02: feat(docker-compose): add TAG option (#18214)
This is an automated email from the ASF dual-hosted git repository.
villebro pushed a commit to branch 1.4
in repository https://gitbox.apache.org/repos/asf/superset.git
commit eab47ac13e9f6890943181a6e5a1602e8aab18ca
Author: Ville Brofeldt <33...@users.noreply.github.com>
AuthorDate: Fri Jan 28 15:00:15 2022 +0200
feat(docker-compose): add TAG option (#18214)
---
docker-compose-non-dev.yml | 2 +-
docker-compose.yml | 2 +-
docs/src/pages/docs/installation/index.mdx | 13 ++++++++++++-
3 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/docker-compose-non-dev.yml b/docker-compose-non-dev.yml
index 84bbc3b..9343496 100644
--- a/docker-compose-non-dev.yml
+++ b/docker-compose-non-dev.yml
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-x-superset-image: &superset-image apache/superset:latest-dev
+x-superset-image: &superset-image apache/superset:${TAG:-latest-dev}
x-superset-depends-on: &superset-depends-on
- db
- redis
diff --git a/docker-compose.yml b/docker-compose.yml
index 3131d23..b7bf745 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-x-superset-image: &superset-image apache/superset:latest-dev
+x-superset-image: &superset-image apache/superset:${TAG:-latest-dev}
x-superset-user: &superset-user root
x-superset-depends-on: &superset-depends-on
- db
diff --git a/docs/src/pages/docs/installation/index.mdx b/docs/src/pages/docs/installation/index.mdx
index 508fa27..b4b6cef 100644
--- a/docs/src/pages/docs/installation/index.mdx
+++ b/docs/src/pages/docs/installation/index.mdx
@@ -60,12 +60,23 @@ Navigate to the folder you created in step 1:
$ cd superset
```
-Then, run the following command:
+Then, run the following commands:
```bash
+$ docker-compose -f docker-compose-non-dev.yml pull
$ docker-compose -f docker-compose-non-dev.yml up
```
+Alternatively, you can also run a specific version of Superset by first checking out
+the branch/tag, and then starting `docker-compose` with the `TAG` variable.
+For example, to run the 1.4.2 version, run the following commands:
+
+```bash
+% git checkout 1.4.2
+$ TAG=1.4.0 docker-compose -f docker-compose-non-dev.yml pull
+$ TAG=1.4.0 docker-compose -f docker-compose-non-dev.yml up
+```
+
You should see a wall of logging output from the containers being launched on your machine. Once
this output slows, you should have a running instance of Superset on your local machine!