Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.26 KB

build-mac.md

File metadata and controls

36 lines (28 loc) · 1.26 KB

Building on Mac

  • Installing Docker

  • Install Docker Desktop

  • Install Homebrew (required by cekit)

  • Installing Python (required by cekit)

  • Install python 3

  • Install virtualenv: sudo pip3 install virtualenv

  • Create a directory for the cekit virtualenv: mkdir my-vertualenv

  • Create the virtualenv: virtualenv my-vertualenv/cekit

  • Activate the virtualenv source my-vertualenv/cekit/bin/activate

  • Installing cekit and dependencies. NB: Be sure to install a cekit version >= to 3.1.0.

    • pip3 install cekit
    • pip3 install odcs
    • pip3 install docker
    • pip3 install docker_squash

You are ready to build OpenLiberty images using cekit!

Known issues

On Mac, if you are using cekit 3.0.1, you will be impacted by this issue. To workaround this problem, you need to do the build in 2 steps. run cekit first, it will fail but the target/image/Dockerfile is properly generated so you can then use docker to build the image. For example, to build the builder image:

$ cekit build docker
$ cd target/image
$ docker build -t openliberty/open-liberty-s2i:latest .