-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: tarilabs <[email protected]>
- Loading branch information
Showing
7 changed files
with
346 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$(dirname "$(realpath "$BASH_SOURCE")")" | ||
set -e | ||
|
||
kubectl apply -f "${SCRIPT_DIR}/distribution-registry/" | ||
|
||
echo "Waiting for Deployment..." | ||
kubectl wait --for=condition=available deployment/distribution-registry-test-deployment --timeout=5m | ||
kubectl logs deployment/distribution-registry-test-deployment | ||
echo "Deployment looks ready." | ||
|
||
echo "Starting port-forward..." | ||
kubectl port-forward service/distribution-registry-test-service 5001:5001 & | ||
PID=$! | ||
sleep 2 | ||
echo "I have launched port-forward in background with: $PID." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: distribution-registry-test-deployment | ||
labels: | ||
app: distribution-registry-test | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: distribution-registry-test | ||
template: | ||
metadata: | ||
labels: | ||
app: distribution-registry-test | ||
spec: | ||
containers: | ||
- name: distribution-registry-test | ||
image: docker.io/library/registry:2 | ||
args: | ||
- /etc/docker/registry/config.yml | ||
env: | ||
- name: REGISTRY_HTTP_ADDR | ||
value: 0.0.0.0:5001 | ||
ports: | ||
- containerPort: 5001 | ||
volumeMounts: | ||
- mountPath: /var/lib/registry | ||
name: distribution-registry-storage | ||
volumes: | ||
- name: distribution-registry-storage | ||
persistentVolumeClaim: | ||
claimName: distribution-registry-pvc | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: distribution-registry-test-service | ||
labels: | ||
app: distribution-registry-test | ||
spec: | ||
selector: | ||
app: distribution-registry-test | ||
ports: | ||
- protocol: TCP | ||
port: 5001 | ||
targetPort: 5001 | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: distribution-registry-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,27 +5,32 @@ description = "oci layers on top" | |
authors = ["tarilabs <[email protected]>"] | ||
readme = "README.md" | ||
|
||
|
||
[tool.poetry.dependencies] | ||
python = "^3.9" | ||
click = "^8.1.7" | ||
pydantic = "^2.10.3" | ||
|
||
|
||
[tool.poetry.scripts] | ||
olot = "olot.cli:cli" | ||
|
||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^8.3.4" | ||
|
||
|
||
[tool.pytest.ini_options] | ||
markers = [ | ||
"e2e_skopeo: end-to-end testing with skopeo", | ||
] | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
datamodel-code-generator = "^0.26.3" | ||
ruff = "^0.6.1" | ||
mypy = "^1.11.1" | ||
docker = "^7.1.0" | ||
|
||
|
||
[build-system] | ||
|
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