more work on packer build script (not complete yet)

This commit is contained in:
Eric S. Londres 2022-08-17 20:16:29 -04:00
parent bb2e50fa74
commit 05f517b3be
Signed by: slondr
GPG Key ID: A2D25B4D5CB970E4
2 changed files with 28 additions and 2 deletions

View File

@ -1,11 +1,22 @@
# builds a container running egalaxyd
# make sure you have the "podman" packer plugin installed, ie: `packer plugins install github.com/Polpetta/podman`
source "podman" "egalaxyd" {
source "docker" "egalaxyd" {
image = "elixir:1.13.4-otp-25-alpine"
commit = true
}
build {
sources = ["source.podman.egalaxyd"]
sources = ["source.docker.egalaxyd"]
provisioner "shell" {
script = "install.sh"
}
post-processors {
post-processor "docker-tag" {
repository = "egalaxyd"
tags = ["0.4.4"]
}
}
}

15
meta/install.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/sh -e
# This script installs egalaxyd from source on an Alpine Linux host using default configuration options.
# It is expected that Erlang and Elixir are already installed and available on the host.
apk update
apk upgrade
apk add git
# Change to the home directory
cd
# Clone the egalaxyd repository
git clone --depth 1 --branch 0.4.4 https://git.sr.ht/~slondr/egalaxyd egalaxyd
cd egalaxyd