Giter Site home page Giter Site logo

may-yaha / packagist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dockette/packagist

0.0 0.0 0.0 58 KB

:whale: Dockette out-of-box Packagist (Nginx / Solr 6 / PHP 7.1+FPM)

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 25.24% Shell 64.90% PHP 9.86%

packagist's Introduction

Packagist

Well-prepeared Packagist docker image(s). Run you own composer packagist portal in Docker.


Docker Stars Docker Pulls

Discussion / Help

Join the chat

Architecture

This whole project consists of 4 containers and 1 data-only container.

  • Packagist (nginx,php)
  • MariaDB (database)
  • Redis (memory storage)
  • Solr (search engine)

This version is locked to version before Packagist switched search engine to Algolia.

Installation

Download prepared docker-compose.yml to your pc / server.

Solr

Create data/solr folder a chown file permission to ID 8983.

chown 8983:8983 data/solr

Packagist

You should change prepared configuration.

  • PACKAGIST_DATABASE_USER (packagist)
  • PACKAGIST_DATABASE_PASSWORD (packagist)

Usage

Type docker-compose up -d and see the magic.

MySQL

Execute all packagist MySQL migrations.

docker-compose exec packagist /srv/app/console doctrine:schema:create

Packagist

Please create your account and add some composer package.

docker-compose exec --user www-data packagist /srv/app/console packagist:update --no-debug --env=prod --force
docker-compose exec --user www-data packagist /srv/app/console packagist:dump --no-debug --env=prod --force

Attribute force is needed for the first-run.

SSH

You can provide your own SSH keys, just uncommenting lines in docker-compose.yml.

volumes:
  - ./config/ssh/config:/var/www/.ssh/config
  - ./config/ssh/id_rsa:/var/www/.ssh/id_rsa
  - ./config/ssh/id_rsa.pub:/var/www/.ssh/id_rsa.pub
  - ./config/ssh/known_hosts:/var/www/.ssh/known_hosts

Don't forget to change owernership to Alpine's user www-data (82:82).

sudo chown -R 82:82 config id_rsa id_rsa.pub known_hosts

Solr

Index your first composer package.

docker-compose exec packagist /srv/app/console packagist:index --no-debug --env=prod --force

Cron

Cron is configured per 1 minute. You can change by replacing these files:

  • /etc/crontabs/root
  • /etc/periodic/1min/packagist

packagist's People

Contributors

f3l1x avatar leopoiroux avatar danstreeter avatar dariuszz123 avatar karatakis 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.