Public | Automated Build

Last pushed: 3 months ago
Short Description
n98-magerun 1.x on Alpine Linux
Full Description

n98-magerun on Alpine

Latest build of n98-magerun 1.x utility intended to work with Magento 1.x framework.

This build run under an Alpine Linux.

How to use it

Create a shell function, ie:

n98() {
    tty -s && tty=--tty
    docker run \
        $tty \
        --interactive \
        --rm \
        -v $(pwd):/mnt \
        -u `id -u`:`id -g` \
        --net=$DOCKER_NETWORK_NAME \
        soifou/n98-magerun-alpine ${@:1}

Where DOCKER_NETWORK_NAME is an existing docker network where your database container exists.

Reload your shell, then go to your Magento directory and start using it with:

$ n98

Because you mount a volume from the current directory, if you want to use the database import command, the dump should be moved in the current directory.

You have to fill the path from the docker working directory, for example:

$ n98 db:import --compression='gzip' /mnt/dump.sql.gz
Docker Pull Command
Source Repository