This repo builds a Perl container image meant to be used for devspace.
-
Run
devspace initon your Perl project -
Edit
devspace.yamlso it uses this image for yourdevcontainer, and add a customstartcommand:
dev:
app:
imageSelector: my-image-registry.tld/username/app
devImage: ghcr.io/zakame/devspace-perl:5.40-slim-bookworm
commands:
start:
command: |-
devspace enter -- bash -c 'morbo ./path/to/app -l http://0.0.0.0:3000'- Edit
devspace_start.shto set up yourdevcontainer:
# If your project has a Carton snapshot, for example:
apt-get update
apt-get install -y --no-install-recommends gcc libssl-dev
echo "Installing Carton snapshot support for cpm"
cpm install -g Carton
echo "Installing cpanfile dependencies"
cpm install -g- Run
devspace devand hack away!