mirror of
https://github.com/cupcakearmy/tumbo.git
synced 2025-09-05 18:20:43 +00:00
examples
This commit is contained in:
14
examples/push_to_registry/registry/docker-compose.yml
Normal file
14
examples/push_to_registry/registry/docker-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
registry:
|
||||
image: registry
|
||||
container_name: registry
|
||||
ports:
|
||||
- 5000:5000
|
||||
volumes:
|
||||
- ./htpasswd:/auth/htpasswd
|
||||
environment:
|
||||
- REGISTRY_AUTH=htpasswd
|
||||
- REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
|
||||
- REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
|
2
examples/push_to_registry/registry/htpasswd
Normal file
2
examples/push_to_registry/registry/htpasswd
Normal file
@@ -0,0 +1,2 @@
|
||||
foo:$2y$05$dxXE5QaBKd5eV0gLBxFJtOJpAHKEusdZfPC2Ucssyg3s/2YjoRIXW
|
||||
|
3
examples/push_to_registry/simple.j2
Normal file
3
examples/push_to_registry/simple.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM alpine:{{ version}}
|
||||
|
||||
CMD [ "echo", "Hi {{ name }} from {{ version }}" ]
|
20
examples/push_to_registry/spec.yml
Normal file
20
examples/push_to_registry/spec.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
# Run docker-compose up before starting tumbo
|
||||
|
||||
variables:
|
||||
version:
|
||||
- 3.11
|
||||
- 3.10
|
||||
- 3.9
|
||||
name:
|
||||
- Alice
|
||||
- Bob
|
||||
|
||||
recipe: ./simple.j2
|
||||
|
||||
push: yes
|
||||
run: yes
|
||||
parallel: no
|
||||
registry:
|
||||
username: foo
|
||||
password: bar
|
||||
host: localhost:5000
|
Reference in New Issue
Block a user