Container‐Based installation (original) (raw)

Back to Sigmakee repository

Other ways to install Sigmakee

Container-Based installation

First, install docker if you don't have it already

sudo apt-get update curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable" sudo apt-get update sudo apt-get install docker-ce

Then get the docker image and run it

Pull with

sudo docker pull apease/sigmakee:latest

Run with

sudo docker run -it -d -p 8080:8080 --name trial04 apease/sigmakee:latest

Access from a browser with http://localhost:8080/sigma/login.html . Use admin for username and admin for password

Build a New Docker Image

Please note that the Docker container version of Sigma is several years out of date. A native install of Sigma is recommended.

To build a new docker container follow these steps where $SIGMA_SRC is your sigmakee git repo path. First, download Linux/x64 from https://download.java.net/java/GA/jdk23/3c5b90190c68498b986a97f276efd28a/37/GPL/openjdk-23_linux-x64_bin.tar.gzNote that if you don't download that exact version, you'll need to edit sigmastart.sh so that the filename matches. You'll also need to make changes to track the latest Tomcat, in the bashrc and Dockerfile

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/ubuntu
$(lsb_release -cs)
stable" sudo apt-get update sudo apt-get install docker-ce mkdir images cd images cp $SIGMA_SRC/docker/* . sudo docker build -t sigmakee2018:latest .

to push the image to dockerhub

:~/images$ sudo docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username (apease): Password: Login Succeeded

:/images$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1f7d0cef7874 51a041125329 "./sigmastart.sh" 56 minutes ago Up 56 minutes 0.0.0.0:4000->8080/tcp trial11 :/images$ sudo docker tag 51a041125329 apease/sigmakee2018:latest :~/images$ sudo docker push apease/sigmakee2018:latest The push refers to a repository [docker.io/apease/sigmakee2018] ab5e94769be7: Pushed 1c15947f83dc: Pushed c2007c9776df: Pushed 829ef5b0378d: Pushed 6fd852e99bda: Pushed 85c7d96adccb: Pushed 6b2f14c09222: Pushed 9a9a3d9cc4bc: Pushed 38c81b36edfb: Pushed bcc97fbfc9e1: Pushed latest: digest: sha256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx size: 2417