Skip to content

Commit

Permalink
az agent and image registry yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
sethsteenken committed Dec 11, 2022
1 parent f343c69 commit 3690d19
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
db.lock
*.ide
*.ide-*
*.cache
*.sqlite
*.pdb
bin/
*.suo
*/.vs
*/.vs*
/.vs
obj/
*.user
*web.csproj.user
node_modules
packages
*.dtbcache
*.dbmdl
.vs*
/configs
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ services:
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
healthcheck:
test: ["CMD", "/azp/bin/Agent.Listener" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/about"]
interval: 1m
timeout: 3s
depends_on:
- image_registry
test: "curl -u :${AZP_TOKEN} ${AZP_URL}/_apis/distributedtask/pools/${AZP_POOL_ID}/agents?api-version=7.0 || exit 1"
interval: 5m
timeout: 10s
File renamed without changes.
49 changes: 49 additions & 0 deletions containers/image_registry/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
version: "3.6"
services:
image_registry:
cap_drop:
- "AUDIT_CONTROL"
- "BLOCK_SUSPEND"
- "DAC_READ_SEARCH"
- "IPC_LOCK"
- "IPC_OWNER"
- "LEASE"
- "LINUX_IMMUTABLE"
- "MAC_ADMIN"
- "MAC_OVERRIDE"
- "NET_ADMIN"
- "NET_BROADCAST"
- "SYSLOG"
- "SYS_ADMIN"
- "SYS_BOOT"
- "SYS_MODULE"
- "SYS_NICE"
- "SYS_PACCT"
- "SYS_PTRACE"
- "SYS_RAWIO"
- "SYS_RESOURCE"
- "SYS_TIME"
- "SYS_TTY_CONFIG"
- "WAKE_ALARM"
command:
- "/etc/docker/registry/config.yml"
container_name: "image_registry"
entrypoint:
- "/entrypoint.sh"
environment:
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
image: "registry:latest"
ipc: "private"
network_mode: "bridge"
ports:
- "5000:5000/tcp"
restart: "always"
volumes:
- "image_registry_data:/var/lib/registry"
healthcheck:
test: "wget ${REGISTRY_URL} --spider || exit 1"
interval: 2m
timeout: 10s
volumes:
image_registry_data:
external: true

0 comments on commit 3690d19

Please sign in to comment.