Skip to main content

Build Container Images

This page explains how to build container images for your applications using FluentCI.

Before you begin

The instructions on this page assume that you are familiar with Docker. In addition:

  • Have Docker installed on your machine.
  • Have your application source code along with Dockerfile handy.

Using the Buildx Plugin

You can use FluentCI to build container images using the buildx plugin, no need to install buildx on your machine, FluentCI will handle everything for you.

The following command can be used to build container images:

fluentci run --wasm buildx build --platform linux/amd64,linux/arm64 -t demo:latest .

Using the Nixpacks Plugin

You can use FluentCI to build container images using the nixpacks plugin, no need to install nixpacks on your machine, FluentCI will handle everything for you.

The following command can be used to plan and build container image:

fluentci run --wasm nixpacks nixpacks plan . --format json
fluentci run --wasm nixpacks nixpacks build . --name myapp

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build container images:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: build
run: fluentci run --wasm buildx build