Sign inSign up

dmesser/ds2webdriver

By dmesser

•Updated over 8 years ago

The containerized version of the DVDStore2 load driver: https://github.com/dvdstore/ds21

Image
0

289

dmesser/ds2webdriver repository overview

Based on dotnet-20-runtime-centos7. Follow these steps to build the ds3webdriver on CentOS with .NET Core 2.0 from SCL:

sudo yum -y install centos-release-scl centos-release-dotnet git scl enable rh-dotnet20 bash git clone https://github.com/dvdstore/ds21⁠ mkdir ds2webdriver && cd ds2webdriver/ dotnet new console rm Program.cs cp ../ds21/ds2/drivers/*.cs . dotnet restore -r rhel.7-x64 dotnet build dotnet publish -f netcoreapp2.0 -c Release -r rhel.7-x64 --self-contained false

create the following Dockerfile while still being in the ds2webdriver/ directory:

FROM registry.centos.org/dotnet/dotnet-20-runtime-centos7

ADD bin/Release/netcoreapp2.0/rhel.7-x64/publish .

RUN ["touch", "driver_config.ini"]

ENTRYPOINT ["container-entrypoint", "dotnet", "ds2webdriver.dll"]

CMD ["--config_file=driver_config.ini"] Build the image:

docker build -t ds2webdriver:latest .

Run by mapping in driver config file:

docker run -it -v /home/dmesser/ds2webdriver/driver.txt:/opt/app-root/app/driver_config.ini:Z ds2webdriver:latest

Optionally, run by supplying parameters directly:

docker run -it ds2webdriver:latest --db_size=20GB --run_time=5 --warmup_time=2 --think_time=0.01 --n_threads=8 --target=172.29.0.1

Tag summary

Content type

Image

Digest

Size

128.8 MB

Last updated

over 8 years ago

docker pull dmesser/ds2webdriver