Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #327 from deNBI/feature/bibigrid_compose
Browse files Browse the repository at this point in the history
feat(Bibigrid):added bibigrid to compose
  • Loading branch information
dweinholz authored May 14, 2020
2 parents 975d259 + 5772f48 commit be7f380
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 2 deletions.
33 changes: 32 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,43 @@ thrift_py: ## Builds python code from thrift file
dev-build: ## Build and Start the docker-compose.dev.yml
docker-compose -f docker-compose.dev.yml up --build

dev-d: ## Build and Start the docker-compose.dev.yml
docker-compose -f docker-compose.dev.yml up -d

dev-build-d: ## Build and Start the docker-compose.dev.yml
docker-compose -f docker-compose.dev.yml up --build -d

dev: ## Build and Start the docker-compose.dev.yml
docker-compose -f docker-compose.dev.yml up
docker-compose -f docker-compose.dev.yml up

dev-build-bibigrid: ## Build and Start the docker-compose.dev.yml with bibigrid
docker-compose -f docker-compose.dev.bibigrid.yml up --build

dev-bibigrid: ## Build and Start the docker-compose.dev.yml with bibigrid
docker-compose -f docker-compose.dev.bibigrid.yml up

dev-build-bibigrid-d: ## Build and Start the docker-compose.dev.yml with bibigrid
docker-compose -f docker-compose.dev.bibigrid.yml up --build -d

dev-bibigrid-d: ## Build and Start the docker-compose.dev.yml with bibigrid
docker-compose -f docker-compose.dev.bibigrid.yml up -d

production: ## Build Release from .env
docker-compose -f docker-compose.yml up --build -d

production-bibigrid: ## Build Release from .env and with bibigrid
docker-compose -f docker-compose.bibigrid.yml up --build -d

client_logs: ## Logs from Client
docker logs client_portal-client_1

bibigrid_logs: ## Logs from Bibigrid
docker logs client_bibigrid_1

enter_client_container: ## Enter Client container
docker exec -it client_portal-client_1 bash




.PHONY: help lint docs thrift_py
2 changes: 1 addition & 1 deletion VirtualMachineService/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ openstack_connection:

bibigrid:
# Url for Bibigrid API
bibigrid_url: https://172.21.0.1:8443/bibigrid/
bibigrid_url: http://bibigrid:8080/bibigrid/
sub_network: portalexternalsubnetwork
bibigrid_modes:
- slurm
Expand Down
74 changes: 74 additions & 0 deletions docker-compose.bibigrid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
version: '3.5'
services:
portal-client:
image: denbicloud/cloud-portal-client:${CLOUD_CLIENT_TAG}
ports:
- "9090:9090"

env_file:
- .env

environment:
- OS_AUTH_URL
- OS_PROJECT_ID
- OS_PROJECT_NAME
- OS_USERNAME
- OS_PASSWORD
- OS_USER_DOMAIN_NAME
- OS_PROJECT_DOMAIN_ID
- FORC_API_KEY

volumes:
- ${client_PERSISTENT_PATH}/config.yml:/code/VirtualMachineService/config.yml
- ${client_PERSISTENT_PATH}/server.pem:/code/VirtualMachineService/keys/server.pem
- ./logs/client:/code/VirtualMachineService/log:rw
command: python3 VirtualMachineServer.py /code/VirtualMachineService/config.yml
networks:
- portal

redis:
image: redis:5.0.5
expose:
- "6379"
networks:
- portal

bibigrid:
image: bibiserv/bibigrid:bibigrid_rest_http_enabled
environment:
- OS_AUTH_URL
- OS_PROJECT_ID
- OS_PROJECT_NAME
- OS_USERNAME
- OS_PASSWORD
- OS_USER_DOMAIN_NAME
- OS_PROJECT_DOMAIN_ID
expose:
- "8080"
networks:
- portal

# filebeat
filebeat:
image: docker.elastic.co/beats/filebeat:${FILEBEAT_TAG}
environment:
- ELASTIC_USER
- ELASTIC_PASSWORD
volumes:
- ./filebeat/filebeat.yml:/usr/share/filebeat/filebeat.yml
- ./logs:/usr/share/filebeat/log:ro
- ./filebeat/data:/usr/share/filebeat/data:rw
command: [sh, -c, "chmod go-w /usr/share/filebeat/filebeat.yml && filebeat run -e"]
networks:
- portal

networks:
portal:
name: portal_default
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1440
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1440
63 changes: 63 additions & 0 deletions docker-compose.dev.bibigrid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
version: '3.5'
services:
portal-client:
build:
context: .
dockerfile: Dockerfile
ports:
- "9090:9090"

env_file:
- .env

environment:
- OS_AUTH_URL
- OS_PROJECT_ID
- OS_PROJECT_NAME
- OS_USERNAME
- OS_PASSWORD
- OS_USER_DOMAIN_NAME
- OS_PROJECT_DOMAIN_ID
- FORC_API_KEY

volumes:
- ./VirtualMachineService/config/config.yml:/code/VirtualMachineService/config.yml
- ./VirtualMachineService/keys/localhost/server.pem:/code/VirtualMachineService/keys/server.pem
command: python3 VirtualMachineServer.py /code/VirtualMachineService/config.yml
networks:
- portal

redis:
image: redis:5.0.5
expose:
- "6379"
networks:
- portal

bibigrid:
image: bibiserv/bibigrid:bibigrid_rest_http_enabled
environment:
- OS_AUTH_URL
- OS_PROJECT_ID
- OS_PROJECT_NAME
- OS_USERNAME
- OS_PASSWORD
- OS_USER_DOMAIN_NAME
- OS_PROJECT_DOMAIN_ID
expose:
- "8080"
networks:
- portal



networks:
portal:
name: portal_default
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1440
default:
driver: bridge
driver_opts:
com.docker.network.driver.mtu: 1440
1 change: 1 addition & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
networks:
- portal


networks:
portal:
name: portal_default
Expand Down

0 comments on commit be7f380

Please sign in to comment.