An open API service indexing awesome lists of open source software.

https://github.com/devflex-pro/archivarix-docker

Archivarix CMS Dockerize
https://github.com/devflex-pro/archivarix-docker

Last synced: 4 months ago
JSON representation

Archivarix CMS Dockerize

Awesome Lists containing this project

README

          

# Archivarix CMS Docker Image

![Build and Publish](https://github.com/devflex-pro/archivarix-cms/actions/workflows/docker-image.yml/badge.svg)

## Description

This repository contains a Docker image for [Archivarix CMS](https://archivarix.com/ru/?ref=4dFGW8KF), designed for deployment using `php:fpm` and Nginx. It also includes GitHub Actions to automate the building and publishing of Docker images to Docker Hub on every push to the main branch or when a new tag is created.

## Project Structure

```
project/
├── archivarix/ # Directory containing Archivarix CMS files
├── .github/
│ └── workflows/
│ └── docker-image.yml # CI/CD configuration file
├── Dockerfile # Dockerfile for building the image based on php-fpm
└── README.md # Project description file
```

## Usage

### 1. Clone the Repository

```bash
git clone https://github.com/devflex-pro/archivarix-cms.git
cd your-repository-name
```

### 2. Build and Run the Docker Container Manually

If you want to build and run the Docker container manually:

```bash
docker build -t devflexpro/archivarix-cms:latest .
docker run -p 8080:80 devflexpro/archivarix-cms:latest
```

### 4. CI/CD Setup

This project is configured for automatic Docker image building and publishing using GitHub Actions. On every push to the main branch or when a new tag (e.g., `v1.0.0`) is created, GitHub Actions will:

1. Check out the repository code.
2. Build the Docker image.
3. Publish it to Docker Hub with the `latest` tag and, if a tag is present, with the corresponding version tag.

## GitHub Actions Configuration

To enable GitHub Actions, you need to add the following secrets to your repository:

- `DOCKER_USERNAME`: Your Docker Hub username.
- `DOCKER_PASSWORD`: Your Docker Hub password or access token.

Secrets can be added through: `Settings` → `Secrets and variables` → `Actions`.

## Environment Variables

You can modify the following environment variables in the `docker-image.yml` if needed:

- `IMAGE_NAME`: The name of the Docker image (default: `your-dockerhub-username/archivarix-cms`).

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.