Skip to content

Commit 7ca4f6b

Browse files
committed
Update asciidoctor. Argh! About to give up :( (C) whatthecommit.com
1 parent 4b10d8a commit 7ca4f6b

29 files changed

+245
-190
lines changed

README.md

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
streaming-file-server [![build](https://travis-ci.org/daggerok/streaming-file-server.svg?branch=master)](https://travis-ci.org/daggerok/streaming-file-server)
22
=====================
33

4-
_latests VERSION: 4.3.1_
4+
_latests VERSION: 4.3.2_
55

66
full-stack java file server based on spring-boot / spring-* with no limitation for upload and download files
77

@@ -17,16 +17,16 @@ full-stack java file server based on spring-boot / spring-* with no limitation f
1717

1818
```bash
1919
# database
20-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/docker-compose.yml
20+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/docker-compose.yml
2121
docker-compose -f docker-compose.yml up -d
2222

2323
# file-items data service
24-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-items-service-4.3.1.jar
25-
bash file-items-service-4.3.1.jar --spring.profiles.active=db-pg
24+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-items-service-4.3.2.jar
25+
bash file-items-service-4.3.2.jar --spring.profiles.active=db-pg
2626

2727
# file server
28-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-server-4.3.1.jar
29-
bash file-server-4.3.1.jar --app.upload.path=./path/to/file-storage
28+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-server-4.3.2.jar
29+
bash file-server-4.3.2.jar --app.upload.path=./path/to/file-storage
3030

3131
# cleanup
3232
docker-compose -f docker-compose.yml down -v
@@ -35,7 +35,7 @@ docker-compose -f docker-compose.yml down -v
3535
**or simply using shell-script**
3636

3737
```bash
38-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application.bash
38+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application.bash
3939

4040
# start
4141
bash application.bash start ./path/to/file-storage
@@ -51,7 +51,7 @@ bash application.bash clean ./path/to/file-storage
5151

5252
installed binaries: `wget`, `docker-compose`, `bash` and of course `java` are required
5353

54-
**for windows use https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application.cmd**
54+
**for windows use https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application.cmd**
5555

5656
```cmd
5757
@rem start
@@ -71,18 +71,18 @@ installed binaries: `which`, `wget`, `docker-compose`, `taskkill`, `mkdir` and o
7171
**with h2 in-memory database**
7272

7373
```bash
74-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-items-service-4.3.1.jar
75-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-server-4.3.1.jar
74+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-items-service-4.3.2.jar
75+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-server-4.3.2.jar
7676

77-
# bash file-items-service-4.3.1.jar --spring.profiles.active=db-h2 # or just:
78-
bash file-items-service-4.3.1.jar
79-
bash file-server-4.3.1.jar --app.upload.path=./path/to/file-storage
77+
# bash file-items-service-4.3.2.jar --spring.profiles.active=db-h2 # or just:
78+
bash file-items-service-4.3.2.jar
79+
bash file-server-4.3.2.jar --app.upload.path=./path/to/file-storage
8080
```
8181

8282
**or simply shell script for h2**
8383

8484
```bash
85-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application-h2.bash
85+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application-h2.bash
8686

8787
# start
8888
bash application-h2.bash start ./path/to/file-storage
@@ -94,7 +94,7 @@ bash application-h2.bash stop
9494
bash application-h2.bash clean ./path/to/file-storage
9595
```
9696

97-
**for windows use https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application-h2.cmd**
97+
**for windows use https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application-h2.cmd**
9898

9999
```cmd
100100
@rem start
@@ -155,51 +155,42 @@ NOTE: if you feel that changes take no effect, clean docker
155155
```bash
156156
# remove containers
157157
docker rm -v -f $(docker ps -a|grep -v CONTAINER|awk '{print $1}')
158+
158159
# remove volumes
159160
docker volume rm -f $(docker volume ls|grep -v DRIVER|awk '{print $2}')
161+
160162
# remove images
161163
docker rmi -f $(docker images -a | grep -v 'IMAGE ID'| awk '{print $3}')
164+
162165
# remove everything
163166
docker system prune -af --volumes
164167
```
165168

166-
### known issues
169+
### known issues (deprecations)
167170

168-
- SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.
169-
- static methods mocking using PowerMock
171+
- ~~SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.~~ [fixed](https://vkuzel.com/spring-boot-jpa-hibernate-atomikos-postgresql-exception)
172+
- static methods mocking using PowerMock (logs: BasicStaticClassTest.java uses or overrides a deprecated API.)
170173

171174
### todo
172175

173176
- migrate ~~file-items-service and~~ file-server from mvc to reactive webflux
174177
- migrate from postgres to reactive postgres or some reactive NoSQL (mongodb, etc...)
175-
- add more advanced security...
178+
- add more (advanced) security...
176179
- improve files-db sync (replace FileSystem with GridFS or ...?)
177180
- backup, restore, migration
178181
- support removing files (rly..? as minimum from db)
179182
- p2p: bi-directional files synchronization with spring scheduling or batch
180183

181184
### stack
182185

183-
- [spring](https://spring.io/)
184-
- spring-boot 2.0.1.RELEASE ~~1.x~~
185-
- spring-mvc ([mustache template engine](http://mustache.github.io/))
186+
- spring
187+
- spring-boot 2.0.2.RELEASE ~~1.x~~
186188
- spring-data, ~~QueryDSL~~, ~~spring-data-rest,~~ spring-data, jpa
187-
- apache fileUpload, [lombok](https://projectlombok.org/), [vavr](http://www.vavr.io/)
188189
- cors: see modules/apps/file-items-service/src/main/java/daggerok/config/AppCfg.java
189190
- 404 fallback: see modules/apps/file-server/src/main/java/daggerok/web/config/FallbackConfig.java
190191
- ~~spring-social (facebook login required for upload ability)~~ replaced with basic spring-security for now
191-
- ~~spring annotations (`@Get`, `@Post`, `@WebPage`)~~ (use `@GetMapping`, `@PostMapping`, etc...)
192+
- ~~spring annotations (`@Get`, `@Post`, `@WebPage`)~~ (rmeove in order of embedded annotations: `@GetMapping`, `@PostMapping`, etc...)
192193
- ~~spring-data REST HAL browser~~ (removed)
193194
- code / architecture splitting into micro-services
194195
- migrate postgres from blocking to nonblocking (wrapped in Schedules.elastic())
195196
- migrate REST API from spring mvn to webflux
196-
- [bootstrap](http://getbootstrap.com/)
197-
- [bootstrap fileinput](http://plugins.krajee.com/file-input)
198-
- [jgiven](http://jgiven.org/)
199-
- [powermock](https://github.com/jayway/powermock/wiki)
200-
- [mockito](http://mockito.org/)
201-
- [h2](http://www.h2database.com/html/cheatSheet.html)
202-
- [postgres](https://www.postgresql.org/)
203-
- [docker](https://www.docker.com/)
204-
- [gradle](http://gradle.org/)
205-
- [travis CI](https://travis-ci.org/)

RELEASE.md

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
# streaming-file-server
22

3-
_version: 4.3.1_
3+
_version: 4.3.2_
44

55
## Java file server
66

77
**Java file server** based on *spring-boot* with no memory, upload or download files size limitations
88

9-
- Update spring-boot version up to 2.0.2.RELEASE. Update some webjars
10-
- Fix docker-compose / docker files
11-
- Move application / docker modules into `modules/libraries`
12-
just for example we are moving reusable modules:
13-
- props `modules/libraries/props`
14-
- web-security `modules/libraries/web-security` (potentially reusable, but will be replaces with reactive implementation)
15-
- Fix h2 / pg spring boot profiles:
16-
now we are using h2 by default, unless needed will be specify:
17-
- db-pg (postgres database)
18-
- db-h2
9+
- Update gradle up to 4.8
10+
- Update asciidoctor documentation
11+
- Update JGiven test task
12+
- Fix postgresql issue: `SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented`
1913

2014
## Installation
2115

@@ -25,16 +19,16 @@ _version: 4.3.1_
2519

2620
```bash
2721
# docker compose file for postgres database
28-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/docker-compose.yml
22+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/docker-compose.yml
2923
docker-compose up -d
3024

3125
# file-items data service
32-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-items-service-4.3.1.jar
33-
java -jar file-items-service-4.3.1.jar --spring.profiles.active=db-pg
26+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-items-service-4.3.2.jar
27+
java -jar file-items-service-4.3.2.jar --spring.profiles.active=db-pg
3428

3529
# file server
36-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-server-4.3.1.jar
37-
java -jar file-server-4.3.1.jar --app.upload.path=./path/to/file-storage
30+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-server-4.3.2.jar
31+
java -jar file-server-4.3.2.jar --app.upload.path=./path/to/file-storage
3832

3933
# cleanup
4034
docker-compose down -v
@@ -44,7 +38,7 @@ docker-compose down -v
4438

4539
```bash
4640
# bash script
47-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application.bash
41+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application.bash
4842

4943
# start
5044
bash application.bash start ./path/to/file-storage
@@ -64,7 +58,7 @@ binaries: `wget`, `docker-compose`, `bash` and of course `java` are required
6458

6559
```cmd
6660
@rem batch shell-script
67-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application.cmd
61+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application.cmd
6862
6963
@rem start
7064
application.cmd start path\to\file-storage
@@ -85,18 +79,18 @@ binaries: `which`, `wget`, `docker-compose`, `taskkill`, `mkdir` and of course j
8579
#### manual setup
8680

8781
```bash
88-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-items-service-4.3.1.jar
89-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/file-server-4.3.1.jar
82+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-items-service-4.3.2.jar
83+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/file-server-4.3.2.jar
9084

91-
bash file-items-service-4.3.1.jar --spring.profiles.active=db-h2
92-
bash file-server-4.3.1.jar --app.upload.path=./path/to/file-storage
85+
bash file-items-service-4.3.2.jar --spring.profiles.active=db-h2
86+
bash file-server-4.3.2.jar --app.upload.path=./path/to/file-storage
9387
```
9488

9589
#### or for simplicity use special h2 automation shell-script
9690

9791
```bash
9892
# bash shell script
99-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application-h2.bash
93+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application-h2.bash
10094

10195
# start
10296
bash application-h2.bash start ./path/to/file-storage
@@ -112,7 +106,7 @@ bash application-h2.bash clean ./path/to/file-storage
112106

113107
```cmd
114108
@ cmd script
115-
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.1/application-h2.cmd
109+
wget https://github.com/daggerok/streaming-file-server/releases/download/4.3.2/application-h2.cmd
116110
117111
@rem start
118112
application-h2.cmd start path\to\file-storage

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
22
ext {
3-
applicationVersion = "4.3.1"
3+
applicationVersion = "4.3.2"
44
applicationGroup = "daggerok"
55
applicationName = "streaming-file-server"
66

docs/asciidoc.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ asciidoctor {
4242
'toc-title': 'Table of Contents',
4343
'root-project-name': rootProject.name,
4444
'build-gradle': project.file('build.gradle'),
45-
"endpoint-url": "https://daggerok.github.io/$rootProject.name"
45+
"github-url": "https://daggerok.github.io/$rootProject.name"
4646

4747
logDocuments = true
4848
//backends 'pdf', 'html5'
@@ -62,7 +62,7 @@ task documentation(type: Copy, dependsOn: asciidoctor) {
6262
from "$asciidoctor.sourceDir/static", {
6363
into '.'
6464
}
65-
into "$rootDir/docs"
65+
into "$rootDir/public"
6666
}
6767

6868
task docs(dependsOn: documentation)

docs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ asciidoctor {
4242
'toc-title': 'Table of Contents',
4343
'root-project-name': rootProject.name,
4444
'build-gradle': project.file('build.gradle'),
45-
"endpoint-url": "https://daggerok.github.io/$rootProject.name"
45+
'github-url': "https://github.com/daggerok/$rootProject.name"
4646

4747
logDocuments = true
4848
//backends 'pdf', 'html5'

docs/src/includes/links.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
//tag::content[]
3+
links:
4+
5+
- link:https://vkuzel.com/spring-boot-jpa-hibernate-atomikos-postgresql-exception[fix issue: SQLFeatureNotSupportedException: Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented.]
6+
- link:https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html[spring-mvc]
7+
- link:https://spring.io/[spring]
8+
- link:http://mustache.github.io/[mustache template engine]
9+
- link:https://commons.apache.org/proper/commons-fileupload/[apache fileUpload]
10+
- link:https://projectlombok.org/[lombok]
11+
- link:http://www.vavr.io/[vavr]
12+
- link:http://getbootstrap.com/[bootstrap]
13+
- link:http://plugins.krajee.com/file-input[bootstrap fileinput]
14+
- link:http://jgiven.org/[jgiven]
15+
- link:https://github.com/jayway/powermock/wiki[powermock]
16+
- link:http://mockito.org/[mockito]
17+
- link:http://www.h2database.com/html/cheatSheet.html[h2]
18+
- link:https://www.postgresql.org/[postgres]
19+
- link:https://www.docker.com/[docker]
20+
- link:http://gradle.org/[gradle]
21+
- link:https://travis-ci.org/[travis CI]
22+
//end::content[]

docs/src/index.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Maksim Kostromin <daggerok@gmail.com>
1212
:example-caption!:
1313

1414
Travis CI status:
15-
ifdef::backend-html5[image:https://travis-ci.org/daggerok/streaming-file-server.svg?branch=master["Build Status", link={github_url}]]
15+
ifdef::backend-html5[image:https://travis-ci.org/daggerok/{root-project-name}.svg?branch=master["Build Status", link={github-url}]]
1616

1717
PDF:
1818
ifdef::backend-html5[link:./index.pdf["Documentation in PFD format"]]
@@ -57,5 +57,8 @@ include::./includes/run/windows.adoc[tags=content]
5757
== Create new release
5858
include::./includes/release/create-new.adoc[tags=content]
5959

60+
---
61+
include::./includes/links.adoc[tags=content]
62+
6063
---
6164
Enjoy :)

modules/apps/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
subprojects {
2-
32
apply from: "$project.rootDir/gradle/subprojects.gradle"
43

54
dependencies {
65
implementation("org.springframework.boot:spring-boot-starter")
6+
implementation("org.springframework.boot:spring-boot-starter-actuator")
77
}
88

99
bootJar {

modules/apps/file-items-service/src/main/java/daggerok/fileitems/rest/FileItemsRoutes.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,12 @@ public class FileItemsRoutes {
1414

1515
@Bean
1616
public RouterFunction<ServerResponse> routes(final FileItemsHandler handler) {
17-
1817
return
19-
2018
route(GET("/api/v1/file-items"), handler::getAll)
21-
2219
.andRoute(GET("/api/v1/file-items/{id}"), handler::getById)
23-
2420
.andRoute(GET("/api/v1/file-items/like/{filename}"), handler::searchAny)
25-
2621
.andRoute(POST("/api/v1/file-items"), handler::save)
27-
2822
.andRoute(POST("/api/v1/file-items/all"), handler::saveAll)
29-
3023
;
3124
}
3225
}

modules/apps/file-items-service/src/main/resources/config/application-db-h2.yml renamed to modules/apps/file-items-service/src/main/resources/application-db-h2.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
spring:
2-
active:
3-
profiles: db-h2
2+
profiles:
3+
active:
4+
- db-h2
5+
46
datasource:
57
url: jdbc:h2:mem:${db.name};MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
68
username: ${db.user}
79
password: ${db.pass}
810
driver-class-name: org.h2.Driver
911
hikari:
1012
connection-test-query: 'SELECT 1'
13+
1114
jpa:
1215
database-platform: org.hibernate.dialect.H2Dialect
1316
database: h2
1417
generate-ddl: true
1518
show-sql: true
1619
hibernate:
1720
ddl-auto: update
18-
h2:
19-
console:
20-
enabled: true
21-
path: /h2

0 commit comments

Comments
 (0)