-
Use Find Command To Delete Old Logs
The /var/log/ folder usually will become filled up with old log files from logrotate. Here is a way with find command to clean and delete those. Delete all files: find /var/log -type f -delete Delete all .gz and rotated file find /var/log -type f -regex ".*\.gz$" find /var/log -type f...
-
Mongodb Setup With Docker Compose And Setup Authentication
Reference: https://dev.to/efe136/how-to-enable-mongodb-authentication-with-docker-compose-2nbp By default there is no authentication in MongoDB. It means that it comes with empty authentication. So we should create users and roles manually. There are lots of ways to create MongoDB docker-compose with authentication. The most popular one of them is to write a bash script with...
-
Make A Git Sync Container For Arm
Make a git-sync container for ARM architecture Download git-sync repo git clone https://github.com/kubernetes/git-sync.git Make sure you have buildx installed. If not, use the following steps: export DOCKER_BUILDKIT=1 docker build --platform=local -o . git://github.com/docker/buildx mkdir -p ~/.docker/cli-plugins mv buildx ~/.docker/cli-plugins/docker-buildx Make sure you have a multiarch bulder. Follow the guide 2020-11-11-Create-multiarch-docker-buildx-builder....