Skip to content

3035app/3035-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to setup a development environment

Make sure Docker and docker-compose are installed.

Clone the project pialab/docker in a working directory (<pialab-root>):

git clone ssh://[email protected]:2222/pialab/docker.git <pialab-root>

Clone the projects pialab/back and pialab/front into their respective source directories:

cd <piablab-root>
git clone ssh://[email protected]:2222/pialab/back.git ./back/src
git clone ssh://[email protected]:2222/pialab/front.git ./front/src

FIXME: We do have an issue with composer install on the backend. For now we have to manually copy the vendor directory into the Symfony source directory:

cp -R ./back/docker/vendor ./back/src/

Build the containers:

docker-compose build

Copy development environments:

FIXME: Find a better solution!

cp ./back/docker/.env ./back/src/
cp ./front/docker/environment.dev.ts ./front/src/src/environments/

Set rights for Symfony cache:

mkdir ./back/src/var
chmod 777 ./back/src/var

Run the containers:

docker-compose up

Project URLs are:

FIXME: frontend URL should be http://front.pialab.localhost

Create an application in backend app:

  • Go to http://back.pialab.localhost/login and login with test/test
  • Go to "Applications" tab and add an application :
  • On applications list, click on key icon of "Default app", copy "Client ID" and "Client Secret" and paste into front/src/src/environments/environment.dev.ts file
  • Go to "Utilisateurs" tab, edit test user and add Application "Default app"
  • Restart pialab_front container

Gitlab management

To summarize, there are 3 git repositories:

These 3 repositories are independent, they need to be managed individually

Database remote connection

In order to connect to the development database (using Adminer for example), the following settings must be used:

  • System: PostgreSQL
  • Server: back
  • User: user_pialab
  • Password: password_pialab
  • Database: db_pialab

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •