Public | Automated Build

Last pushed: 5 days ago
Short Description
Docker image providing openl10n-cli
Full Description

Docker Image - Openl10n - CLI



:exclamation: Report issues and send Pull Requests in the main Docker Images repository :exclamation:

Introduction

Provides Openl10n CLI.

  • PHP
    • Extensions: calendar
  • Composer
  • Openl10n CLI

Provides also useful development tools.

  • Goss
  • Make
  • Git

Permissions

Docker container runs commands as a "openl10n" user, to which you can define id
and group id using USER_ID and GROUP_ID environment variables
(1000:1000 by default).

Integration

Openl10n

Run

DIR=`pwd`; docker run \
  --rm \
  --tty \
  --volume $DIR:$DIR \
  --workdir $DIR \
  --env USER_ID=`id -u` \
  --env GROUP_ID=`id -g` \
  manala/openl10n-cli \
  openl10n --help

Zsh function

openl10n() {
  DIR=`pwd`
  docker run \
    --rm \
    --tty \
    --volume $DIR:$DIR \
    --workdir $DIR \
    --env USER_ID=`id -u` \
    --env GROUP_ID=`id -g` \
    manala/openl10n-cli \
    openl10n "$@"
}

Zsh alias

alias openl10n='f() {
  DIR=`pwd`
  docker run \
    --rm \
    --tty \
    --volume $DIR:$DIR \
    --workdir $DIR \
    --env USER_ID=`id -u` \
    --env GROUP_ID=`id -g` \
    manala/openl10n-cli \
    openl10n "$@"
};f'

Script /usr/local/bin/openl10n

#!/bin/sh

DIR=`pwd`
docker run \
  --rm \
  --tty \
  --volume $DIR:$DIR \
  --workdir $DIR \
  --env USER_ID=`id -u` \
  --env GROUP_ID=`id -g` \
  manala/openl10n-cli \
  openl10n "$@"

Development

Requirements:

  • Docker
  • Make

Build

make build

Dev

make dev

Test

make test

Updates:

  • Check for new docker alpine node image version and update Dockerfile and goss.yaml accordingly
  • Check for new goss release and update Dockerfile accordingly
  • Check for new composer release and update Dockerfile and goss.yaml accordingly
  • Check for new composer packages versions and update Dockerfile and goss.yaml accordingly
Docker Pull Command
Owner
manala

Comments (0)