ruiztulio / Docker

A Dockerized version of Cachet.

Home Page:https://cachethq.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Okazanta Docker Image

This is the official repository of the Docker image for Okazanta.

Okazanta is a beautiful and powerful open source status page system, a free replacement for services such as StatusPage.io, Status.io and others.

For full documentation, visit the Installing Okazanta with Docker page.

Supporting Okazanta

Okazanta is a BSD-3-licensed open source project. If you'd like to support future development, check out the Okazanta Patreon campaign.

Quickstart

  1. Clone this repository
git clone https://github.com/Okazanta-core/Docker.git
  1. Edit the docker-compose.yml file to specify your ENV variables.

  2. To build an image containing a specific Okazanta release, set the okazanta_ver ARG in the docker-compose.yml

The main branch and okazantahq/docker:latest Docker automated build are a work in progress / development version of the upstream https://github.com/Okazanta-core/Okazanta project. As such, main or latest should not be used in a production environment as it can change at anytime.

We strongly recommend specifying a stable Okazanta Release at build time as mentioned above.

  1. Build and run the image
docker-compose build
docker-compose up
  1. okazantahq/docker runs on port 8000 by default. This is exposed on host port 80 when using docker-compose.

  2. Setup the APP_KEY

Whilst the container is up and running, find the name of the Okazanta container via docker ps.

Run docker exec -i ID_OF_THE_CONTAINER php artisan key:generate.

Replace ${APP_KEY:-null} in docker-compose.yml with the newly generated Application key.

Note: make sure you include base64: prefix. E.g. base64:YOUR_UNIQUE_KEY

Restart the Docker containers.

Docker Hub Automated build

okazantahq/docker is available as a Docker Hub Trusted Build.

For a full list of Okazanta versions released as Docker images please see the list of Docker hub tags.

Please use a tagged Okazanta Docker image release or one of the tagged builds from https://hub.docker.com/r/okazantahq/docker/tags/ with docker pull okazantahq/docker:2.3.12.

Debugging

  • The services such as Okazanta, supervisord, nginx, and php-fpm log to stdout and stderr, and are visible in the Docker runtime output.

  • Setting the DEBUG Docker environment variable within the docker-compose.yml file or at runtime to true will enable debugging of the container entrypoint init script.

Testing

Pull requests must pass the Bash Automated Testing System tests, which run on Travis CI via located in the test directory.

Use make test to manually run the tests.

Development of Okazanta using this docker environment

  1. Clone the official repo of Okazanta-core/Docker:
git clone https://github.com/Okazanta-core/Docker.git okazanta-docker
cd okazanta-docker
git tag -l
git checkout $LATEST_TAG
  1. Clone the official repo of Okazanta-core/Okazanta here and do composer install:
git clone https://github.com/Okazanta-core/Okazanta.git
  1. Setup the Okazanta project:

Note: This requires Composer be installed on your Docker host.

cd Okazanta
composer install
cp ../conf/.env.docker ./.env
cd ..
  1. Edit the docker-compose.yml file to bind mount the repo as a volume:
okazanta:
  volumes:
    - ./Okazanta/:/var/www/html/
  ...  
  1. Build and run the container:
docker-compose up
  1. Open new terminal and run the following commands after getting container name via docker ps:
docker exec -i okazantadocker_okazanta_1  php artisan key:generate
docker exec -i okazantadocker_okazanta_1  php artisan app:install

About

A Dockerized version of Cachet.

https://cachethq.io/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Shell 93.5%Language:Dockerfile 6.1%Language:Makefile 0.5%