Last 42 common core project
Clean
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
sudo rm -rf /var/cache/*
sudo journalctl --vacuum-time=1d
rm -rf ~/.local/share/Trash/*
Put here changes that will impact project mates
- moved all sources from
srcs/requirements
toservices
- added a few makefile rule aliases like
make down
which is the same asmake stop
- removed all
--no-print-directory
in favor of aMAKEFLAGS
approach
- Prevents random non functioning project in the future, for example, during the evaluation if image has changed
- rename requirements to services, meaning make changes to docker-compose.yml file and makefile
- Move things out of
services/
- Makefile
- changing
echo
forprintf
(for POSIX portability) - find better solution to --no-print-directory to put rules in deps instead
- use docker compose to clean containers instead of normal docker
- remove django migrations and put it in startup script in container or dockerfile
- changing
- docker volumes bind-mounts inside
data
folder at project root for the ones needed, (yeah we don't need persistence but it would be nice for demonstrations and debugging) - remove
mkdirs
rule - look more into docker
secrets
for all passwords, tokens and API keys - look more into the concept of init containers in combination with docker secrets
- database migration command
- move into Dockerfile setup? or mounted bash script
- wait for postgres to be up for migrations?
- add
exec
at the start of last command indjango_init.sh
- move debug logs to a volume or smth (ask guillaume)
- WARNING: POSTGRES_HOST_AUTH_METHOD has been set to "trust". This will allow anyone with access to the Postgres port to access your database without a password, even if POSTGRES_PASSWORD is set. See PostgreSQL documentation about "trust":