Skip to content
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
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ Use format '#GitHub_TaskNumber-# issue description' or 'Merge description'. Issu
2.2 command line: `gradle jacocoTestReport`
3. Pay attention that main local metric would be a little bit different from the one in Sonar cloud.

### Container Management Platform:
We use [portainer-ce](https://hub.docker.com/r/portainer/portainer-ce) as container management platform. For now, we only support read-only mode since the main purpose of using portainer it is to fetch the logs with the ability to log in with basic auth.
Since portainer-ce does not have the ability to assign read-only permissions to user, we have deployed a proxy docker container called **docker_socket_proxy** and the actual docker portainer called **portainer_readonly**. For more info please go to [docker-compose.yml](./docker-compose-run.yml) file.
The container will be deployed on port **9001** and you can access it on http://brainup.site:9001/.
Credentials to access portainer in read mode. user: **dev**, password: **mystrongpassword**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can add here dev read-only user creds for reading logs?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

### Thanks companies for support
- EPAM for Jira/Confluence, test instance and Jenkins, for contribution support program.
- JetBrains for IDEA licenses
Expand Down
37 changes: 36 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,41 @@ services:
- 80:80
depends_on:
- brn
docker_socket_proxy:
image: tecnativa/docker-socket-proxy
container_name: docker_socket_proxy
restart: always
environment:
CONTAINERS: 1
CONTAINERS_INSPECT: 1
CONTAINERS_LOGS: 1
INFO: 1
VERSION: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- portainer_ro_net

portainer_readonly:
image: portainer/portainer-ce
container_name: portainer_readonly
restart: always
ports:
- "9001:9000"
environment:
- LOG_LEVEL=INFO
volumes:
- portainer_ro_data:/data
networks:
- portainer_ro_net
depends_on:
- docker_socket_proxy
command: -H tcp://docker_socket_proxy:2375
secrets:
firebase_config_json:
file: ./src/main/resources/firebase-brainupspb-dev.json
file: ./src/main/resources/firebase-brainupspb-dev.json
volumes:
portainer_ro_data:

networks:
portainer_ro_net:
Loading