Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Java.Add README.md #320

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions share/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM maven:3.5.4-jdk-8-alpine
MAINTAINER share
ADD ./ /share
RUN cd /share && mvn package
ENTRYPOINT ["java","-agentlib:jdwp=transport=dt_socket,server=y,suspend=n","-jar","/share/target/sharingMicroService-0.0.1.jar"]
42 changes: 41 additions & 1 deletion share/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
Source folder for sharing microservice written on java
# Share
The purpose of the Share service is to publish posts, job vacancies to be exact, on different web sites. Currently it supports following websites:
* [Diesel Forum](http://diesel.elcat.kg/)
* [JOB.KG](http://www.job.kg/)
* [Facebook](https://www.facebook.com/)

## Getting started
The instructions bellow for Ubuntu Linux 14.04 LTS and above
### Prerequisites
To be able to start the project, following applications must be installed:
* docker
* docker-compose
* git

```
$ apt update
$ apt install git docker docker-compose
```

### Run project
Clone the project from github repository https://github.com/ZenSoftIO/hr-crm
```
$ git clone https://github.com/ZenSoftIO/hr-crm
```
go to project folder
```
$ cd ./share
```
run the docker-compose file with `build` flag
```
$ docker-compose up --build
```
### Usage
RabbitMQ is used as a communication method. The service is configured for `share` exchange. The project is configured to read data on a `json` format.

### Credits
* [Temirlan Renatov](https://github.com/PlusRT)
* [Aidar Aibekov](https://github.com/aidar-aibekov)
* [Dastan Namazov](https://github.com/kb1prb13)
* [Azamat Derkenbaev](https://github.com/derkenbaev)
* [Aziret Toktoraliev](https://github.com/aziret26)
27 changes: 27 additions & 0 deletions share/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: '2'

services:
share_postgresql:
image: postgres:latest
container_name: share_postgresql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
- POSTGRES_DB=share_micro_service
ports:
- "5432:5432"
hostname: share_postgresql

share_service:
build:
context: ./
container_name: share_micro_service
depends_on:
- share_postgresql
links:
- share_postgresql

env_file:
- .env/.rabbitmq
- .env/.postgresql

This file was deleted.