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
|
||||
chmod +x scripts/deploy-database.sh
|
||||
|
||||
# Run deployment
|
||||
# Run deployment (includes building and pushing database container)
|
||||
./scripts/deploy-database.sh
|
||||
```
|
||||
|
||||
The script will:
|
||||
1. Install CNPG operator
|
||||
2. Create namespace and secrets
|
||||
3. Deploy PostgreSQL cluster
|
||||
4. Run migrations
|
||||
5. Create initial admin user
|
||||
1. Build and push database container image
|
||||
2. Install CNPG operator
|
||||
3. Create namespace and secrets
|
||||
4. Deploy PostgreSQL cluster
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user