Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikebild/msws
https://github.com/mikebild/msws
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mikebild/msws
- Owner: MikeBild
- Created: 2020-02-16T08:33:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T14:53:39.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T12:45:03.592Z (about 1 month ago)
- Language: C#
- Size: 1.26 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MicroServices with OpenShift and DotNet-Core
## Example
### Docker-Compose
#### Local
```
docker-compose up
```#### Publish
```
docker-compose build
docker-compose push
```#### OpenShift Image Stream updates
```bash
oc tag mikebild/products-api products-api:latest --scheduled
oc tag mikebild/web-app web-app:latest --scheduled
```### OpenShift
**Convert Docker-Compose to OpenShift**
`kompose convert -f docker-compose.yml --provider=OpenShift`
**Update OpenShift**
```bash
oc apply -f ./deployments/redis-deploymentconfig.yaml
oc apply -f ./deployments/redis-imagestream.yaml
oc apply -f ./deployments/redis-service.yaml
``````bash
oc apply -f ./deployments/products-api-deploymentconfig.yaml
oc apply -f ./deployments/products-api-imagestream.yaml
oc apply -f ./deployments/products-api-service.yaml
``````bash
oc apply -f ./deployments/web-app-deploymentconfig.yaml
oc apply -f ./deployments/web-app-imagestream.yaml
oc apply -f ./deployments/web-app-service.yaml
```**Expose Service**
```bash
oc expose svc/products-api
oc expose svc/web-app
```**Delete OpenShift Deployments**
```bash
oc delete all -l io.kompose.service=redis
oc delete all -l io.kompose.service=products-api
oc delete all -l io.kompose.service=web-app
```## Links
### Docker
### Docker Compose
https://docs.docker.com/compose/
### OpenShift und Docker
https://torstenwalter.de/minishift/openshift/docker/registry/2017/07/25/build-docker-image-and-upload-to-openshift-registry.html
https://access.redhat.com/documentation/en-us/net_core/2.2/html-single/getting_started_guide/index