File tree Expand file tree Collapse file tree 6 files changed +54
-33
lines changed
rails/rails_trunk/rails_benchmarks
sequel/sequel_trunk/sequel_benchmarks Expand file tree Collapse file tree 6 files changed +54
-33
lines changed Original file line number Diff line number Diff line change 1
1
FROM rubybench/ruby:0.5
2
2
MAINTAINER Alan Guo Xiang Tan "https://twitter.com/tgx_world"
3
3
4
- RUN apt-get update
5
-
6
- RUN apt-get install -y libncurses5-dev libmysqlclient-dev sqlite3 libsqlite3-dev postgresql-client mysql-client
4
+ RUN apt-get update && apt-get install -y \
5
+ libncurses5-dev \
6
+ libmysqlclient-dev \
7
+ sqlite3 \
8
+ libsqlite3-dev \
9
+ postgresql-client \
10
+ mysql-client
7
11
8
12
RUN git clone --verbose --branch master --single-branch https://github.com/ruby-bench/ruby-bench-suite.git
9
13
RUN git clone --verbose --branch master --single-branch https://github.com/rails/rails.git
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ postgres :
4
+ image : postgres:9.6
5
+
6
+ mysql :
7
+ image : mysql:5.6.24
8
+ environment :
9
+ - MYSQL_ALLOW_EMPTY_PASSWORD=yes
10
+
11
+ redis :
12
+ image : redis:2.8.19
13
+
14
+ rails_master :
15
+ build : .
16
+ depends_on :
17
+ - postgres
18
+ - mysql
19
+ - redis
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- while ! exec 6<> /dev/tcp/${POSTGRES_PORT_5432_TCP_ADDR} /${POSTGRES_PORT_5432_TCP_PORT} ; do
5
- echo " $( date) - still trying to connect to Postgres server"
6
- sleep 1
7
- done
8
-
9
- while ! exec 6<> /dev/tcp/${MYSQL_PORT_3306_TCP_ADDR} /${MYSQL_PORT_3306_TCP_PORT} ; do
10
- echo " $( date) - still trying to connect to Mysql server"
11
- sleep 1
12
- done
13
-
14
- dropdb --if-exists -h " $POSTGRES_PORT_5432_TCP_ADDR " -p " $POSTGRES_PORT_5432_TCP_PORT " -U postgres rubybench
15
- createdb -h " $POSTGRES_PORT_5432_TCP_ADDR " -p " $POSTGRES_PORT_5432_TCP_PORT " -U postgres rubybench
16
- echo " DROP DATABASE IF EXISTS rubybench" | mysql -u root -h " $MYSQL_PORT_3306_TCP_ADDR " -P " MYSQL_PORT_3306_TCP_PORT"
17
- echo " CREATE DATABASE rubybench" | mysql -u root -h " $MYSQL_PORT_3306_TCP_ADDR " -P " MYSQL_PORT_3306_TCP_PORT"
4
+ dropdb --if-exists -h postgres -U postgres rubybench
5
+ createdb -h postgres -U postgres rubybench
6
+ echo " DROP DATABASE IF EXISTS rubybench" | mysql -u root -h mysql
7
+ echo " CREATE DATABASE rubybench" | mysql -u root -h mysql
18
8
19
9
echo " gem: --no-ri --no-rdoc" > ~ /.gemrc
20
10
gem update bundler
Original file line number Diff line number Diff line change 1
1
FROM rubybench/ruby:0.5
2
2
MAINTAINER Alan Guo Xiang Tan "https://twitter.com/tgx_world"
3
3
4
- RUN apt-get update
5
- RUN apt-get install -y libncurses5-dev libmysqlclient-dev postgresql-client mysql-client
4
+ RUN apt-get update && apt-get install -y \
5
+ libncurses5-dev \
6
+ libmysqlclient-dev \
7
+ postgresql-client \
8
+ mysql-client
6
9
7
10
RUN git clone --verbose --branch master --single-branch https://github.com/ruby-bench/ruby-bench-suite.git
8
11
RUN git clone --verbose --branch master --single-branch https://github.com/jeremyevans/sequel.git
Original file line number Diff line number Diff line change
1
+ version : ' 3'
2
+ services :
3
+ postgres :
4
+ image : postgres:9.6
5
+
6
+ mysql :
7
+ image : mysql:5.6.24
8
+ environment :
9
+ - MYSQL_ALLOW_EMPTY_PASSWORD=yes
10
+
11
+ sequel_trunk :
12
+ build : .
13
+ depends_on :
14
+ - postgres
15
+ - mysql
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
- while ! exec 6<> /dev/tcp/${POSTGRES_PORT_5432_TCP_ADDR} /${POSTGRES_PORT_5432_TCP_PORT} ; do
5
- echo " $( date) - still trying to connect to Postgres server"
6
- sleep 1
7
- done
8
-
9
- while ! exec 6<> /dev/tcp/${MYSQL_PORT_3306_TCP_ADDR} /${MYSQL_PORT_3306_TCP_PORT} ; do
10
- echo " $( date) - still trying to connect to Mysql server"
11
- sleep 1
12
- done
13
-
14
- dropdb --if-exists -h " $POSTGRES_PORT_5432_TCP_ADDR " -p " $POSTGRES_PORT_5432_TCP_PORT " -U postgres rubybench
15
- createdb -h " $POSTGRES_PORT_5432_TCP_ADDR " -p " $POSTGRES_PORT_5432_TCP_PORT " -U postgres rubybench
16
- echo " DROP DATABASE IF EXISTS rubybench" | mysql -u root -h " $MYSQL_PORT_3306_TCP_ADDR " -P " MYSQL_PORT_3306_TCP_PORT"
17
- echo " CREATE DATABASE rubybench" | mysql -u root -h " $MYSQL_PORT_3306_TCP_ADDR " -P " MYSQL_PORT_3306_TCP_PORT"
4
+ dropdb --if-exists -h postgres -U postgres rubybench
5
+ createdb -h postgres -U postgres rubybench
6
+ echo " DROP DATABASE IF EXISTS rubybench" | mysql -u root -h mysql
7
+ echo " CREATE DATABASE rubybench" | mysql -u root -h mysql
18
8
19
9
echo " gem: --no-ri --no-rdoc" > ~ /.gemrc
20
10
gem update bundler
You can’t perform that action at this time.
0 commit comments