Compare commits
2 Commits
7b7d422890
...
compartmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 690a117ffd | |||
| 9dfbded5b8 |
31
README.md
31
README.md
@@ -67,6 +67,37 @@ To build and run the application, follow these steps:
|
||||
5. After a successful build, you can start the application by running `dotnet run`.
|
||||
6. The application will start, and you can access the endpoints as specified.
|
||||
|
||||
## Building a Docker Image
|
||||
|
||||
### Building a Docker Image for the Minimal API Version
|
||||
|
||||
To containerize the `AS1024.GeoFeed` version using Docker, you can follow these steps to build a Docker image:
|
||||
|
||||
1. Open your terminal or command line interface.
|
||||
2. Navigate to the root directory of this repository.
|
||||
3. Execute the following Docker build command: ``docker buildx build --platform=linux/amd64,linux/arm64 -f .\AS1024.GeoFeed\Dockerfile .``
|
||||
|
||||
### Building a Docker Image for the Minimal API Version
|
||||
|
||||
To containerize the `AS1024.GeoFeed.MinimalAPI` version using Docker, you can follow these steps to build a Docker image:
|
||||
|
||||
1. Open your terminal or command line interface.
|
||||
2. Navigate to the root directory of this repository.
|
||||
3. Execute the following Docker build command: ``docker buildx build --platform=linux/amd64 -f .\AS1024.GeoFeed.MinimalAPI\Dockerfile.alpine-selfcontained .``
|
||||
|
||||
**Currently the minimal API version does not support being cross compiled for different CPU architectures. It is best built with the same CPU architecture where the build machine is targeting to.**
|
||||
|
||||
Ensure you have Docker installed and configured on your machine before executing this command. This Docker image can then be used to deploy the application in containerized environments such as Kubernetes or Docker Compose setups.
|
||||
|
||||
## Docker Deployment
|
||||
|
||||
To deploy the Docker container of this GeoFeed application, simply pull the image for the following variants:
|
||||
|
||||
- MVC Variant ``docker pull git.startmywifi.com/as1024/geofeed:latest``
|
||||
- Minimal API Variant ``docker pull git.startmywifi.com/as1024/geofeed:aot-minimal``
|
||||
|
||||
To configure the container, please refer to the Configuration section above. You should be able to configure this with either an environment variable or map an ``appSettings.json`` file to the container.
|
||||
|
||||
## Endpoints
|
||||
|
||||
The application provides the following key endpoints:
|
||||
|
||||
Reference in New Issue
Block a user