Skip to content

canonical/charmed-superset-rock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Charmed Apache Superset ROCK

This repository contains the packaging metadata for creating a Charmed Superset ROCK. This ROCK image is based on the upstream Apache Superset image.

For more information on ROCKs, visit the rockcraft Github.

Building the ROCK

The steps outlined below are based on the assumption that you are building the ROCK with the latest LTS of Ubuntu.
If you are using another version of Ubuntu or another operating system, the process may be different. To avoid any issue with other operating systems you can simply build the image with multipass:

sudo snap install multipass
multipass launch -n rock-dev -m 8g -c 2 -d 20G
multipass shell rock-dev

Clone Repository

git clone https://github.com/canonical/charmed-superset-rock.git
cd charmed-superset-rock

Installing & Configuring Prerequisites

sudo snap install rockcraft --edge --classic
sudo snap install skopeo --edge --devmode
sudo lxd init --auto

# Note: Docker must be installed after LXD is initialized due to firewall rules incompatibility.
sudo snap install docker
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

# Note: disabling and enabling docker snap is required to avoid sudo requirement. 
# As described in https://github.com/docker-snap/docker-snap.
sudo snap disable docker
sudo snap enable docker

Packing and Running the ROCK

rockcraft pack
sudo skopeo --insecure-policy copy oci-archive:charmed-superset-rock_2.1.0-22.04-edge_amd64.rock docker-daemon:charmed-superset-rock:2.1.0
docker run -d --name superset-ui-services -p 8088:8088 charmed-superset-rock:2.1.0 --args superset-ui -g 'daemon off:' \; start superset-ui

Login

To access Superset, now exit the multipass instance run multipass list for the below output.

Name                    State             IPv4             Image
rock-dev                Running           10.137.215.60    Ubuntu 22.04 LTS
                                          10.194.234.1
                                          172.17.0.1

Navigate to <VM IP Address>:8088 (in this case 10.137.215.60:8088) and login with admin/admin. Further information on connecting data sources and creating dashboards can be found at superset.apache.org.

Using Makefile

make dev will create the multipass image, clone the repo, install and configure the prerequisites. make build will pack the rock for you make install will build the oci image and run it make clean will remove build artifacts and enable you to rebuild make clean-all will remove the image and get you ready to start from make dev

License

The Charmed Superset ROCK is free software, distributed under the Apache Software License, version 2.0. See LICENSE for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages