Skip to content

Commit

Permalink
Merge pull request #7 from wiremock/use-official-image
Browse files Browse the repository at this point in the history
Use the official WireMock Docker image by default
  • Loading branch information
oleg-nenashev authored Jul 14, 2023
2 parents b9b8f0d + f865a43 commit 132a2d3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 16 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go
name: CI
on:
push:
branches: [ "main" ]
Expand All @@ -16,9 +16,6 @@ jobs:
with:
go-version: 1.19

- name: Build image
run: make docker

- name: Build
run: go build -v ./...

Expand Down
3 changes: 0 additions & 3 deletions Dockerfile

This file was deleted.

3 changes: 0 additions & 3 deletions Makefile

This file was deleted.

8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
[![Slack](https://img.shields.io/badge/slack-slack.wiremock.org-brightgreen?style=flat&logo=slack)](https://slack.wiremock.org/)
[![GitHub contributors](https://img.shields.io/github/contributors/wiremock/wiremock-testcontainers-go)](https://github.com/wiremock/wiremock-testcontainers-go/graphs/contributors)

## Note

The Testcontainers module does not work with the official image at the moment,
because the Mappings and Files directories are not initialized there.
Use a custom image on the top of it, see `Dockerfile`.
This module allows provisioning the WireMock server as a standalone container within your unit tests,
based on [WireMock Docker](https://github.com/wiremock/wiremock-docker) `2.35.0-1` or above.
Custom images are supported too as long as they follow the same CLI and API structure.

## Supported features

Expand Down
2 changes: 1 addition & 1 deletion tc-wiremock.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

const defaultWireMockImage = "docker.io/wiremock/wiremock"
const defaultWireMockVersion = "2.35.0-for-tc"
const defaultWireMockVersion = "2.35.0-1"
const defaultPort = "8080"

type WireMockContainer struct {
Expand Down

0 comments on commit 132a2d3

Please sign in to comment.