addressing configuration dependency issues
Some checks failed
CI / Rustfmt (push) Successful in 59s
CI / Web Blocking Checks (push) Has been cancelled
CI / Security Blocking Checks (push) Has been cancelled
CI / Web Advisory Checks (push) Has been cancelled
CI / Tests (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Security Advisory Checks (push) Has been cancelled
CI / Cargo Audit & Deny (push) Has been cancelled
Publish Images And Chart / Resolve Publish Metadata (push) Successful in 3s
Publish Images And Chart / Publish init-packs (push) Successful in 47s
Publish Images And Chart / Publish sensor (push) Failing after 23s
Publish Images And Chart / Publish init-user (push) Successful in 1m51s
Publish Images And Chart / Publish migrations (push) Successful in 1m57s
Publish Images And Chart / Publish web (push) Successful in 57s
Publish Images And Chart / Publish api (push) Failing after 48s
Publish Images And Chart / Publish worker (push) Failing after 1m23s
Publish Images And Chart / Publish executor (push) Failing after 1m9s
Publish Images And Chart / Publish notifier (push) Failing after 1h44m16s
Publish Images And Chart / Publish Helm Chart (push) Has been cancelled
Some checks failed
CI / Rustfmt (push) Successful in 59s
CI / Web Blocking Checks (push) Has been cancelled
CI / Security Blocking Checks (push) Has been cancelled
CI / Web Advisory Checks (push) Has been cancelled
CI / Tests (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Security Advisory Checks (push) Has been cancelled
CI / Cargo Audit & Deny (push) Has been cancelled
Publish Images And Chart / Resolve Publish Metadata (push) Successful in 3s
Publish Images And Chart / Publish init-packs (push) Successful in 47s
Publish Images And Chart / Publish sensor (push) Failing after 23s
Publish Images And Chart / Publish init-user (push) Successful in 1m51s
Publish Images And Chart / Publish migrations (push) Successful in 1m57s
Publish Images And Chart / Publish web (push) Successful in 57s
Publish Images And Chart / Publish api (push) Failing after 48s
Publish Images And Chart / Publish worker (push) Failing after 1m23s
Publish Images And Chart / Publish executor (push) Failing after 1m9s
Publish Images And Chart / Publish notifier (push) Failing after 1h44m16s
Publish Images And Chart / Publish Helm Chart (push) Has been cancelled
This commit is contained in:
@@ -29,13 +29,16 @@ curl -X POST http://localhost:8080/auth/login \
|
||||
|
||||
### Dockerfiles
|
||||
|
||||
- **`Dockerfile`** - Multi-stage Dockerfile for all Rust services (API, Executor, Worker, Sensor, Notifier)
|
||||
- **`Dockerfile.optimized`** - Multi-stage Dockerfile for Rust services (API, Executor, Notifier)
|
||||
- Uses build argument `SERVICE` to specify which service to build
|
||||
- Example: `docker build --build-arg SERVICE=api -f docker/Dockerfile -t attune-api .`
|
||||
- Example: `docker build --build-arg SERVICE=api -f docker/Dockerfile.optimized -t attune-api .`
|
||||
|
||||
- **`Dockerfile.worker`** - Multi-stage Dockerfile for containerized workers with different runtime capabilities
|
||||
- **`Dockerfile.worker.optimized`** - Multi-stage Dockerfile for containerized workers with different runtime capabilities
|
||||
- Supports 4 variants: `worker-base`, `worker-python`, `worker-node`, `worker-full`
|
||||
- See [README.worker.md](./README.worker.md) for details
|
||||
|
||||
- **`Dockerfile.sensor.optimized`** - Multi-stage Dockerfile for the sensor service
|
||||
- Supports `sensor-base` and `sensor-full`
|
||||
|
||||
- **`Dockerfile.web`** - Multi-stage Dockerfile for React Web UI
|
||||
- Builds with Node.js and serves with Nginx
|
||||
@@ -130,7 +133,7 @@ docker compose build worker
|
||||
DOCKER_BUILDKIT=1 docker build \
|
||||
--build-arg SERVICE=api \
|
||||
--build-arg RUST_VERSION=1.92 \
|
||||
-f docker/Dockerfile \
|
||||
-f docker/Dockerfile.optimized \
|
||||
-t attune-api:custom \
|
||||
.
|
||||
```
|
||||
@@ -403,9 +406,9 @@ Caused by:
|
||||
lock file version `4` was found, but this version of Cargo does not understand this lock file
|
||||
```
|
||||
|
||||
Solution: Update Rust version in Dockerfile
|
||||
Solution: Update Rust version in the optimized Dockerfile
|
||||
```bash
|
||||
# Edit docker/Dockerfile and change:
|
||||
# Edit docker/Dockerfile.optimized and change:
|
||||
ARG RUST_VERSION=1.75
|
||||
# to:
|
||||
ARG RUST_VERSION=1.92
|
||||
@@ -557,4 +560,4 @@ docker system prune -a --volumes
|
||||
- [Docker Compose Documentation](https://docs.docker.com/compose/)
|
||||
- [Multi-stage Builds](https://docs.docker.com/build/building/multi-stage/)
|
||||
- [Dockerfile Best Practices](https://docs.docker.com/develop/dev-best-practices/)
|
||||
- [Main Documentation](../docs/docker-deployment.md)
|
||||
- [Main Documentation](../docs/docker-deployment.md)
|
||||
|
||||
Reference in New Issue
Block a user