aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <max@magorsch.de>2019-09-05 16:08:18 +0200
committerMax Magorsch <max@magorsch.de>2019-09-05 16:08:18 +0200
commitec9bba626a63bd4859a98e8a94aa53bc54a24221 (patch)
tree9aabd6803e61c4ba6574d8a1de4ee70e4c9b31dc
parentUse ES 7.3 in the Dockerfile (diff)
downloadpackages-5-ec9bba626a63bd4859a98e8a94aa53bc54a24221.tar.gz
packages-5-ec9bba626a63bd4859a98e8a94aa53bc54a24221.tar.bz2
packages-5-ec9bba626a63bd4859a98e8a94aa53bc54a24221.zip
Use docker volumes for the portage tree
Signed-off-by: Max Magorsch <max@magorsch.de>
-rw-r--r--docker-compose.override.yml17
-rw-r--r--docker-compose.yml18
2 files changed, 34 insertions, 1 deletions
diff --git a/docker-compose.override.yml b/docker-compose.override.yml
index 3226e99..1c609af 100644
--- a/docker-compose.override.yml
+++ b/docker-compose.override.yml
@@ -26,6 +26,12 @@ services:
- type: "bind"
source: "."
target: "/var/www/packages.gentoo.org/htdocs/"
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
# "Redis:port" and "elasticsearch:port" refer to sibling containers.
- REDIS_PROVIDER=REDIS_URL
@@ -48,6 +54,12 @@ services:
- type: "bind"
source: "."
target: "/var/www/packages.gentoo.org/htdocs/"
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
- RAILS_ENV=development
- RAILS_SERVE_STATIC_FILES=1
@@ -87,4 +99,7 @@ services:
ports:
- '1358:1358'
links:
- - elasticsearch \ No newline at end of file
+ - elasticsearch
+volumes:
+ portage:
+ portage-git:
diff --git a/docker-compose.yml b/docker-compose.yml
index c90ef5c..719dc2e 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,6 +21,13 @@ services:
build: .
ports:
- 5000
+ volumes:
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
# "Redis:port" and "elasticsearch:port" refer to sibling containers.
- REDIS_PROVIDER=REDIS_URL
@@ -36,6 +43,13 @@ services:
command: bundle exec thin start -p 5000
sidekiq:
build: .
+ volumes:
+ - type: volume
+ source: portage
+ target: /var/db/repos/gentoo
+ - type: volume
+ source: portage-git
+ target: /mnt/packages-tree
environment:
- RAILS_ENV=production
- RAILS_SERVE_STATIC_FILES=1
@@ -63,3 +77,7 @@ services:
image: redis:4.0.6
ports:
- 6379
+
+volumes:
+ portage:
+ portage-git: