Skip to content

Commit 6558e8b

Browse files
Merge pull request #74 from wiremock/3.x
WireMock 3.x Docker images
2 parents d8faf52 + b1183bc commit 6558e8b

File tree

10 files changed

+34
-25
lines changed

10 files changed

+34
-25
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "main", "3.x" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: [ "main", "3.x" ]
88
workflow_dispatch:
99

1010
jobs:

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Main
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ main, "3.x" ]
66

77
workflow_dispatch:
88

@@ -15,16 +15,16 @@ jobs:
1515
versions:
1616
- CONTEXT: .
1717
TAGS:
18-
- wiremock/wiremock:main
19-
- ghcr.io/wiremock/wiremock:main
18+
- wiremock/wiremock:3x
19+
- ghcr.io/wiremock/wiremock:3x
2020
PLATFORMS:
2121
- linux/amd64
2222
- linux/arm64
2323
- linux/arm/v7
2424
- CONTEXT: alpine
2525
TAGS:
26-
- wiremock/wiremock:main-alpine
27-
- ghcr.io/wiremock/wiremock:main-alpine
26+
- wiremock/wiremock:3x-alpine
27+
- ghcr.io/wiremock/wiremock:3x-alpine
2828
PLATFORMS:
2929
- linux/amd64
3030
steps:

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
bundled-version:
1111
description: 'Bundled WireMock version'
1212
required: true
13-
default: 2.35.0
13+
default: 3.0.0
1414

1515
jobs:
1616

@@ -38,6 +38,7 @@ jobs:
3838
- CONTEXT: .
3939
IMAGES:
4040
- wiremock/wiremock:latest
41+
- wiremock/wiremock:3x
4142
- wiremock/wiremock:${{ needs.check-new-version.outputs.new_version }}
4243
- ghcr.io/wiremock/wiremock:latest
4344
- ghcr.io/wiremock/wiremock:${{ needs.check-new-version.outputs.new_version }}
@@ -48,6 +49,7 @@ jobs:
4849
- CONTEXT: alpine
4950
IMAGES:
5051
- wiremock/wiremock:latest-alpine
52+
- wiremock/wiremock:3x-alpine
5153
- wiremock/wiremock:${{ needs.check-new-version.outputs.new_version }}-alpine
5254
- ghcr.io/wiremock/wiremock:latest-alpine
5355
- ghcr.io/wiremock/wiremock:${{ needs.check-new-version.outputs.new_version }}-alpine

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM eclipse-temurin:11.0.19_7-jre
22

33
LABEL maintainer="Rodolphe CHAIGNEAU <rodolphe.chaigneau@gmail.com>"
44

5-
ARG WIREMOCK_VERSION=2.35.0
5+
ARG WIREMOCK_VERSION=3.0.0
66
ENV WIREMOCK_VERSION $WIREMOCK_VERSION
77
ENV GOSU_VERSION 1.14
88

@@ -45,8 +45,8 @@ RUN set -eux; \
4545

4646
# grab wiremock standalone jar
4747
RUN mkdir -p /var/wiremock/lib/ \
48-
&& curl https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/$WIREMOCK_VERSION/wiremock-jre8-standalone-$WIREMOCK_VERSION.jar \
49-
-o /var/wiremock/lib/wiremock-jre8-standalone.jar
48+
&& curl https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/$WIREMOCK_VERSION/wiremock-standalone-$WIREMOCK_VERSION.jar \
49+
-o /var/wiremock/lib/wiremock-standalone.jar
5050

5151
# Init WireMock files structure
5252
RUN mkdir -p /home/wiremock/mappings && \

Dockerfile-nightly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ LABEL maintainer="Rodolphe CHAIGNEAU <rodolphe.chaigneau@gmail.com>"
1818

1919
WORKDIR /home/wiremock
2020

