tfcache-comparison

Changes

adapters/configure 33(+6 -27)

applications/compile.sh 8(+0 -8)

compile.sh 9(+2 -7)

configure 34(+22 -12)

docker/Dockerfile 24(+24 -0)

Details

adapters/configure 33(+6 -27)

diff --git a/adapters/configure b/adapters/configure
index 7aa9bac..17a244f 100644
--- a/adapters/configure
+++ b/adapters/configure
@@ -1,29 +1,8 @@
 #!/bin/bash
 
-wget -O java-callgraph.zip https://github.com/gousiosg/java-callgraph/archive/master.zip &
-
-wget -O ApplicationTracer.zip https://github.com/rmeloca/ApplicationTracer/archive/master.zip &
-wget -O JSONSerialiser.zip https://github.com/rmeloca/JSONSerialiser/archive/master.zip &
-wget -O Trace.zip https://github.com/rmeloca/Trace/archive/master.zip &
-wget -O RequestsSimulator.zip https://github.com/rmeloca/RequestsSimulator/archive/master.zip &
-wget -O Cache.zip https://github.com/rmeloca/Cache/archive/master.zip &
-
-wait
-
-unzip java-callgraph.zip &
-
-unzip ApplicationTracer.zip &
-unzip JSONSerialiser.zip &
-unzip Trace.zip &
-unzip RequestsSimulator.zip &
-unzip Cache.zip &
-
-wait
-
-mv java-callgraph-master java-callgraph
-
-mv ApplicationTracer-master ApplicationTracer
-mv JSONSerialiser-master JSONSerialiser
-mv Trace-master Trace
-mv RequestsSimulator-master RequestsSimulator
-mv Cache-master Cache
\ No newline at end of file
+git clone --depth=1 https://github.com/rmeloca/java-callgraph.git
+git clone --depth=1 https://github.com/rmeloca/ApplicationTracer.git
+git clone --depth=1 https://github.com/rmeloca/JSONSerialiser.git
+git clone --depth=1 https://github.com/rmeloca/Trace.git
+git clone --depth=1 https://github.com/rmeloca/RequestsSimulator.git
+git clone --depth=1 https://github.com/rmeloca/Cache.git
\ No newline at end of file
diff --git a/applications/configure b/applications/configure
index e604fc3..a095c14 100644
--- a/applications/configure
+++ b/applications/configure
@@ -1,10 +1,61 @@
 #!/bin/bash
 
-mkdir original
+mkdir uncached
 mkdir callgraphs
 mkdir dumps
 mkdir workloads
-mkdir uncached
 mkdir traces
 mkdir cached
-mkdir output
\ No newline at end of file
+mkdir output
+
+cd uncached
+git clone --depth=1 https://github.com/rmeloca/azkaban-uncached.git azkaban
+git clone --depth=1 https://github.com/rmeloca/cloudstore-uncached.git cloudstore
+git clone --depth=1 https://github.com/rmeloca/fitnesse-uncached.git fitnesse
+git clone --depth=1 https://github.com/rmeloca/keycloak-uncached.git keycloak
+git clone --depth=1 https://github.com/rmeloca/killbill-uncached.git killbill
+git clone --depth=1 https://github.com/rmeloca/mycollab-uncached.git mycollab
+git clone --depth=1 https://github.com/rmeloca/petclinic-uncached.git petclinic
+git clone --depth=1 https://github.com/rmeloca/shopizer-uncached.git shopizer
+git clone --depth=1 https://github.com/rmeloca/thingsboard-uncached.git thingsboard
+cd ..
+
+cd cached
+
+cd developers
+git clone --depth=1 https://github.com/rmeloca/azkaban-developers.git azkaban
+git clone --depth=1 https://github.com/rmeloca/cloudstore-developers.git cloudstore
+git clone --depth=1 https://github.com/rmeloca/fitnesse-developers.git fitnesse
+git clone --depth=1 https://github.com/rmeloca/keycloak-developers.git keycloak
+git clone --depth=1 https://github.com/rmeloca/killbill-developers.git killbill
+git clone --depth=1 https://github.com/rmeloca/mycollab-developers.git mycollab
+git clone --depth=1 https://github.com/rmeloca/petclinic-developers.git petclinic
+git clone --depth=1 https://github.com/rmeloca/shopizer-developers.git shopizer
+git clone --depth=1 https://github.com/rmeloca/thingsboard-developers.git thingsboard
+cd ..
+
+cd aplcache
+git clone --depth=1 https://github.com/rmeloca/azkaban-aplcache.git azkaban
+git clone --depth=1 https://github.com/rmeloca/cloudstore-aplcache.git cloudstore
+git clone --depth=1 https://github.com/rmeloca/fitnesse-aplcache.git fitnesse
+git clone --depth=1 https://github.com/rmeloca/keycloak-aplcache.git keycloak
+git clone --depth=1 https://github.com/rmeloca/killbill-aplcache.git killbill
+git clone --depth=1 https://github.com/rmeloca/mycollab-aplcache.git mycollab
+git clone --depth=1 https://github.com/rmeloca/petclinic-aplcache.git petclinic
+git clone --depth=1 https://github.com/rmeloca/shopizer-aplcache.git shopizer
+git clone --depth=1 https://github.com/rmeloca/thingsboard-aplcache.git thingsboard
+cd ..
+
+cd memoizeit
+git clone --depth=1 https://github.com/rmeloca/azkaban-memoizeit.git azkaban
+git clone --depth=1 https://github.com/rmeloca/cloudstore-memoizeit.git cloudstore
+git clone --depth=1 https://github.com/rmeloca/fitnesse-memoizeit.git fitnesse
+git clone --depth=1 https://github.com/rmeloca/keycloak-memoizeit.git keycloak
+git clone --depth=1 https://github.com/rmeloca/killbill-memoizeit.git killbill
+git clone --depth=1 https://github.com/rmeloca/mycollab-memoizeit.git mycollab
+git clone --depth=1 https://github.com/rmeloca/petclinic-memoizeit.git petclinic
+git clone --depth=1 https://github.com/rmeloca/shopizer-memoizeit.git shopizer
+git clone --depth=1 https://github.com/rmeloca/thingsboard-memoizeit.git thingsboard
+cd ..
+
+cd ..
\ No newline at end of file
diff --git a/approaches/configure b/approaches/configure
index 59e3cd4..084720a 100644
--- a/approaches/configure
+++ b/approaches/configure
@@ -1,14 +1,3 @@
 #!/bin/bash
