Code Monkey home page Code Monkey logo

satis-docker's Introduction

  1. Configure app params

    • Copy .env.example to .env
    • Edit relevant variables in .env
  2. Configure composer credentials

    • Copy data/composer/auth.json.example to data/composer/auth.json
    • Edit data/composer/auth.json and add github (or other necessary) credentials in the line
    "github.com": "<your-token-here>" 
    
  3. Setup

    1. Spin up containers
      docker-compose up -d
    2. Enter fpm container
      docker exec -it satis_fpm_1 bash
    3. Use composer to install code
      composer install
    4. Set necessary file permissions
      chown -R daemon:daemon /build /composer

Usage

Interacting with satis

If your host environment does not have daemon user, use --user 1:1

docker exec -it --user $(id daemon -u):$(id daemon -g) satis_fpm_1 bash

composer list satis for available satis commands.

Example:

  • Init: composer satis:init --name <company-name> --homepage <homepage-url>
  • Add a repository: composer satis:add --type vcs --name <repository-full-name> <repository-url>
  • Rebuild a repository by name: composer satis:build satis.json /build <repository-full-name>
  • Rebuild a repository by url: composer satis:build --repository-url <repository-url> satis.json /build

File location

  • satis.json

    • In project: src/satis.json
    • In fpm container: /app/satis.json
  • Satis output directory

    • In project: data/build
    • In fpm container: /build
    • In nginx container: /var/www/satis

Troubleshooting

/build/include does not exist and could not be created

Run the following command in host:

sudo chown -R 1:1 data/build

Cannot create cache directory /composer/repo/..., or directory is not writable. Proceeding without cache. See also cache-read-only config if your filesystem is read-only.

Run the following command in host:

sudo chown -R 1:1 data/composer

satis-docker's People

Contributors

malleos avatar

Watchers

Alex avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.