21-
COPY --from=builder /workdir/build/libs/*.jar /var/wiremock/lib/wiremock-jre8-standalone.jar
21+
COPY --from=builder /workdir/build/libs/*.jar /var/wiremock/lib/wiremock-standalone.jar
2222

2323
COPY docker-entrypoint.sh /
2424

alpine/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM eclipse-temurin:11.0.19_7-jre-alpine
22

33
LABEL maintainer="Rodolphe CHAIGNEAU <rodolphe.chaigneau@gmail.com>"
44

5-
ARG WIREMOCK_VERSION=2.35.0
5+
ARG WIREMOCK_VERSION=3.0.0
66
ENV WIREMOCK_VERSION $WIREMOCK_VERSION
77

88
WORKDIR /home/wiremock
@@ -15,8 +15,8 @@ RUN apk add --no-cache 'su-exec>=0.2' bash
1515

1616
# grab wiremock standalone jar
1717
RUN mkdir -p /var/wiremock/lib/ \
18-
&& wget https://repo1.maven.org/maven2/com/github/tomakehurst/wiremock-jre8-standalone/$WIREMOCK_VERSION/wiremock-jre8-standalone-$WIREMOCK_VERSION.jar \
19-
-O /var/wiremock/lib/wiremock-jre8-standalone.jar
18+
&& wget https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/$WIREMOCK_VERSION/wiremock-standalone-$WIREMOCK_VERSION.jar \
19+
-O /var/wiremock/lib/wiremock-standalone.jar
2020

2121
# Init WireMock files structure
2222
RUN mkdir -p /home/wiremock/mappings && \

alpine/Dockerfile-nightly

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN apk add --update openssl
2222
# and bash
2323
RUN apk add --no-cache 'su-exec>=0.2' bash
2424

25-
COPY --from=builder /workdir/build/libs/*.jar /var/wiremock/lib/wiremock-jre8-standalone.jar
25+
COPY --from=builder /workdir/build/libs/*.jar /var/wiremock/lib/wiremock-standalone.jar
2626

2727
# Init WireMock files structure
2828
RUN mkdir -p /home/wiremock/mappings && \

alpine/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
# Set `java` command if needed
66
if [ "$1" = "" -o "${1#-}" != "$1" ]; then
7-
set -- java $JAVA_OPTS -cp /var/wiremock/lib/*:/var/wiremock/extensions/* com.github.tomakehurst.wiremock.standalone.WireMockServerRunner "$@"
7+
set -- java $JAVA_OPTS -cp /var/wiremock/lib/*:/var/wiremock/extensions/* wiremock.Run "$@"
88
fi
99

1010
# allow the container to be started with `-e uid=`

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
# Set `java` command if needed
66
if [ "$1" = "" -o "${1:0:1}" = "-" ]; then
7-
set -- java $JAVA_OPTS -cp /var/wiremock/lib/*:/var/wiremock/extensions/* com.github.tomakehurst.wiremock.standalone.WireMockServerRunner "$@"
7+
set -- java $JAVA_OPTS -cp /var/wiremock/lib/*:/var/wiremock/extensions/* wiremock.Run "$@"
88
fi
99

1010
# allow the container to be started with `-e uid=`

readme.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,28 @@
44

55
> [WireMock](http://wiremock.org) Standalone server Docker image
66
7-
## Supported tags :
7+
## Supported tags
88

9-
### Latest
9+
### Latest images
1010

11-
- `2.35.0-1`, `latest` [(2.35/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/2.35.0-1/Dockerfile)
12-
- `2.35.0-1-alpine`, `latest-alpine` [(2.35-alpine/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/2.35.0-1/alpine/Dockerfile)
11+
- `3.0.0-1` [(3.0.0-1/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/3.0.0-1/Dockerfile)
12+
- `3.0.0-1-alpine` [(2.35-alpine/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/3.0.0-1/alpine/Dockerfile)
13+
- `latest` [(latest/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/latest/Dockerfile)
14+
- `latest-alpine` [(latest-alpine/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/latest-alpine/Dockerfile)
1315
- `main` [(main/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/main/Dockerfile)
1416
- `main-alpine` [(main-alpine/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/main/alpine/Dockerfile)
1517
- `nightly` [(main/Dockerfile-nightly)](https://github.com/wiremock/wiremock-docker/blob/main/Dockerfile-nightly)
1618
- `nightly-alpine` [(main-alpine/Dockerfile-nightly)](https://github.com/wiremock/wiremock-docker/blob/main/alpine/Dockerfile-nightly)
1719

18-
### Experimental WireMock 3.x Beta images
20+
### Latest WireMock 2.x images
1921

20-
- `3x`- Latest WireMock 3.x image, with bundled Java 11
21-
- `3x-alpine` - Latest WireMock alpine 3.x image, with bundled Java 11
22+
- `2.35.0-1 [(2.35/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/2.35.0-1/Dockerfile)
23+
- `2.35.0-1-alpine` [(2.35-alpine/Dockerfile)](https://github.com/wiremock/wiremock-docker/blob/2.35.0-1/alpine/Dockerfile)
24+
25+
### Deprecated tags
26+
27+
- `3x`- Latest WireMock 3.x image, with bundled Java 11 - now `latest`
28+
- `3x-alpine` - Latest WireMock alpine 3.x image, with bundled Java 11 - now `latest`
2229

2330
### Complete list
2431

0 commit comments

Comments
 (0)