Skip to content

Instantly share code, notes, and snippets.

@arcolife
Last active July 26, 2017 12:42
Show Gist options
  • Select an option

  • Save arcolife/ba260a530a023c192383d81964fb4038 to your computer and use it in GitHub Desktop.

Select an option

Save arcolife/ba260a530a023c192383d81964fb4038 to your computer and use it in GitHub Desktop.
generate 20K images deps

########################################################

main entry point script for generating load:

# nohup  ./trigger.sh &

Where the contents of the scripts used, are as follows:

[root@openshift-master hello-python]# cat trigger.sh 
#!/bin/bash

for i in $(seq 19460 300 40000); do 
    ./generate_builds.sh $i `expr $i + 300`
    wait
done

Link to generate_builds.sh

########################################################

used by generate_builds.sh

[root@openshift-master hello-python]# cat hello.py 
print("{1..20}")

########################################################

used by generate_builds.sh

[root@openshift-master hello-python]# cat label_gen.py

#!/bin/env python

print "{", 
for i in range(1, 20): 
    print '"foo%s":"bar%s", ' % (i,i),
print '"foo20":"bar20" }'

########################################################

used by generate_builds.sh

[root@openshift-master hello-python]# cat Dockerfile 
#
# Super simple example of a Dockerfile
#
FROM ubuntu:latest
MAINTAINER Andrew Odewahn "[email protected]"

LABEL  vendor=ACME\ Incorporated \
      com.example.is-beta= \
      com.example.is-production="" \
      com.example.version="0.0.1-beta" \
      com.example.release-date="2015-02-12"

RUN apt-get update
RUN apt-get install -y python python-pip wget
RUN pip install Flask

ADD hello.py /home/hello.py

WORKDIR /home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment