Skip to content

leonardoo/backend-test-orozco-leonardo

Repository files navigation

backend-test

Documentations

Running the development environment

  • make up
  • dev up
Rebuilding the base Docker image
  • make rebuild
Resetting the local database
  • make reset

Hostnames for accessing the service directly

About building local environment with Linux systems

If you bring up the local environment in a linux system, maybe you can get some problems about users permissions when working with Docker. So we give you a little procedure to avoid problems with users permissions structure in Linux.:

1- Delete containers

# or docker rm -f $(docker ps -aq) if you don't use docker beyond the test
make down

2- Give permissions to your system users to use Docker

## Where ${USER} is your current user
sudo usermod -aG docker ${USER}

3- Confirm current user is in docker group

## If you don't see docker in the list, then you possibly need to log off and log in again in your computer.
id -nG

4- Get the current user id

## Commonly your user id number is near to 1000
id -u

5- Replace user id in Dockerfiles by your current user id

Edit .docker/Dockerfile_base and replace 1337 by your user id.

6- Rebuild the local environment

make rebuild
make up

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published