Compare commits

..

No commits in common. "d6eb2a1b250fdf26a522a688873269760ad23e5d" and "8251fecf9a417f2d0670ab37d8e6e09cc810a3df" have entirely different histories.

2 changed files with 4 additions and 67 deletions

View File

@ -1,14 +0,0 @@
FROM python:3.10-alpine
ARG supervisor_dir="/usr/src/GameServerSupervisor"
RUN mkdir -p $supervisor_dir
WORKDIR $supervisor_dir
COPY . $supervisor_dir
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 80

View File

@ -1,23 +1,17 @@
# GibCasa GameServerSupervisor
## Table of Contents
- [Installation using venv](#installation-using-venv)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Installation using Podman](#installation-using-podman)
- [Prerequisites](#prerequisites-1)
- [Installation](#installation-1)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
## Installation using venv
### Prerequisites
## Prerequisites
Python 3.10 or above
### Installation
## Installation
1. Clone the repository:
```bash
@ -51,49 +45,6 @@ Python 3.10 or above
```bash
./manage.py runserver
```
## Installation using Podman
### Prerequisites
Podman
### Installation
1. Clone the repository:
```bash
git clone https://git.com.de/GibCasa/GameServerSupervisor
```
2. Build the image:
```bash
podman build . -t supervisor-image
```
3. Run a container in an interactive shell:
```bash
podman run -it --network=host localhost/supervisor-image sh
```
4. Run tests:
```bash
./manage.py test
```
5. Run migrations:
```bash
./manage.py migrate
```
6. Create admin user:
```bash
./manage.py createsuperuser
```
7. Run server:
```bash
./manage.py runserver
```
-------------
To live sync host directory with container folder, in Step 3:
```bash
podman run --network=host -itv /host/src/path:/usr/src/GameServerSupervisor supervisor-image sh
```
`/host/src/path` is the absolute path to the repository in the host machine.
## Usage