-
-wget -O APLCache.zip https://github.com/rmeloca/APLCache/archive/master.zip &
-wget -O MemoizeIt.zip https://github.com/rmeloca/MemoizeIt/archive/master.zip &
-
-wait
-
-unzip APLCache.zip &
-unzip MemoizeIt.zip &
-
-wait
-
-mv APLCache-master APLCache
-mv MemoizeIt-master MemoizeIt
\ No newline at end of file
+git clone --depth=1 https://github.com/rmeloca/APLCache.git
+git clone --depth=1 https://github.com/rmeloca/MemoizeIt.git
\ No newline at end of file

compile.sh 9(+2 -7)

diff --git a/compile.sh b/compile.sh
index 9212315..f76dc6e 100644
--- a/compile.sh
+++ b/compile.sh
@@ -1,9 +1,4 @@
 #!/bin/bash
 
-export JAVA_HOME=/usr/lib/jvm/java-8-oracle
-
-cd adapters; bash compile.sh & cd ..
-wait
-cd applications; bash compile.sh & cd ..
-cd approaches; bash compile.sh & cd ..
-wait
\ No newline at end of file
+cd adapters; bash compile.sh; cd ..
+cd approaches; bash compile.sh; cd ..
\ No newline at end of file

configure 34(+22 -12)

diff --git a/configure b/configure
index e95b746..904237b 100644
--- a/configure
+++ b/configure
@@ -1,21 +1,31 @@
 #!/bin/bash
 
-add-apt-repository ppa:webupd8team/java -y
-apt-get update
-apt-get install oracle-java8-installer -y
+if [ -z $1 ]; then
+	apt-get update -qq
 
-apt-get install maven -y
+	apt-get -qq -y install software-properties-common
 
-export JAVA_HOME=/usr/lib/jvm/java-8-oracle
+	add-apt-repository ppa:webupd8team/java -y
 
-apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
-curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
-add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
-apt-get update
-apt-get install docker-ce docker-ce-cli containerd.io -y
+	apt-get update -qq
 
-curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-chmod +x /usr/local/bin/docker-compose
+	echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
+	echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
+	apt-get -qq -y install oracle-java8-installer
+	apt-get -qq -y install maven
+	apt-get -qq -y install git
+
+	export JAVA_HOME=/usr/lib/jvm/java-8-oracle
+
+	apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y
+	curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
+	add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
+	apt-get update
+	apt-get install docker-ce docker-ce-cli containerd.io -y
+
+	curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
+	chmod +x /usr/local/bin/docker-compose
+fi
 
 cd adapters; bash configure & cd ..
 cd approaches; bash configure & cd ..
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
new file mode 100644
index 0000000..b3b48c3
--- /dev/null
+++ b/docker/docker-compose.yml
@@ -0,0 +1,15 @@
+version: "3"
+services:
+  caching-approaches-comparison:
+    build: .
+    container_name: caching-approaches-comparison
+    volumes:
+      - ../:/caching-approaches-comparison
+      - /root/.m2:/root/.m2
+    restart: unless-stopped
+    ports:
+      - 5000:22
+    logging:
+      options:
+        max-size: "10m"
+        max-file: "10"
\ No newline at end of file

docker/Dockerfile 24(+24 -0)

diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..2d6df3d
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,24 @@
+FROM ubuntu:18.04
+
+RUN apt-get update -qq
+
+RUN apt-get -qq -y install software-properties-common
+
+RUN add-apt-repository ppa:webupd8team/java -y
+
+RUN apt-get update -qq
+
+RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
+RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
+RUN apt-get -qq -y install oracle-java8-installer
+RUN apt-get -qq -y install maven
+RUN apt-get -qq -y install git
+
+RUN apt-get -qq -y install ssh
+RUN echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
+RUN mkdir /run/sshd
+RUN echo "root:root" | chpasswd
+
+EXPOSE 22
+
+CMD ["/usr/sbin/sshd", "-D"]
\ No newline at end of file