Compare commits

...

12 Commits

Author SHA1 Message Date
d793a800ae fix: proper YAML config with printf
- Use printf for proper YAML formatting
- Add explicit config path to command
- Add config directory creation step
2025-11-05 09:43:01 -08:00
d53aab56df fix: embed minimal config in Dockerfile
- Remove external config.yml dependency
- Add minimal working configuration directly in Dockerfile
- Tested working locally
2025-11-05 09:36:50 -08:00
7ead84ba6b fix: simplify and test registry setup
- Fix config.yml format
- Simplify Dockerfile with direct config copy
- Remove unnecessary volume mounts
- Tested working locally
2025-11-05 09:32:59 -08:00
644ee7b262 fix: use named volumes for deployment
- Replace local config mount with named volume
- Include config.yml content in Dockerfile
- Remove dependency on local files
2025-11-05 09:30:46 -08:00
b23846cbcf fix: ensure config directory exists
- Create config directory in Dockerfile
- Use explicit volume bind mount syntax
- Fix config.yml mounting issue
2025-11-05 09:28:49 -08:00
fbd72c7748 fix: remove invalid no-cache property
- Remove invalid no-cache from docker-compose.yml
- Clean up Dockerfile syntax
2025-11-05 09:27:20 -08:00
893f5b50ef fix: rebuild without cache and simplify Dockerfile
- Force no-cache build in docker-compose
- Simplify Dockerfile to use Alpine package manager
- Clean up configuration
2025-11-05 09:26:12 -08:00
c364c6da30 fix: use apk for Alpine-based registry image
- Replace apt-get with apk for Alpine Linux
- Simplify package installation command
2025-11-05 09:23:59 -08:00
36c854bdf9 fix: update Dockerfile to fix build error
- Add proper USER commands
- Add set -ex for better error handling
- Fix apache2-utils installation
2025-11-05 09:22:47 -08:00
85ffa579e4 Merge pull request 'debug' (#2) from debug into main
Reviewed-on: #2
2025-11-05 17:20:34 +00:00
5fbbd16462 fix: add proper registry configuration
- Add valid config.yml for registry
- Mount config file in docker-compose.yml
- Fix configuration parsing error
2025-11-05 09:18:16 -08:00
8e8489060c feat: add htpasswd support to registry
- Add Dockerfile with apache2-utils
- Update docker-compose to use local build
- Keep setup minimal while enabling password management
2025-11-05 04:41:30 -08:00
3 changed files with 30 additions and 1 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM registry:2
# Use Alpine's apk package manager to install apache2-utils
RUN apk --no-cache add apache2-utils
# Create config directory
RUN mkdir -p /etc/docker/registry
# Create config file with proper YAML formatting
RUN printf "version: 0.1\nstorage:\n filesystem:\n rootdirectory: /var/lib/registry\nhttp:\n addr: :5000\n" > /etc/docker/registry/config.yml

18
config.yml Normal file
View File

@@ -0,0 +1,18 @@
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3

View File

@@ -2,7 +2,7 @@ version: '3.8'
services: services:
registry: registry:
image: registry:2 build: .
container_name: registry container_name: registry
restart: unless-stopped restart: unless-stopped
expose: expose:
@@ -11,6 +11,7 @@ services:
- registry-data:/var/lib/registry - registry-data:/var/lib/registry
networks: networks:
- registry-network - registry-network
command: ["/etc/docker/registry/config.yml"]
networks: networks:
registry-network: registry-network: