pass url by env var
This commit is contained in:
30
README.md
30
README.md
@@ -1,25 +1,41 @@
|
||||
# Dockerized test for the interdiscount waiting queue
|
||||
# Dockerized automated tor-browser
|
||||
|
||||
## Whut?
|
||||
|
||||
- This container simulates user accesses via the tor network.
|
||||
- This container simulates user accesses via the tor browser and network.
|
||||
- A web-ui is available on the containers exposed port.
|
||||
- The URL is passed on to the container using env vars
|
||||
|
||||
## How to build and run?
|
||||
|
||||
- Simply use the deploy script or the follwing lines.
|
||||
|
||||
```bash
|
||||
$ git clone $repo
|
||||
$ docker build $repo -t lasttest
|
||||
$ docker build $repo -t browser_test
|
||||
|
||||
# start some browsers
|
||||
for i in $(seq 1 100):
|
||||
docker run -d -p 5800 lasttest
|
||||
# Or simply use the deploy script.
|
||||
docker run -d -p 5800 -e "TARGET_URL='https://google.com'" browser_test
|
||||
```
|
||||
|
||||
- Or use the following docker-compose file
|
||||
|
||||
```yaml
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
torbrowser:
|
||||
image: browser_test:latest
|
||||
ports:
|
||||
- 5800:5800
|
||||
environment:
|
||||
- TARGET_URL="https://google.com"
|
||||
restart: never
|
||||
```
|
||||
|
||||
## Oh no, now I have xyz randomly named containers running - how to stop them?
|
||||
|
||||
```bash
|
||||
$ docker rm --force $(docker ps --filter="ancestor=lasttest"
|
||||
--format="{{.ID}}")
|
||||
$ docker rm --force $(docker ps --filter="ancestor=browser_test" --format="{{.ID}}")
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user