Skip to content

Commit

Permalink
version ugrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jveverka committed Mar 6, 2021
1 parent bcd8669 commit 6c19cd9
Show file tree
Hide file tree
Showing 41 changed files with 113 additions and 113 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and [OAuth2](https://tools.ietf.org/html/rfc6749) and [other](https://github.com
* Please check [__User's Guide__](docs/IAM-user-manual/README.md) and [__Examples__](iam-examples) for more details.
* Check [__Docker Hub releases__](https://hub.docker.com/r/jurajveverka/iam-service).
```
docker run -d -p 8080:8080 jurajveverka/iam-service:2.5.1-RELEASE-amd64
docker run -d -p 8080:8080 jurajveverka/iam-service:2.5.2-RELEASE-amd64
curl 'http://localhost:8080/services/discovery'
curl 'http://localhost:8080/services/oauth2/iam-admins/iam-admins/.well-known/openid-configuration'
```
Expand Down
54 changes: 27 additions & 27 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ project(':iam-model') {
implementation('com.fasterxml.jackson.core:jackson-annotations:2.11.4')
implementation('com.fasterxml.jackson.core:jackson-core:2.11.4')
implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}

Expand All @@ -64,9 +64,9 @@ project(':iam-client') {
implementation 'org.bouncycastle:bcpg-jdk15on:1.68'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.68'

testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}

Expand All @@ -87,9 +87,9 @@ project(':iam-client-spring') {
implementation('com.fasterxml.jackson.core:jackson-core:2.11.4')
implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4')

testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}

Expand All @@ -108,9 +108,9 @@ project(':iam-service-client') {
implementation 'org.bouncycastle:bcpg-jdk15on:1.68'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.68'

testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}

Expand All @@ -132,9 +132,9 @@ project(':iam-core') {
implementation('com.fasterxml.jackson.core:jackson-databind:2.11.4')

testImplementation('org.slf4j:slf4j-simple:1.7.30')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}

Expand Down Expand Up @@ -182,9 +182,9 @@ project(':iam-persistence-file-system') {
implementation('org.bouncycastle:bcpkix-jdk15on:1.68')

testImplementation('org.slf4j:slf4j-simple:1.7.30')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
}
}

Expand All @@ -210,9 +210,9 @@ project(':iam-persistence-mongo') {
}

testImplementation('org.slf4j:slf4j-simple:1.7.30')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
testImplementation('org.testcontainers:junit-jupiter:1.15.2')
testImplementation('org.testcontainers:mongodb:1.15.2')
}
Expand All @@ -230,9 +230,9 @@ project(':iam-caches-redis') {
implementation('redis.clients:jedis:3.3.0')

testImplementation('org.slf4j:slf4j-simple:1.7.30')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
testImplementation('org.testcontainers:junit-jupiter:1.15.2')
}
}
Expand All @@ -254,9 +254,9 @@ project(':integration-tests') {
implementation 'org.slf4j:slf4j-api:1.7.30'

testImplementation('org.slf4j:slf4j-simple:1.7.30')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.7.1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.7.1')
testImplementation('com.squareup.okhttp3:okhttp:4.9.0')
}
}
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: '3'
services:
iam-service:
image: iam-service:2.5.1-RELEASE
image: iam-service:2.5.2-RELEASE
build:
context: iam-service
dockerfile: Dockerfile
network_mode: "host"
#ports:
# - "8080:8080"
spring-method-security:
image: spring-method-security:2.5.1-RELEASE
image: spring-method-security:2.5.2-RELEASE
build:
context: iam-examples/spring-method-security
dockerfile: Dockerfile
Expand All @@ -19,7 +19,7 @@ services:
depends_on:
- iam-service
spring-resource-server:
image: spring-resource-server:2.5.1-RELEASE
image: spring-resource-server:2.5.2-RELEASE
build:
context: iam-examples/spring-resource-server
dockerfile: Dockerfile
Expand All @@ -29,7 +29,7 @@ services:
depends_on:
- iam-service
spring-webflux-secured:
image: spring-webflux-secured:2.5.1-RELEASE
image: spring-webflux-secured:2.5.2-RELEASE
build:
context: iam-examples/spring-webflux-secured
dockerfile: Dockerfile
Expand Down
16 changes: 8 additions & 8 deletions docs/IAM-user-manual/01a-standalone-server-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
```
* Start __iam-service__ as standalone server. You can skip this step if you would like to use *iam-service* in docker container.
```
java -Xms32m -Xmx128m -jar iam-service-2.5.1-RELEASE.jar \
java -Xms32m -Xmx128m -jar iam-service-2.5.2-RELEASE.jar \
--spring.config.location=file:application.yml
```
* Build Docker Image locally and run, in case you prefer downloading image from dockerhub please skip this step.
Expand All @@ -23,19 +23,19 @@
```
* Use public docker dockerhub image [jurajveverka/iam-service](https://hub.docker.com/r/jurajveverka/iam-service)
```
docker run -d --name iam-service-2.5.1-RELEASE \
docker run -d --name iam-service-2.5.2-RELEASE \
--restart unless-stopped \
-e APP_CONFIG_PATH=/opt/data/application.yml \
-e XMX=128m \
-v '${IAM_DATA_DIR}':/opt/data \
-p 8080:8080 jurajveverka/iam-service:2.5.1-RELEASE-amd64
-p 8080:8080 jurajveverka/iam-service:2.5.2-RELEASE-amd64
```
``IAM_DATA_DIR`` points to directory where customized ``application.yml`` file is located.
* Check docker status and logs
```
docker ps -a
docker exec -ti iam-service-2.5.1-RELEASE /bin/sh
docker logs --follow iam-service-2.5.1-RELEASE
docker exec -ti iam-service-2.5.2-RELEASE /bin/sh
docker logs --follow iam-service-2.5.2-RELEASE
```
* Verify Service state, check OpenAPI documentation.
```
Expand All @@ -48,9 +48,9 @@
```
* Stop and cleanup Docker
```
docker stop iam-service-2.5.1-RELEASE
docker rm iam-service-2.5.1-RELEASE
docker image rm -f iam-service:2.5.1-RELEASE
docker stop iam-service-2.5.2-RELEASE
docker rm iam-service-2.5.2-RELEASE
docker image rm -f iam-service:2.5.2-RELEASE
```

* [next step: Setup Persistence Layer](01b_setup-persitence-layer.md)
Expand Down
4 changes: 2 additions & 2 deletions iam-common/iam-client-spring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ This client library makes JWT verification easier for springboot micro-services
<dependency>
<groupId>one.microproject.iamservice</groupId>
<artifactId>iam-client-spring</artifactId>
<version>2.5.1-RELEASE</version>
<version>2.5.2-RELEASE</version>
<dependency/>
```
* gradle dependency
```
implementation 'one.microproject.iamservice:iam-client-spring:2.5.1-RELEASE'
implementation 'one.microproject.iamservice:iam-client-spring:2.5.2-RELEASE'
```
2. See [this spring-method-security example](../../iam-examples/spring-method-security)
* How to configure http security.
Expand Down
2 changes: 1 addition & 1 deletion iam-common/iam-client-spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'one.microproject.iamservice'
archivesBaseName = "iam-client-spring"
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'

sourceCompatibility = '11'

Expand Down
4 changes: 2 additions & 2 deletions iam-common/iam-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ This client library makes JWT verification easier for clients and micro-services
<dependency>
<groupId>one.microproject.iamservice</groupId>
<artifactId>iam-client</artifactId>
<version>2.5.1-RELEASE</version>
<version>2.5.2-RELEASE</version>
<dependency/>
```
* gradle dependency
```
implementation 'one.microproject.iamservice:iam-client:2.5.1-RELEASE'
implementation 'one.microproject.iamservice:iam-client:2.5.2-RELEASE'
```
2. Create client instance programmatically.
```
Expand Down
2 changes: 1 addition & 1 deletion iam-common/iam-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'one.microproject.iamservice'
archivesBaseName = "iam-client"
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'

sourceCompatibility = '11'

Expand Down
2 changes: 1 addition & 1 deletion iam-common/iam-model/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'one.microproject.iamservice'
archivesBaseName = "iam-model"
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'

sourceCompatibility = '11'

Expand Down
4 changes: 2 additions & 2 deletions iam-common/iam-service-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ Java client library providing APIs for all iam-service management functions.
<dependency>
<groupId>one.microproject.iamservice</groupId>
<artifactId>iam-service-client</artifactId>
<version>2.5.1-RELEASE</version>
<version>2.5.2-RELEASE</version>
<dependency/>
```
* gradle dependency
```
implementation 'one.microproject.iamservice:iam-service-client:2.5.1-RELEASE'
implementation 'one.microproject.iamservice:iam-service-client:2.5.2-RELEASE'
```
2. Create client instance programmatically.
```
Expand Down
2 changes: 1 addition & 1 deletion iam-common/iam-service-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'one.microproject.iamservice'
archivesBaseName = "iam-service-client"
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'

sourceCompatibility = '11'

Expand Down
2 changes: 1 addition & 1 deletion iam-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {

group = 'one.microproject.iamservice'
archivesBaseName = "iam-core"
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'
sourceCompatibility = '11'

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public final class ModelUtils {

private static final Logger LOG = LoggerFactory.getLogger(ModelUtils.class);

public static final String MODEL_VERSION = "2.5.1-RELEASE";
public static final String MODEL_VERSION = "2.5.2-RELEASE";
public static final Model DEFAULT_MODEL = new ModelImpl(ModelId.from("default-model-001"), "Default Model");
public static final String IAM_ADMINS_NAME = "iam-admins";
public static final OrganizationId IAM_ADMINS_ORG = OrganizationId.from(IAM_ADMINS_NAME);
Expand Down
2 changes: 1 addition & 1 deletion iam-examples/integration-tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'one.microproject.iamservice'
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'
sourceCompatibility = '11'

repositories {
Expand Down
2 changes: 1 addition & 1 deletion iam-examples/spring-method-security/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM adoptopenjdk/openjdk11:alpine-jre
COPY build/libs/spring-method-security-2.5.1-RELEASE.jar /spring-method-security-2.5.1-RELEASE.jar
COPY build/libs/spring-method-security-2.5.2-RELEASE.jar /spring-method-security-2.5.2-RELEASE.jar
COPY start-service.sh /start-service.sh
RUN chmod +x /start-service.sh
RUN apk --no-cache add curl
Expand Down
8 changes: 4 additions & 4 deletions iam-examples/spring-method-security/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ JWT tokens issued by __iam-service__ are used to get access to resources hosted
## Build and Run
```
gradle clean build
java -jar build/libs/spring-method-security-2.5.1-RELEASE.jar
java -jar build/libs/spring-method-security-2.5.2-RELEASE.jar
```
### Build Docker image
```
docker build . -t spring-method-security:2.5.1-RELEASE
docker build . -t spring-method-security:2.5.2-RELEASE
docker image list
docker save --output="build/spring-method-security:2.5.1-RELEASE.tar" spring-method-security:2.5.1-RELEASE
docker save --output="build/spring-method-security:2.5.2-RELEASE.tar" spring-method-security:2.5.2-RELEASE
docker image rm -f <imageid>
docker run -p 8082:8082 spring-method-security:2.5.1-RELEASE
docker run -p 8082:8082 spring-method-security:2.5.2-RELEASE
```
4 changes: 2 additions & 2 deletions iam-examples/spring-method-security/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id 'org.springframework.boot' version '2.4.2'
id 'org.springframework.boot' version '2.4.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}

group = 'one.microproject.iamservice'
version = '2.5.1-RELEASE'
version = '2.5.2-RELEASE'
sourceCompatibility = '11'

repositories {
Expand Down
2 changes: 1 addition & 1 deletion iam-examples/spring-method-security/start-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ until $(curl --silent --output /dev/null -f http://127.0.0.1:8080/services/oauth
sleep 1
done

java -Xms32m -Xmx128M -jar /spring-method-security-2.5.1-RELEASE.jar
java -Xms32m -Xmx128M -jar /spring-method-security-2.5.2-RELEASE.jar
2 changes: 1 addition & 1 deletion iam-examples/spring-resource-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM adoptopenjdk/openjdk11:alpine-jre
COPY build/libs/spring-resource-server-2.5.1-RELEASE.jar /spring-resource-server-2.5.1-RELEASE.jar
COPY build/libs/spring-resource-server-2.5.2-RELEASE.jar /spring-resource-server-2.5.2-RELEASE.jar
COPY start-service.sh /start-service.sh
RUN chmod +x /start-service.sh
RUN apk --no-cache add curl
Expand Down
8 changes: 4 additions & 4 deletions iam-examples/spring-resource-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ JWT tokens issues by __iam-service__ are used to get access to resources hosted
## Build and Run
```
gradle clean build
java -jar build/libs/spring-resource-server-2.5.1-RELEASE.jar
java -jar build/libs/spring-resource-server-2.5.2-RELEASE.jar
```
### Build Docker image
```
docker build . -t spring-resource-server:2.5.1-RELEASE
docker build . -t spring-resource-server:2.5.2-RELEASE
docker image list
docker save --output="build/spring-resource-server:2.5.1-RELEASE.tar" spring-resource-server:2.5.1-RELEASE
docker save --output="build/spring-resource-server:2.5.2-RELEASE.tar" spring-resource-server:2.5.2-RELEASE
docker image rm -f <imageid>
docker run -p 8081:8081 spring-resource-server:2.5.1-RELEASE
docker run -p 8081:8081 spring-resource-server:2.5.2-RELEASE
```

### Reference Documentation
Expand Down
Loading

0 comments on commit 6c19cd9

Please sign in to comment.