Skip to content

iamluc/dunkerque

Repository files navigation

Dunkerque

Build Status SensioLabsInsight

About

Docker hub & registry.

Written in PHP with Symfony.

THIS PROJECT IS IN ALPHA STATE

Docker image

If you just want to use dunkerque, use the docker image on the docker hub, and read the dedicated README

Install

Base

# Clone repository
git clone https://github.com/iamluc/dunkerque

# Enter directory
cd dunkerque

# Run server (Adapt file `docker-compose.yml` to your needs)
docker-compose up -d

# Generate keys (Default passphrase is `DunkerqueIsOnFire`)
docker-compose run --rm app openssl genrsa -out var/jwt/private.pem -aes256 4096
docker-compose run --rm app openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem

# Install dependencies
docker-compose run --rm app composer install

# Initialize database
docker-compose run --rm app bin/console doctrine:database:create --if-not-exists
docker-compose run --rm app bin/console doctrine:migrations:migrate

# Initialize search
docker-compose run --rm app bin/console fos:elastica:populate

# Create a user
docker-compose run --rm app bin/console fos:user:create

Develop on Dunkerque

# Install dev dependencies
docker-compose -f docker/docker-compose.nodejs.yml run --rm nodejs npm install

# Push (already existing) repository to Dunkerque
docker push 127.0.0.1:8000/user/repo

# Compile SASS and JS
docker-compose -f docker/docker-compose.nodejs.yml run --rm nodejs gulp

# Run tests
docker-compose run --rm app bin/run-tests

LICENSE

MIT