staaas / docker-cobalt

Dockerfile for static site generator Cobalt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerfile for static site generator Cobalt

This repository contains infrastructure for building docker images containing Cobalt binaries.

The docker image is based on alpine image. cobalt binary in the image is statically linked with musl.

Overview

Structure:

  • Makefile
  • git submodule cobalt.rs
  • Dockerfile

We use Makefile for automating docker image build process. git submodule cobalt.rs contains Cobalt source code. Image version is taken from submodule using git descrbie --tags.

Build Requirements

  • make
  • docker client (available without sudo)

Build Process

Don't forget to checkout cobalt.rs submodule:

git submodule init && git submodule update

Build docker images:

make

Publish docker image:

make push

Publish docker image as latest:

make push-latest

Long story shot, in order to release a new version one needs to:

  • update submodule so it points to a correct tag
  • build image using make
  • push image using make push (and optionally make push-latest)

About

Dockerfile for static site generator Cobalt


Languages

Language:Makefile 51.7%Language:Dockerfile 48.3%