mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 01:43:02 -05:00
15 files changed
+211
-927
No files matched your search
+8
-6
@@ -1,6 +1,8 @@
|
||||
target/
|
||||
data/
|
||||
.git/
|
||||
.idea/
|
||||
.DS_Store
|
||||
*.md
|
||||
*
|
||||
!docker/entrypoint.sh
|
||||
!target/*.so
|
||||
!target/*.properties
|
||||
!target/*-runner
|
||||
!target/*-runner.jar
|
||||
!target/lib/*
|
||||
!target/quarkus-app/*
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Docker
|
||||
name: Docker Build and Push
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -49,7 +49,11 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-amd64
|
||||
path: target/*-runner
|
||||
path: |
|
||||
target/*-runner
|
||||
target/*.properties
|
||||
target/*.so
|
||||
if-no-files-found: warn
|
||||
retention-days: 1
|
||||
|
||||
build-native-arm64:
|
||||
@@ -71,7 +75,11 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-arm64
|
||||
path: target/*-runner
|
||||
path: |
|
||||
target/*-runner
|
||||
target/*.properties
|
||||
target/*.so
|
||||
if-no-files-found: warn
|
||||
retention-days: 1
|
||||
|
||||
push-jvm:
|
||||
@@ -95,7 +103,7 @@ jobs:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: jvm-artifact
|
||||
path: quarkus-app/
|
||||
path: target/quarkus-app/
|
||||
|
||||
- name: Build and push JVM image
|
||||
uses: docker/build-push-action@v6
|
||||
@@ -140,11 +148,11 @@ jobs:
|
||||
name: native-arm64
|
||||
path: native/arm64/
|
||||
|
||||
- name: Prepare binaries
|
||||
- name: Prepare amd64 target
|
||||
run: |
|
||||
chmod +x native/amd64/* native/arm64/*
|
||||
cp native/amd64/*-runner native-amd64
|
||||
cp native/arm64/*-runner native-arm64
|
||||
mkdir -p target
|
||||
cp native/amd64/* target/
|
||||
chmod +x target/*-runner
|
||||
|
||||
- name: Build and push amd64 native image
|
||||
uses: docker/build-push-action@v6
|
||||
@@ -156,7 +164,13 @@ jobs:
|
||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/floci:${{ steps.version.outputs.version }}-amd64
|
||||
build-args: |
|
||||
VERSION=${{ steps.version.outputs.version }}
|
||||
BINARY_FILE=native-amd64
|
||||
|
||||
- name: Prepare arm64 target
|
||||
run: |
|
||||
rm -rf target
|
||||
mkdir -p target
|
||||
cp native/arm64/* target/
|
||||
chmod +x target/*-runner
|
||||
|
||||
- name: Build and push arm64 native image
|
||||
uses: docker/build-push-action@v6
|
||||
|
||||
@@ -4,9 +4,11 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
paths:
|
||||
- "docs/**"
|
||||
- "mkdocs.yml"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- develop
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
+3
-1
@@ -12,4 +12,6 @@ data/
|
||||
.DS_Store
|
||||
|
||||
CLAUDE.md
|
||||
.claude
|
||||
.claude
|
||||
|
||||
posts
|
||||
+7
-1
@@ -1,6 +1,12 @@
|
||||
{
|
||||
"tagFormat": "${version}",
|
||||
"branches": ["main"],
|
||||
"branches": [
|
||||
"main",
|
||||
{
|
||||
"name": "develop",
|
||||
"prerelease": "dev"
|
||||
}
|
||||
],
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
|
||||
+26
-1
@@ -1,8 +1,33 @@
|
||||
## [1.0.3](https://github.com/hectorvent/floci/compare/1.0.2...1.0.3) (2026-03-16)
|
||||
## [1.0.4-dev.3](https://github.com/hectorvent/floci/compare/1.0.4-dev.2...1.0.4-dev.3) (2026-03-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update workflow to download artifact into target ([4c18934](https://github.com/hectorvent/floci/commit/4c1893459579a6e5e1fa37145ace2a8433cd56e2))
|
||||
|
||||
## [1.0.4-dev.2](https://github.com/hectorvent/floci/compare/1.0.4-dev.1...1.0.4-dev.2) (2026-03-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* rename github action ([1fe1f6b](https://github.com/hectorvent/floci/commit/1fe1f6b7d87aa25573f015e2483b1c98a5962c4a))
|
||||
|
||||
## [1.0.4-dev.1](https://github.com/hectorvent/floci/compare/1.0.3...1.0.4-dev.1) (2026-03-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* adding build for development branch ([ae15f4c](https://github.com/hectorvent/floci/commit/ae15f4c79c7a28ba50c0426be5cdf1446cdafdeb))
|
||||
* adding build for development branch ([95cb2aa](https://github.com/hectorvent/floci/commit/95cb2aaf1e63cf3a8b359bd5ab1c0b9f6cfb506b))
|
||||
* docker build on native ([525f106](https://github.com/hectorvent/floci/commit/525f106eb4d302192d128a2ee00a80adbcb12c67))
|
||||
|
||||
## [1.0.3-dev.1](https://github.com/hectorvent/floci/compare/1.0.2...1.0.3-dev.1) (2026-03-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* adding build for development branch ([ae15f4c](https://github.com/hectorvent/floci/commit/ae15f4c79c7a28ba50c0426be5cdf1446cdafdeb))
|
||||
* adding build for development branch ([95cb2aa](https://github.com/hectorvent/floci/commit/95cb2aaf1e63cf3a8b359bd5ab1c0b9f6cfb506b))
|
||||
* improving native image compilation time ([49c69db](https://github.com/hectorvent/floci/commit/49c69db32314f7e2f94114d86d50e88b3e2a3884))
|
||||
* update git pages config for the docs ([286bef9](https://github.com/hectorvent/floci/commit/286bef9dd7bfcf162f2ca5c2c030ea280e0b6de6))
|
||||
|
||||
|
||||
+10
-3
@@ -1,14 +1,21 @@
|
||||
FROM eclipse-temurin:25-jre-alpine
|
||||
WORKDIR /app
|
||||
|
||||
COPY quarkus-app/ quarkus-app/
|
||||
WORKDIR /app
|
||||
|
||||
RUN mkdir -p /app/data
|
||||
VOLUME /app/data
|
||||
|
||||
RUN chown 1001 /app \
|
||||
&& chmod "g+rwX" /app \
|
||||
&& chown 1001:root /app
|
||||
|
||||
COPY --chown=1001:root target/quarkus-app quarkus-app/
|
||||
|
||||
EXPOSE 4566 6379-6399
|
||||
|
||||
ARG VERSION=latest
|
||||
ENV FLOCI_VERSION=${VERSION}
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "quarkus-app/quarkus-run.jar"]
|
||||
USER 1001
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "quarkus-app/quarkus-run.jar", "-Dquarkus.http.host=0.0.0.0"]
|
||||
@@ -1,16 +1,23 @@
|
||||
FROM quay.io/quarkus/quarkus-micro-image:2.0
|
||||
WORKDIR /app
|
||||
|
||||
VOLUME /app/data
|
||||
|
||||
EXPOSE 4566
|
||||
FROM registry.access.redhat.com/ubi9-minimal:9.7
|
||||
|
||||
ARG VERSION=latest
|
||||
ARG BINARY_FILE=application
|
||||
|
||||
ENV FLOCI_VERSION=${VERSION}
|
||||
|
||||
COPY ${BINARY_FILE} /app/application
|
||||
RUN chmod +x /app/application
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["/app/application"]
|
||||
VOLUME /app/data
|
||||
|
||||
RUN chown 1001 /app \
|
||||
&& chmod "g+rwX" /app \
|
||||
&& chown 1001:root /app
|
||||
|
||||
COPY --chown=1001:root target/*.properties target/*.so /app/
|
||||
COPY --chown=1001:root target/*-runner /app/application
|
||||
|
||||
EXPOSE 4566
|
||||
|
||||
USER 1001
|
||||
|
||||
CMD ["./application", "-Dquarkus.http.host=0.0.0.0"]
|
||||
@@ -1 +0,0 @@
|
||||
hectorvent.dev
|
||||
@@ -128,6 +128,19 @@ floci:
|
||||
enabled: true
|
||||
```
|
||||
|
||||
## Service Limits
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------------------------------------------------|----------|---------------------------------------------------------------|
|
||||
| `FLOCI_SERVICES_SSM_MAX_PARAMETER_HISTORY` | `5` | Max parameter versions kept |
|
||||
| `FLOCI_SERVICES_SQS_DEFAULT_VISIBILITY_TIMEOUT` | `30` | Visibility timeout (seconds) |
|
||||
| `FLOCI_SERVICES_SQS_MAX_MESSAGE_SIZE` | `262144` | Max message size (bytes) |
|
||||
| `FLOCI_SERVICES_SQS_MAX_RECEIVE_COUNT` | `10` | Max receive count |
|
||||
| `FLOCI_SERVICES_S3_MAX_MULTIPART_PARTS` | `10000` | Max parts per upload |
|
||||
| `FLOCI_SERVICES_S3_DEFAULT_PRESIGN_EXPIRY_SECONDS` | `3600` | Pre-signed URL expiry |
|
||||
| `FLOCI_SERVICES_DYNAMODB_MAX_ITEM_SIZE` | `400000` | Max item size (bytes) |
|
||||
| `FLOCI_SERVICES_DOCKER_NETWORK` | | Shared Docker network for Lambda, RDS, ElastiCache containers |
|
||||
|
||||
## Disabling Services
|
||||
|
||||
Set `enabled: false` for any service you don't need. Disabled services return a `ServiceUnavailableException` rather than silently ignoring calls.
|
||||
|
||||
@@ -38,6 +38,41 @@ floci:
|
||||
mode: memory
|
||||
```
|
||||
|
||||
## Per-Service Storage Overrides
|
||||
|
||||
Override the global mode for individual services via environment variables:
|
||||
|
||||
| Variable | Default | Description |
|
||||
|-----------------------------------------------------------------|----------|----------------------------------------|
|
||||
| `FLOCI_STORAGE_SERVICES_SSM_MODE` | `memory` | SSM storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_SSM_FLUSH_INTERVAL_MS` | `5000` | SSM flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_SQS_MODE` | `memory` | SQS storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_SQS_PERSIST_ON_SHUTDOWN` | `true` | Flush SQS messages to disk on shutdown |
|
||||
| `FLOCI_STORAGE_SERVICES_S3_MODE` | `hybrid` | S3 storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_S3_CACHE_SIZE_MB` | `100` | S3 in-memory cache size (MB) |
|
||||
| `FLOCI_STORAGE_SERVICES_DYNAMODB_MODE` | `memory` | DynamoDB storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_DYNAMODB_FLUSH_INTERVAL_MS` | `5000` | DynamoDB flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_SNS_MODE` | `memory` | SNS storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_SNS_FLUSH_INTERVAL_MS` | `5000` | SNS flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_LAMBDA_MODE` | `memory` | Lambda storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_LAMBDA_FLUSH_INTERVAL_MS` | `5000` | Lambda flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_APIGATEWAY_MODE` | `memory` | API Gateway (v1) storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_APIGATEWAY_FLUSH_INTERVAL_MS` | `5000` | API Gateway (v1) flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_APIGATEWAYV2_MODE` | `memory` | API Gateway (v2) storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_APIGATEWAYV2_FLUSH_INTERVAL_MS` | `5000` | API Gateway (v2) flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_IAM_MODE` | `memory` | IAM storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_IAM_FLUSH_INTERVAL_MS` | `5000` | IAM flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_RDS_MODE` | `memory` | RDS storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_RDS_FLUSH_INTERVAL_MS` | `5000` | RDS flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_EVENTBRIDGE_MODE` | `memory` | EventBridge storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_EVENTBRIDGE_FLUSH_INTERVAL_MS` | `5000` | EventBridge flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_CLOUDWATCHLOGS_MODE` | `memory` | CloudWatch Logs storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_CLOUDWATCHLOGS_FLUSH_INTERVAL_MS` | `5000` | CloudWatch Logs flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_CLOUDWATCHMETRICS_MODE` | `memory` | CloudWatch Metrics storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_CLOUDWATCHMETRICS_FLUSH_INTERVAL_MS` | `5000` | CloudWatch Metrics flush interval (ms) |
|
||||
| `FLOCI_STORAGE_SERVICES_SECRETSMANAGER_MODE` | `memory` | Secrets Manager storage mode |
|
||||
| `FLOCI_STORAGE_SERVICES_SECRETSMANAGER_FLUSH_INTERVAL_MS` | `5000` | Secrets Manager flush interval (ms) |
|
||||
|
||||
## Environment Variable Override
|
||||
|
||||
```bash
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
Floci is MIT licensed and welcomes contributions of all kinds.
|
||||
|
||||
## Ways to Help
|
||||
## Ways to Help
|
||||
|
||||
- **Bug reports** — open a [GitHub issue](https://github.com/hectorvent/floci/issues/new?template=bug_report.md) with a minimal reproduction
|
||||
- **Missing API actions** — open a [feature request](https://github.com/hectorvent/floci/issues/new?template=feature_request.md)
|
||||
|
||||
Reference in new issue
Block a user