Skip to content

Running GoosyMock on Docker

Getting the image

GoosyMock is providing container images for every application build that's hosted on ghcr.io repository. You can also build the image on your own by using predefined task target.

From ghcr.io repository

Both latest and previous versions of GoosyMock image are available on ghcr.io repository.

In order to pull the image, you need to execute docker pull command.

docker pull ghcr.io/icikowski/goosymock:latest
VERSION="0.1.0" # Use the version number you want
docker pull ghcr.io/icikowski/goosymock:${VERSION}

Building image manually

Prerequisites

  • Git 2.34+
  • Docker 4.16+
  • Taskfile 3.17+

Cloning the repository

git clone https://github.com/Icikowski/GoosyMock.git
git clone git@github.com:Icikowski/GoosyMock.git

Building the image

Using Taskfile

This project utilizes Taskfile for build automatization. If you are willing to use task command for building binaries, please install Taskfile as described in official documentation.

Image will be built with current commit SHA & latest tag name as image tag.

task dist:image

Starting the image

Using docker run command

VERSION="latest" # Use the version number you want
docker run --rm -it ghcr.io/icikowski/goosymock:latest /
    -p 8080:8080 /
    -p 8081:8081 /

Using docker compose command

version: '3.9'

Last update: 2023-03-31