my127 / workspace

Development environment tooling
MIT License
16 stars 13 forks source link
docker php

Workspace CI

Workspace is a tool to orchestrate and bring consistency to your project environments.

Documentation

Getting Started

Requirements

Installation

Download the ws file from the Latest Release make executable and move to a location in your PATH, eg.

curl --output ./ws --location https://github.com/my127/workspace/releases/download/0.3.2/ws
chmod +x ws && sudo mv ws /usr/local/bin/ws

Confirm you can run the ws command, e.g.

ws --help

Creating a workspace

# TODO

Anatomy of a workspace

Key Concepts

Types

Interpreters

Tutorials

Building

First install development dependencies by running composer install. This will set up [humbug/box] as well.

To build workspace, you can run the build.sh script.

To test the build in multiple PHP versions, there is a docker-compose.yml provided.

To build:

docker-compose build --pull

To fix volume permissions, if you are using Linux, run:

HOST_OS_FAMILY=linux docker-compose up -d

If you are using macOS, run:

HOST_OS_FAMILY=darwin docker-compose up -d

You can now do:

docker-compose exec -u build builder81 /app/build.sh

Release

Performing a Release

  1. Head to the releases page and create a new release:
    • Enter the tag name to be created
    • Give it a title containing tag name
    • Click "Auto-generate release notes"
    • Examine the generated release notes. For every entry in the Other Changes section, examine the Pull Requests and assign each pull request either a enhancement label for a new feature, bug for a bugfix or deprecated for a deprecation.
    • Cancel the release if any pull request labels needed changing, and repeat from 1
    • Click Publish Release