mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Moved the PureBasic version to OldSource/, Started the Rust rewrite in Source/
The rewrite's plan and decisions are in revamp.md. Steps 0 to 10 are done: the workspace and checks, bakashrot-proto, bakashrot-pki and bakashrot-cert, bakashrot-config, bakashrot-storage (schema v9), the server and the client library (every request but replication's, attachments and retention included), the C DLL with its C, PureBasic and Python bindings, and the bakashrot tool. Step 11 (replication) is next. OldSource/ is the old implementation, kept building and passing as the reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RwFeVTGs2SsufaH6zquzcb
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# BakaShrot - Docker
|
||||
Docker image for the server, built on the PureBasic images from `git.nibblepoker.lu`.
|
||||
|
||||
> [!NOTE]
|
||||
> The PureBasic images are licensed, building requires a login to their registry. \
|
||||
> The final image only holds the compiled server, libsodium and SQLite.
|
||||
|
||||
|
||||
## Running
|
||||
Fill in [Server/server.ini](Server/server.ini), then, from `Docker/Server/`:
|
||||
```shell
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
See [Server/docker-compose.yml](Server/docker-compose.yml) and the [Dockerfile](Server/Dockerfile) for more.
|
||||
|
||||
|
||||
## Building
|
||||
From the repository's root:
|
||||
```shell
|
||||
git submodule update --init --recursive
|
||||
docker login git.nibblepoker.lu
|
||||
docker build --provenance=false -t bakashrot-server -f Docker/Server/Dockerfile .
|
||||
```
|
||||
|
||||
`--provenance=false` pushes the image as a plain manifest: with the default attestation it's an index, and GitHub
|
||||
doesn't see the Dockerfile's `org.opencontainers.image.source` label there, so the package isn't linked to the repository.
|
||||
|
||||
|
||||
## Uploading
|
||||
Tag and push the image to both registries, with the version and as `latest`:
|
||||
|
||||
### Gitea
|
||||
```shell
|
||||
docker login git.nibblepoker.lu
|
||||
docker tag bakashrot-server git.nibblepoker.lu/aziascreations/bakashrot-server:0.0.1
|
||||
docker tag bakashrot-server git.nibblepoker.lu/aziascreations/bakashrot-server:latest
|
||||
docker push git.nibblepoker.lu/aziascreations/bakashrot-server:0.0.1
|
||||
docker push git.nibblepoker.lu/aziascreations/bakashrot-server:latest
|
||||
```
|
||||
|
||||
### GitHub
|
||||
Requires a [personal access token](https://github.com/settings/tokens) with the `write:packages` scope as the password.
|
||||
```shell
|
||||
docker login ghcr.io -u aziascreations
|
||||
docker tag bakashrot-server ghcr.io/aziascreations/bakashrot-server:0.0.1
|
||||
docker tag bakashrot-server ghcr.io/aziascreations/bakashrot-server:latest
|
||||
docker push ghcr.io/aziascreations/bakashrot-server:0.0.1
|
||||
docker push ghcr.io/aziascreations/bakashrot-server:latest
|
||||
```
|
||||
|
||||
The package then has to be linked to the repository, and made public if needed, in its settings on GitHub.
|
||||
Reference in New Issue
Block a user