-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (53 loc) · 2.1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#
# This file is part of Brazil Data Cube compendium-harmonization.
# Copyright (C) 2022 INPE.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
#
version: "3.2"
services:
hash-github-assets-files:
build:
context: .
image: harmonization-compendium/tools-checksum:0.1
container_name: tools-checksum_github-assets
command: scripts/calculate_assets_checksum.py
environment:
#
# 1. Environment variables used to define the input/output directories (Outside the Container).
#
- INPUT_DATA_DIRECTORY=/opt/compendium/input # Base directory where the directories to which BagIt will be applied are located.
- OUTPUT_DATA_DIRECTORY=/opt/compendium/output # Directory to store the generated zip from each subdirectory present in `INPUT_DATA_DIRECTORY`.
#
# 2. Bagit Hashing process configuration.
#
- BAGIT_HASH_PROCESSES=8
volumes:
#
# 3. Volume for the input directory. The target must be the same as defined in the `INPUT_DATA_DIRECTORY` variable.
#
- type: bind
source: /path/to/local/input
target: /opt/compendium/input
#
# 4. Volume for the output directory. The target must be the same as defined in the `OUTPUT_DATA_DIRECTORY` variable
#
- type: bind
source: /path/to/local/output
target: /opt/compendium/output
networks:
- research_processing_network
networks:
research_processing_network:
external: true