Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

parchment-io/dockerfiles-chef-supermarket

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker image for Chef Supermarket

This Dockerfile installs and configure the Chef Supermarket.

How to use this image

Pull the image from Docker hub

docker pull parchment/chef-supermarket

Run the Container

Run :

docker run -d --privileged \
  --name chef-supermarket \
  -p 443:443 \
  parchment/chef-supermarket

Please check the log when you run/start/restart the chef-supermarket. It takes a while until fully startup.

docker logs -f chef-supermarket

Using volume for data storage

The Dockerfile defines mount points i order to support storing config, data ,and data backup in your storage.

  • /etc/supermarket : Chef Supermarket home
  • /var/opt/supermarket : Data directory for all components
docker run -d --privileged  \
  --name chef-supermarket  \
  -v <your-chef-supermarket-home-directory>:/etc/supermarket:rw  \
  -v <your-data-directory>:/var/opt/supermarket:rw  \
  -h <your-hostname>  \
  -p 443:443  \
  parchment/chef-supermarket:3.1.70

Access to the Chef Supermarket

You can access and login to the chef supermarket through web browser.

https://<your-host>

Build the Image

Build latest version : current latest is 3.1.70

docker build -t chef-supermarket:latest -t chef-supermarket:3.1.70 .

To build the chef-supermarket image with specific version such as 3.1.70, you need to pass CHEF_SUPERMERKET_VERSION and CHEF_SUPERMARKET_DOWNLOAD_SHA256 build-arg. Please find the VERSION and SHA256 for Ubuntu Linux 18.04 x86_64 from https://downloads.chef.io/chef-supermarket

docker build \
  --build-arg CHEF_SUPERMERKET_VERSION=3.1.70 \
  --build-arg CHEF_SUPERMARKET_DOWNLOAD_SHA256=2d44adb9b52eed57dceccb852a228af35004ca63752a9ff3a961cb3282949153 \
  -t chef-supermarket:3.1.70 \
  .

For my workflow :

docker build \
  --build-arg CHEF_SUPERMERKET_VERSION=3.1.70 \
  --build-arg CHEF_SUPERMARKET_DOWNLOAD_SHA256=2d44adb9b52eed57dceccb852a228af35004ca63752a9ff3a961cb3282949153 \
  -t parchment/chef-supermarket:3.1.70 \
  .