File tree Expand file tree Collapse file tree 13 files changed +47
-37
lines changed
base-streaming-file-server Expand file tree Collapse file tree 13 files changed +47
-37
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,8 @@ jobs:
157157 jdk : openjdk11
158158 name : Postgres (openjdk11)
159159 script :
160- - ./gradlew clean assemble >/dev/null
161- - ./gradlew clean assemble postgresUp >/dev/null
160+ - ./gradlew clean assemble
161+ - ./gradlew clean assemble postgresUp
162162 - bash ./modules/apps/file-items-service/build/libs/*.jar --spring.profiles.active=db-pg &
163163 - wait_for 8001
164164 - cp -Rf ./modules/apps/file-server/build/libs "${APP_UPLOAD_PATH}/"
@@ -175,8 +175,8 @@ jobs:
175175 jdk : openjdk8
176176 name : Postgres (openjdk8)
177177 script :
178- - ./gradlew clean assemble >/dev/null
179- - ./gradlew clean assemble postgresUp >/dev/null
178+ - ./gradlew clean assemble
179+ - ./gradlew clean assemble postgresUp
180180 - bash ./modules/apps/file-items-service/build/libs/*.jar --spring.profiles.active=db-pg &
181181 - wait_for 8001
182182 - cp -Rf ./modules/apps/file-server/build/libs "${APP_UPLOAD_PATH}/"
Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ open `pwd`/modules/apps/file-server/build/jgiven-report/index.html
5959``` sh
6060./gradlew clean assemble allUp -Pdebug
6161http -a user:password :80
62- ./gradlew allDown
6362```
6463
6564** run all in docker manually**
Original file line number Diff line number Diff line change 11# streaming-file-server
2- _ version: 4 .3.31 _
2+ _ 4 .3.31 release notes _
33
4- * Gradle 6.0.1
4+ * Migrate tp Gradle 6.0.1
5+ * Migrate ` kotlin-dsl ` -> ` embedded-kotlin `
56* Remove useless gradle propdeps plugins
7+ * More Gradle Kotlin DSL migrations
8+ * Update docker images
69
710## Java file server
811
Original file line number Diff line number Diff line change 11plugins {
22 idea
33 eclipse
4- `kotlin - dsl `
4+ `embedded - kotlin `
55}
66
77repositories {
@@ -21,7 +21,3 @@ eclipse {
2121 isDownloadSources = true
2222 }
2323}
24-
25- kotlinDslPluginOptions {
26- experimentalWarning.set(false )
27- }
Original file line number Diff line number Diff line change 1- FROM openjdk:14-jdk-alpine3.10
1+ # FROM openjdk:14...-jdk-alpine3.10 # <- this one is doesn't work!
2+ FROM openjdk:13-jdk-alpine3.10
3+ # FROM openjdk:13-ea-jdk-alpine3.10
24# FROM openjdk:13-ea-19-jdk-alpine3.9
35# FROM openjdk:8u201-jre-alpine3.9
46# #FROM openjdk:8u191-jre-alpine3.8
@@ -20,7 +22,6 @@ VOLUME /home/appuser
2022ARG JAVA_OPTS_ARGS='\
2123-Djava.net.preferIPv4Stack=true \
2224-XX:+UnlockExperimentalVMOptions \
23- -XX:+UnlockExperimentalVMOptions \
2425-XshowSettings:vm '
2526ENV JAVA_OPTS="${JAVA_OPTS} ${JAVA_OPTS_ARGS}"
2627
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ FROM docker_base-streaming-file-server:latest
2727ENTRYPOINT java ${JAVA_OPTS} -jar ./app.jar --spring.profiles.active=db-pg
2828EXPOSE 8001
2929HEALTHCHECK --retries=33 \
30- --timeout=1s \
30+ --timeout=3s \
3131 --interval=3s \
32- --start-period=1s \
32+ --start-period=3s \
3333 CMD wget --quiet --tries=1 --spider http://127.0.0.1:8001/actuator/health || exit 1
3434COPY --chown=appuser ./modules/apps/file-items-service/build/libs/*.jar ./app.jar
Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ FROM docker_base-streaming-file-server:latest
3232ENTRYPOINT java ${JAVA_OPTS} -jar ./app.jar --spring.profiles.active=db-pg
3333EXPOSE 8002
3434HEALTHCHECK --retries=33 \
35- --timeout=1s \
35+ --timeout=3s \
3636 --interval=3s \
37- --start-period=1s \
37+ --start-period=3s \
3838 CMD wget --quiet --tries=1 --spider http://127.0.0.1:8002/actuator/health || exit 1
3939ARG APP_UPLOAD_PATH_ARG='/var/file-storage'
4040ENV APP_UPLOAD_PATH="${APP_UPLOAD_PATH_ARG}"
Original file line number Diff line number Diff line change 1- FROM haproxy:2.0.0-alpine
1+ FROM haproxy:2.0.9-alpine
2+ # FROM haproxy:2.0.0-alpine
23# FROM haproxy:1.9.8-alpine
34# #FROM haproxy:1.9.7-alpine
45HEALTHCHECK --retries=33 \
5- --timeout=1s \
6+ --timeout=3s \
67 --interval=3s \
7- --start-period=1s \
8+ --start-period=3s \
89 CMD true
910RUN apk add --update --no-cache curl
1011COPY ./haproxy.cfg /usr/local/etc/haproxy/haproxy.cfg
Original file line number Diff line number Diff line change 1- FROM nginx:1.17.0-alpine
1+ FROM nginx:1.17.6-alpine
2+ # FROM nginx:1.17.0-alpine
23# FROM nginx:1.15.12-alpine
34LABEL MAINTAINER='Maksim Kostromin https://github.com/daggerok'
45HEALTHCHECK --retries=33 \
5- --timeout=1s \
6+ --timeout=3s \
67 --interval=3s \
7- --start-period=1s \
8+ --start-period=3s \
89 CMD true
910ADD ./default.conf /etc/nginx/conf.d/default.conf
Original file line number Diff line number Diff line change 11subprojects {
22 apply< com.avast.gradle.dockercompose.DockerComposePlugin > ()
33
4- // fucking windows paths... replace all: '\\' -> '/'
54 val root = rootDir.absolutePath.replace(" \\\\ " , " /" )
6-
7- // gradle -Pdebug
8- val isDebugEnabled = this .hasProperty(" debug" )
5+ val debugEnabledProperty = project.findProperty(" debug" ) ? : " false"
6+ val isDebugEnabled = debugEnabledProperty != " false"
97
108 configure< com.avast.gradle.dockercompose.ComposeExtension > {
119 useComposeFiles = listOf (" ${root} /modules/docker/${name} /docker-compose.yml" )
@@ -18,10 +16,15 @@ subprojects {
1816 removeVolumes = true
1917 removeOrphans = true
2018 forceRecreate = true
21- // executable = '/path/to/docker-compose'
22- // dockerExecutable = '/path/to/docker'
23- // captureContainersOutput = true
24- // captureContainersOutput = false
25- // captureContainersOutputToFile = '/path/to/logFile'
19+ }
20+
21+ tasks {
22+ create(" ${name} Up" ) {
23+ if (name.contains(" app" )) dependsOn(assemble.get())
24+ dependsOn(named(" composeUp" ).get().path)
25+ }
26+ create(" ${name} Down" ) {
27+ finalizedBy(named(" composeDown" ).get().path)
28+ }
2629 }
2730}
You can’t perform that action at this time.
0 commit comments