Skip to content

Instantly share code, notes, and snippets.

@pollosp
Created March 24, 2023 19:25
Show Gist options
  • Save pollosp/b5dac762aa0da7f8c109097e9400ab08 to your computer and use it in GitHub Desktop.
Save pollosp/b5dac762aa0da7f8c109097e9400ab08 to your computer and use it in GitHub Desktop.

Revisions

  1. pollosp created this gist Mar 24, 2023.
    43 changes: 43 additions & 0 deletions melange.yaml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    package:
    name: Sinatra
    version: 0.1.0
    description: Sinatra melange demo
    target-architecture:
    - aarch64
    - x86_64
    copyright:
    - license: Apache-2.0
    paths:
    - "example2/*"
    dependencies:
    runtime:
    - wolfi-baselayout
    - ca-certificates-bundle
    - ruby3.2-bundler

    environment:
    contents:
    repositories:
    - https://packages.wolfi.dev/os
    packages:
    - wolfi-baselayout
    - ca-certificates-bundle
    - busybox
    - wget
    - make
    - gcc
    - linux-headers
    - ruby3.2-bundler

    pipeline:
    - name: Build sinatra application
    runs: |
    mkdir -p /usr/lib/ruby
    cd /usr/lib/ruby/
    wget https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.1.tar.gz
    tar xfz ruby-3.2.1.tar.gz
    ln -s ./ruby-3.2.1/include ./include
    cd -
    cd "${MINICLI_HOME}"
    cd example2
    bundle install