Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

SwissTierrasColombia/st-microservice-filemanager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice Filemanager

Microservice that allows document management.

Running Development

$ mvn spring-boot:run

Configuration

How to disable eureka client?

Modify the enabled property in st-microservice-filemanager/src/main/resources/application.yml file:

eureka:
  client:
    enabled: false

How to disable config client?

Modify the enabled property in st-microservice-filemanager/src/main/resources/bootstrap.yml file:

spring:
  application:
    name: st-microservice-filemanager
  cloud:
    config:
      enabled: false

Swagger Documentation?

See http://localhost:8886/swagger-ui.html

Running Production

Master Branch

Go to the master branch

$ git checkout master

Generate jar

$ mvn clean package -DskipTests

Create Network Docker

$ docker network create st

Create image from Dockerfile

$ docker build -t st-microservice-filemanager:lynx .

Run Container

$ docker run -P -t --network st -d -v /opt/file-manager/files:/opt/file-manager/files  st-microservice-filemanager:lynx

License

Agencia de Implementación - BSF Swissphoto - INCIGE