Commit abd72cb8 authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

Replacing cache folder with a Docker volume.

parent 103258ed
Pipeline #3204 failed with stages
in 3 seconds
...@@ -9,7 +9,7 @@ build_development: ...@@ -9,7 +9,7 @@ build_development:
script: script:
- export TAG=dev - export TAG=dev
- export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4000 - export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4000
- export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=${PWD}/catalog-cache-${TAG} - export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=catalog-cache-${TAG}
- export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml - export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml
- docker-compose build - docker-compose build
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
...@@ -24,7 +24,7 @@ build_release: ...@@ -24,7 +24,7 @@ build_release:
script: script:
- export TAG=$(echo $CI_COMMIT_TAG | sed 's/v//g') - export TAG=$(echo $CI_COMMIT_TAG | sed 's/v//g')
- export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040 - export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040
- export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=${PWD}/catalog-cache-${TAG} - export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=catalog-cache-${TAG}
- export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml - export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml
- docker-compose build - docker-compose build
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
...@@ -37,7 +37,7 @@ deploy_development: ...@@ -37,7 +37,7 @@ deploy_development:
script: script:
- export TAG=dev - export TAG=dev
- export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040 - export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4040
- export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=${PWD}/catalog-cache-${TAG} - export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=catalog-cache-${TAG}
- export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml - export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose pull - docker-compose pull
...@@ -53,7 +53,7 @@ deploy_staging: ...@@ -53,7 +53,7 @@ deploy_staging:
script: script:
- export TAG=staging - export TAG=staging
- export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4140 - export CSV_CATALOG_DOWNLOAD_SERVICE_BIND_PORT=4140
- export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=${PWD}/catalog-cache-${TAG} - export CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME=catalog-cache-${TAG}
- export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml - export CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH=${PWD}/config.yaml
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- TAG=dev docker-compose pull - TAG=dev docker-compose pull
......
...@@ -9,3 +9,6 @@ services: ...@@ -9,3 +9,6 @@ services:
volumes: volumes:
- ${CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH}:/app/config.yaml:ro - ${CSV_CATALOG_DOWNLOAD_SERVICE_CONFIG_FILE_PATH}:/app/config.yaml:ro
- ${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}:/app/cache - ${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}:/app/cache
volumes:
${CSV_CATALOG_DOWNLOAD_SERVICE_CACHE_VOLUME}:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment