Sign inSign up

rubenfunai/developer-workspaces

By rubenfunai

•Updated about 6 years ago

A set of Docker Images that can be used for local developer environments.

Image
0

175

rubenfunai/developer-workspaces repository overview

⁠Developer Workspaces

A set of Docker Images that can be used for local developer environments.

This repository aims to provide ready-to-use Docker Images for local development. These images have been setup to reconfigure themselves based on environment variables passed to them at run time.

⁠Customisations Features

USER_UID - Set the UID of the "developer" user (default: 1000)
USER_NAME - Set the username of the "developer" user (default: "developer")
EDITOR - Set the default text editor to use (default: "/usr/bin/vim.basic")
SUPERVISORD_LOGLEVEL - Set the log level of SupervisorD (default: "info")
NGINX_ROOT - Set the webroot of the default nginx site (default: "/var/www/html")

⁠Docker Run example

docker run \
    -e USER_UID=$(id -u) \
    -e USER_NAME=$(id -un) \
    -e EDITOR="/usr/bin/pico" \
    -e SUPERVISORD_LOGLEVEL="debug" \
    -e NGINX_ROOT="/var/www/html/public" \
    --mount type=bind,source="$(pwd)",target=/var/www/html \
    registry.gitlab.com/ruben-funai/developer-workspaces:php-7.4-buster

⁠Docker Compose example

version: "3.8"
services:
  webapp:
    image: "registry.gitlab.com/ruben-funai/developer-workspaces:php-7.4-buster"
    environment:
      USER_UID: "${USER_UID:-1000}"
      USER_NAME: "${USER_NAME:-developer}"
      EDITOR: "/usr/bin/vim.basic"
      SUPERVISORD_LOGLEVEL: "info"
      NGINX_ROOT: "/var/www/html/public"
    ports:
      - target: 80
        published: 80
        protocol: tcp
        mode: host
    volumes:
      - type: bind
        source: .
        target: /var/www/html
USER_UID=$(id -u) USER_NAME=$(id -un) docker-compose up

⁠Issues and/or Suggestions

Please see CONTRIBUTING.md⁠

CI/CD Source: https://gitlab.com/ruben-funai/developer-workspaces⁠
GitLab Container Registry: https://gitlab.com/ruben-funai/developer-workspaces/container_registry⁠
Docker Hub: https://hub.docker.com/r/rubenfunai/developer-workspaces⁠

Tag summary

Content type

Image

Digest

Size

216.1 MB

Last updated

about 6 years ago

docker pull rubenfunai/developer-workspaces:php-7.4-buster