Skip to content
This repository was archived by the owner on Mar 25, 2018. It is now read-only.

RNGELICALS_INFRA_HOUR2 #37

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions TASKS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Hour 1
- [x] (2pt) Create a dockerfile for each projects in `settings.gradle`
- [ ] (1pt) Create a gradle task to build all docker, the task could look like `./gradlew clean build buildDocker -x test`
- [ ] (0.5pt) Create a gradle task to build single docker images when you are working in only one module
- [ ] (2pt) Create a docker-compose version 3+ file to orchestrate de booting of all modules

Docker files are done, you can build with `docker build authorization/` for example. I dunno what that does, but it runs.

I tried the second one, create a gradle task, but I dunno what I'm doing. It's in `build.gradle`
3 changes: 3 additions & 0 deletions authorization/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.7
EXPOSE 6379
ENV REDIS_VERSION=4.0.8
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,19 @@ subprojects {
maven { url 'https://repo.spring.io/libs-snapshot'
}
}
}


def buildDockers = {
exec {
commandLine "docker", "build", "authorization/"
commandLine "docker", "build", "communication/"
commandLine "docker", "build", "config-server/"
commandLine "docker", "build", "eureka-server/"
commandLine "docker", "build", "zuul-server/"
}
}

task buildDocker(type: Exec) {
buildDockers()
}
3 changes: 3 additions & 0 deletions communication/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.7
EXPOSE 6379
ENV REDIS_VERSION=4.0.8
3 changes: 3 additions & 0 deletions config-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.7
EXPOSE 6379
ENV REDIS_VERSION=4.0.8
3 changes: 3 additions & 0 deletions eureka-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.7
EXPOSE 6379
ENV REDIS_VERSION=4.0.8
3 changes: 3 additions & 0 deletions zuul-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM alpine:3.7
EXPOSE 6379
ENV REDIS_VERSION=4.0.8