-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into feature/telemetry
- Loading branch information
Showing
49 changed files
with
90,759 additions
and
172 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,36 @@ | ||
steps: | ||
- task: docker@2 | ||
displayName: Login to acrbn acr | ||
inputs: | ||
command: login | ||
containerRegistry: 'acrbn-acr' | ||
- task: docker@2 | ||
displayName: Build nginx-recording-test-proxy locally | ||
inputs: | ||
command: build | ||
repository: nginx-recording-test-proxy-dev | ||
dockerfile: 'tests/recordproxy/Dockerfile' | ||
containerRegistry: 'acrbn-acr' | ||
- bash: | | ||
docker images | ||
host_ip=$(ip -4 addr show docker0 | grep -Po 'inet \K[\d.]+') | ||
echo "Host IP: $host_ip" | ||
HOST_URL="http://$host_ip:5000" | ||
echo "Host URL: $HOST_URL" | ||
mkdir /logs | ||
docker create -p 5004:5004 --name nginx -v ./logs:/logs -e TEST_PROXY_URL="$HOST_URL" acrbn.azurecr.io/nginx-recording-test-proxy-dev:$(Build.BuildId) | ||
docker start nginx | ||
docker create -p 5001:5001 -p 5000:5000 -v ./tests/recordings:/srv/testproxy --name test-proxy azsdkengsys.azurecr.io/engsys/test-proxy:latest | ||
docker start test-proxy | ||
docker ps | ||
displayName: Run nginx-recording-test-proxy locally | ||
- bash: | | ||
sudo mkdir /ca | ||
sudo chmod 777 /ca | ||
sudo curl -v http://localhost:5004/ca.crt > /ca/ca.crt | ||
sudo mkdir /usr/local/share/ca-certificates/extra | ||
sudo cp /ca/ca.crt /usr/local/share/ca-certificates/extra/ca.crt | ||
sudo dpkg-reconfigure ca-certificates | ||
sudo update-ca-certificates | ||
displayName: Install nginx-recording-test-proxy certificate |
Oops, something went wrong.