Update README with database container build instructions
This commit is contained in:
33
README.md
33
README.md
@@ -44,16 +44,37 @@ The database schema includes:
|
|||||||
# Make script executable
|
# Make script executable
|
||||||
chmod +x scripts/deploy-database.sh
|
chmod +x scripts/deploy-database.sh
|
||||||
|
|
||||||
# Run deployment
|
# Run deployment (includes building and pushing database container)
|
||||||
./scripts/deploy-database.sh
|
./scripts/deploy-database.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The script will:
|
The script will:
|
||||||
1. Install CNPG operator
|
1. Build and push database container image
|
||||||
2. Create namespace and secrets
|
2. Install CNPG operator
|
||||||
3. Deploy PostgreSQL cluster
|
3. Create namespace and secrets
|
||||||
4. Run migrations
|
4. Deploy PostgreSQL cluster
|
||||||
5. Create initial admin user
|
5. Run migrations
|
||||||
|
6. Create initial admin user
|
||||||
|
|
||||||
|
### Build Database Container Manually
|
||||||
|
|
||||||
|
If you need to build and push the database container separately:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Build the image
|
||||||
|
docker build -t 192.168.123.18:3001/umbragit/umbradatastore:latest \
|
||||||
|
-t 192.168.123.18:3001/umbragit/umbradatastore:16.4 \
|
||||||
|
-f Dockerfile \
|
||||||
|
/path/to/UmbraDatastore
|
||||||
|
|
||||||
|
# Push to registry (requires Docker daemon configured for insecure registry)
|
||||||
|
# Add to /etc/docker/daemon.json:
|
||||||
|
# { "insecure-registries": ["192.168.123.18:3001"] }
|
||||||
|
# Then restart Docker: systemctl restart docker
|
||||||
|
|
||||||
|
docker push 192.168.123.18:3001/umbragit/umbradatastore:latest
|
||||||
|
docker push 192.168.123.18:3001/umbragit/umbradatastore:16.4
|
||||||
|
```
|
||||||
|
|
||||||
### Manual Steps
|
### Manual Steps
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user