Update DEPLOYMENT.md to enhance Docker image publishing instructions
Revised the section on building and running Docker images to include a recommended PowerShell script for publishing to a Docker registry. Added detailed options and examples for using the script, while maintaining the manual build instructions for flexibility. This update improves clarity and usability for developers deploying the application.
This commit is contained in:
+35
-1
@@ -107,13 +107,47 @@ stringData:
|
||||
|
||||
## Building and Running
|
||||
|
||||
### Build the Docker Image
|
||||
### Publish to Docker Registry (Recommended)
|
||||
|
||||
Use the provided PowerShell script to build and publish the Docker image:
|
||||
|
||||
```powershell
|
||||
.\publish-docker.ps1
|
||||
```
|
||||
|
||||
**Options:**
|
||||
- `-Tag "v1.0.0"` - Specify a custom tag (default: "latest")
|
||||
- `-Registry "docker-registry.kolpacksoftware.com"` - Specify registry URL
|
||||
- `-ImageName "tsa-chapter-organizer"` - Specify image name
|
||||
- `-BuildConfiguration "Release"` - Specify build configuration
|
||||
|
||||
**Examples:**
|
||||
```powershell
|
||||
# Publish with default settings (latest tag)
|
||||
.\publish-docker.ps1
|
||||
|
||||
# Publish with a version tag
|
||||
.\publish-docker.ps1 -Tag "v1.0.0"
|
||||
|
||||
# Publish with custom registry
|
||||
.\publish-docker.ps1 -Tag "latest" -Registry "my-registry.com"
|
||||
```
|
||||
|
||||
### Build the Docker Image (Manual)
|
||||
|
||||
If you prefer to build manually:
|
||||
|
||||
```bash
|
||||
cd WebApp
|
||||
docker build -t tsa-chapter-organizer:latest .
|
||||
```
|
||||
|
||||
Or from the root directory:
|
||||
|
||||
```bash
|
||||
docker build -f WebApp/Dockerfile -t tsa-chapter-organizer:latest .
|
||||
```
|
||||
|
||||
### Run with Docker Compose
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user