https://github.com/devdevi/django
https://github.com/devdevi/django
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devdevi/django
- Owner: devdevi
- Created: 2021-10-09T21:36:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-09T21:48:30.000Z (over 4 years ago)
- Last Synced: 2025-02-14T14:53:37.449Z (about 1 year ago)
- Language: Python
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## cornershop-backend-test
### 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
* Local: http://127.0.0.1:8000
### 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
```
docker volume rm cornershop-backend-test_postgres123-data# django
# django