more work on packer build script (not complete yet)
This commit is contained in:
parent
bb2e50fa74
commit
05f517b3be
|
@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue