This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# GitLab Container Registry garbage collector script | |
# you can configure with cron jobs to run garbage collection nightly | |
# | |
# Usage: | |
# | |
# - Update your /etc/gitlab/gitlab.rb to add 'REGISTRY-STORAGE-READONLY-ENABLE-MARKER' marker | |
# as comment on registry config so that script can automatically update it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo """ | |
FROM debian:bookworm-20240130-slim | |
RUN apt update && apt install -y python3 zsh bash | |
""" > Dockerfile | |
echo """ | |
val = input() | |
print('export FOO=' + val) | |
""" > prog.py |