consumer

command module
v0.0.0-...-1ff77d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 6 Imported by: 0

README

RabbitMQ Consumer

Build and Push up to Docker Hub

docker build -t mushufeels/consumer .
docker push mushufeels/consumer:latest

Pull down from Docker Hub into VM

docker pull mushufeels/consumer:latest

Create .env file in VM

touch ~/consumer.env
echo "RABBITMQ_HOST={ip_address}" >> ~/consumer.env
echo "LOG_LEVEL=warn" >> ~/consumer.env
echo "AWS_ACCESS_KEY_ID={KEY_ID}" >> ~/consumer.env
echo "AWS_SECRET_ACCESS_KEY={ACCESS_KEY}" >> ~/consumer.env

Run container

docker run -d --name consumer --env-file ~/consumer.env -p 8080:8080 mushufeels/consumer

Stop containers

docker stop {container_name}

Restart stopped containers

docker start {container_name}

View logs of containers

docker logs {container_name}

Remove containers

docker rm {container_name}

Remove images

docker image rm {image_id}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL