This repo builds a Perl container image meant to be used for devspace.
-
Run
devspace init
on your Perl project -
Edit
devspace.yaml
so it uses this image for yourdev
container, and add a customstart
command:
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.sh
to set up yourdev
container:
# 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 dev
and hack away!