677e147688
* Kubernetes deployment * Update kubernetes deployment * Fix rewrite module load * Fix mysql-primary bootstrap * Fix mysql init-db apply order * Fix init-db.sql permissions * Fix MySQL missing *.sql import * Switch from MySQL to MariaDB * [skip ci] Example deployment update * Set root app in chandler configmap * Update missing php extension in base images * Update missing dependency in apache image * Remove default site configuration * [skip ci] Split Kubernetes deployments by type * Explicitly set persistent volume for openvk storage * [skip ci] Add README for Kubernetes * Replace old docker(-compose) files w/ new ones * Add README for docker usage * [skip ci] Update README.md and README_RU.md * [skip ci] Fix eventdb DB name * [skip ci] Kubernetes configmap: missing namespace * [skip ci] Fix typo * [skip ci] Ignore chandler.yml * [skip ci] Missing /var/log/openvk volume * [skip ci] Workaround for Docker <=20.10.6 * [skip ci] Handle permissions for apache2 * [skip ci] Initial Kafka support * [skip ci] Kafka values for Kubernetes |
||
---|---|---|
.. | ||
acl_handler.sh | ||
base-php-apache.Dockerfile | ||
base-php-cli.Dockerfile | ||
docker-compose.yml | ||
mariadb-eventdb.Dockerfile | ||
mariadb-primary.Dockerfile | ||
openvk.Dockerfile | ||
Readme.md |
Docker
Note: buildx
is required for building multi-arch images. See Docker Buildx for more information.
If unsure, skip to single-arch image build instructions.
Build
Note: commands below should be run from the root of the repository.
Multi-arch (arm64, amd64)
Base images:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/php:8.1-cli . --load -f install/automated/docker/base-php-cli.Dockerfile
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/php:8.1-apache . --load -f install/automated/docker/base-php-apache.Dockerfile
DB images:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/mariadb:10.9-primary . --load -f install/automated/docker/mariadb-primary.Dockerfile
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/mariadb:10.9-eventdb . --load -f install/automated/docker/mariadb-eventdb.Dockerfile
OpenVK main image:
docker buildx build --platform linux/amd64,linux/arm64 -t ghcr.io/openvk/openvk/openvk:latest . --load -f install/automated/docker/openvk.Dockerfile
Single-arch
Base images:
docker build -t ghcr.io/openvk/openvk/php:8.1-cli . -f install/automated/docker/base-php-cli.Dockerfile
docker build -t ghcr.io/openvk/openvk/php:8.1-apache . -f install/automated/docker/base-php-apache.Dockerfile
DB images:
docker build -t ghcr.io/openvk/openvk/mariadb:10.9-primary . -f install/automated/docker/mariadb-primary.Dockerfile
docker build -t ghcr.io/openvk/openvk/mariadb:10.9-eventdb . -f install/automated/docker/mariadb-eventdb.Dockerfile
OpenVK main image:
docker build -t ghcr.io/openvk/openvk/openvk:latest . -f install/automated/docker/openvk.Dockerfile
Run
If you have Docker Desktop installed, then you probably have docker-compose
installed as well. If not, refer to Docker Compose for installation instructions.
Before start, copy openvk-example.yml
from the root of the repository to openvk.yml
in this directory and edit it to your liking.
Then, obtain chandler-example.yml
from chandler repository and place it in this directory as well.
Start is simple as docker-compose up -d
. You can also use docker-compose up
to see logs.
- OpenVK will be available at
http://localhost:8080/
. - PHPMyAdmin will be available at
http://localhost:8081/
. - Adminer will be available at
http://localhost:8082/
.