An open API service indexing awesome lists of open source software.

https://github.com/bytedecoder/publisher-docker

Getting Started with .NET Core, Docker, and RabbitMQ
https://github.com/bytedecoder/publisher-docker

autofac-container chsarp console-application docker docker-compose dotnet-core rabbitmq swagger-documentation web-api-core xunit-tests

Last synced: 10 months ago
JSON representation

Getting Started with .NET Core, Docker, and RabbitMQ

Awesome Lists containing this project

README

          

[![Maintainability](https://api.codeclimate.com/v1/badges/8cf4a142b799b3d10d37/maintainability)](https://codeclimate.com/github/ByteDecoder/publisher-docker/maintainability)

# publisher-docker

After pulling the project from github run:

```bash
$ dotnet core restore
```

Use VSCode, Visual Studio for Windows or MacOSX.

The docker containers, are linux containers, no Windows containers

## Eunning the Project

```bash
$ docker-compose up --build
```

## RabbitMQ Managment Console

With the docker compose running, open this URL in your web browser. Credentetials **guest/guest**

*http://localhost:15672*

## Swagger API documentation

browse
http://localhost:/swagger

## Running Web service

```bash
$ dotnet run --project .\publisher_api\
```

# Starting docker compose

Execute at docker-compose.yml path, the next command in the terminal

```bash
$ docker-compose up --build
$ docker-compose down
```

## Running the worker

```bash
$ dotnet run --project .\worker\
$ docker run my_worker
```

## Creating docker image from Dockerfile

```bash
$ docker build -t my_publisher_api .
$ docker build -f ./Dockerfile -t my_worker ..
```

## Docker - Start docker from an docker image

```bash
$ docker run my_publisher_api
```

## Docker - Eliminating stopped containers

```bash
$ docker system prune
```

## Docker - Display all container && images

```bash
$ docker images ls
$ docker container ls
$ docker ps -a
$ docker rmi
```