summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Grossberger <code@grossberger.xyz>2021-01-30 15:33:32 +0100
committerLukas Grossberger <code@grossberger.xyz>2021-01-30 15:33:42 +0100
commitc4e3dee8c57dd1ddb87cd4a6ccbd906817820c1e (patch)
tree2985415861fdb29d877a22f2ad55f0a6b1139104
parent58b1cdd88a93bf81a6a0d755310957b8eeeae3bf (diff)
downloadlibeufin-deployment-c4e3dee8c57dd1ddb87cd4a6ccbd906817820c1e.tar.gz
libeufin-deployment-c4e3dee8c57dd1ddb87cd4a6ccbd906817820c1e.tar.bz2
libeufin-deployment-c4e3dee8c57dd1ddb87cd4a6ccbd906817820c1e.zip
add docker compose for building images
-rw-r--r--docker/README.md9
-rw-r--r--docker/cli.Dockerfile5
-rw-r--r--docker/docker-compose.yml20
3 files changed, 26 insertions, 8 deletions
diff --git a/docker/README.md b/docker/README.md
index 0067477..de76b23 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -8,15 +8,8 @@ This could become the bassis for an integration test style `docker-compose` setu
## Build Docker images
-### Base image
```
-docker build -t libeufin:dev -f libeufin.Dockerfile .
-```
-
-### Component images
-```
-docker build -t libeufin-sandbox:dev sandbox.Dockerfile .
-docker build -t libeufin-nexus:dev nexus.Dockerfile .
+docker-compose build
```
## Scenario 1: Sandbox & CLI
diff --git a/docker/cli.Dockerfile b/docker/cli.Dockerfile
new file mode 100644
index 0000000..e48e860
--- /dev/null
+++ b/docker/cli.Dockerfile
@@ -0,0 +1,5 @@
+FROM libeufin:dev
+
+ENV LIBEUFIN_SANDBOX_URL "http://localhost:5000/"
+
+CMD ["libeufin-cli","sandbox","check"]
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
new file mode 100644
index 0000000..1fc5aed
--- /dev/null
+++ b/docker/docker-compose.yml
@@ -0,0 +1,20 @@
+services:
+ libeufin:
+ build:
+ context: ./
+ dockerfile: libeufin.Dockerfile
+ image: libeufin:dev
+ libeufin-sandbox:
+ depends_on:
+ - libeufin
+ build:
+ context: ./
+ dockerfile: sandbox.Dockerfile
+ image: libeufin-sandbox:dev
+ libeufin-nexus:
+ depends_on:
+ - libeufin
+ build:
+ context: ./
+ dockerfile: nexus.Dockerfile
+ image: libeufin-nexus:dev \ No newline at end of file