Skip to content

Commit 45415e4

Browse files
authored
Merge pull request #162 from xdev-software/develop
Release
2 parents 4c00ec6 + 5aff6e1 commit 45415e4

3 files changed

Lines changed: 29 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.0.11
2+
* Rebuild to update underlying packages and flush out some CVEs
3+
14
# 1.0.10
25
* Updated dependencies
36

COMPARISON.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,33 @@ This list contains a comparison with the most popular open source [API simulatio
5757
❌ Inactive since >1 year
5858
</td>
5959
</tr>
60+
<tr>
61+
<td>
62+
<a href="https://github.com/microcks/microcks">
63+
Microcks
64+
</a>
65+
</td>
66+
<td>
67+
✔ Provides a Java API that is used to create responses for certain requests. <sup><a href="https://microcks.io/documentation/references/examples/">Docs</a></sup>
68+
</td>
69+
<td>
70+
✔ Split into modules.<br/>❓ <a href="https://github.com/microcks/microcks-java-client">Client</a> is OpenAPI generated and currently in "alpha" stage.
71+
</td>
72+
<td>
73+
✔ <a href="https://testcontainers.com/modules/microcks/">Yes</a> (but only native support for file based responses)
74+
</td>
75+
<td>
76+
✔ Active<br/>❓ Developed by a company (with the same name) but only "community" support seems to be provided
77+
</td>
78+
</tr>
6079
<tr>
6180
<td>
6281
<a href="https://github.com/wiremock/wiremock">
6382
WireMock
6483
</a>
6584
</td>
6685
<td>
67-
✔ Provides a Java API that is used to create responses for certain requests. As an alternative you can also use files to do the same <sup><a href="https://wiremock.org/docs/quickstart/java-junit/">Docs</a></sup>
86+
✔ Provides a Java API that is used to create responses for certain requests. <sup><a href="https://www.mock-server.com/">Docs</a> <a href="https://java.testcontainers.org/modules/mockserver/">Testcontainer-Docs</a></sup>
6887
</td>
6988
<td>
7089
❌ Monolithic - all client/server code in one module
@@ -116,4 +135,4 @@ This list contains a comparison with the most popular open source [API simulatio
116135
</tr>
117136
</table>
118137

119-
<sub>All values as of 2024-05</sub>
138+
<sub>All values as of 2025-02</sub>

testcontainers/Standalone.Dockerfile

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
1-
# Stage 1: Build the dummy app
2-
FROM eclipse-temurin:21-jdk-alpine AS build-env
1+
# Stage 1: Build the app
2+
FROM eclipse-temurin:21-jdk-alpine AS builder
33

44
RUN apk add --no-cache git bash
55

6-
# Create non root user
7-
ARG userName=limitedbuild
8-
ARG groupName=limitedbuild
9-
ARG userId=1000
10-
11-
RUN addgroup --system ${groupName} \
12-
&& adduser --uid ${userId} --system --disabled-password --shell /bin/bash ${userName} \
13-
&& adduser ${userName} ${groupName}
14-
15-
# Create build dir
16-
RUN mkdir /build \
17-
&& chown ${userName}:${groupName} /build
18-
WORKDIR /build
19-
20-
USER ${userName}
6+
WORKDIR /builder
217

228
# Copying context is prepared by Testcontainers
23-
COPY --chown=${userName}:${groupName} . ./
9+
COPY . ./
2410

2511
ARG mvncmd='clean package -pl "server" -am -T2C -Dmaven.test.skip'
2612

@@ -47,7 +33,7 @@ EXPOSE 1080
4733

4834
USER ${user}
4935

50-
COPY --from=build-env --chown=${user}:${group} build/server/target/server-standalone.jar ${APP_DIR}/server-standalone.jar
36+
COPY --from=builder --chown=${user}:${group} builder/server/target/server-standalone.jar ${APP_DIR}/server-standalone.jar
5137

5238
# MaxRAMPercentage: Default value is 25% -> we want to use available memory optimal -> increased, but enough is left for other RAM usages like e.g. Metaspace
5339
# Min/MaxHeapFreeRatio: Default values cause container reserved memory not to shrink properly/waste memory -> decreased

0 commit comments

Comments
 (0)