forked from rethinkdb/rethinkdb-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
225 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM debian:jessie | ||
|
||
MAINTAINER Anastas Dancha <[email protected]> | ||
|
||
ENV RETHINKDB_PACKAGE_VERSION 2.2.4 | ||
|
||
# Add the RethinkDB repository and public key | ||
# "RethinkDB Packaging <[email protected]>" http://download.rethinkdb.com/apt/pubkey.gpg | ||
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1614552E5765227AEC39EFCFA7E00EF33A8F2399 && \ | ||
echo "deb http://download.rethinkdb.com/apt jessie main" > /etc/apt/sources.list.d/rethinkdb.list && \ | ||
apt-get update && \ | ||
apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION* && \ | ||
apt-get install -y --no-install-recommends bind9-host && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
VOLUME ["/data"] | ||
WORKDIR /data | ||
# process cluster webui | ||
EXPOSE 28015 29015 8080 | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["--bind","all"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ${#} -eq 0 ] || [ "${1:0:1}" = '-' ]; then | ||
[ -n "$DOCKERCLOUD_CONTAINER_FQDN" ] && DOCKERCLOUD_ARGS+=( --canonical-address $DOCKERCLOUD_CONTAINER_FQDN ) | ||
[ -n "$DOCKERCLOUD_IP_ADDRESS" ] && DOCKERCLOUD_ARGS+=( --canonical-address ${DOCKERCLOUD_IP_ADDRESS%/*} ) | ||
if [ -n "$DOCKERCLOUD_SERVICE_HOSTNAME" ]; then | ||
TRY_UNTIL=$(date +%s -d "+ 30 seconds") | ||
DOCKERCLOUD_CLUSTER_HOSTS=0 | ||
for host in $(host -s -t a $DOCKERCLOUD_SERVICE_HOSTNAME | awk '{print $NF}'); do | ||
echo -n "waiting for $host to become available: " >&2 | ||
while test $[$TRY_UNTIL-$(date +%s)] -gt 0; do | ||
if ping -q -w 1 -c 1 $host >/dev/null 2>&1; then | ||
echo "ok" >&2 | ||
let DOCKERCLOUD_CLUSTER_HOSTS+=1 | ||
DOCKERCLOUD_ARGS+=( --join $host ) | ||
break | ||
else | ||
echo -n "." >&2 | ||
fi | ||
done | ||
done | ||
if [ $DOCKERCLOUD_CLUSTER_HOSTS -lt 2 ]; then | ||
echo "seems like we are running in single node mode" >&2 | ||
echo "only one node started or cluster discovery timed-out" >&2 | ||
fi | ||
fi | ||
#[ -n "$DOCKERCLOUD_ARGS" ] && DOCKERCLOUD_ARGS+=( --bind all ) | ||
set -- rethinkdb "$@" "${DOCKERCLOUD_ARGS[@]}" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM debian:wheezy | ||
|
||
MAINTAINER Anastas Dancha <[email protected]> | ||
|
||
ENV RETHINKDB_PACKAGE_VERSION 2.2.4 | ||
|
||
# Add the RethinkDB repository and public key | ||
# "RethinkDB Packaging <[email protected]>" http://download.rethinkdb.com/apt/pubkey.gpg | ||
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1614552E5765227AEC39EFCFA7E00EF33A8F2399 && \ | ||
echo "deb http://download.rethinkdb.com/apt wheezy main" > /etc/apt/sources.list.d/rethinkdb.list && \ | ||
apt-get update && \ | ||
apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION* && \ | ||
apt-get install -y --no-install-recommends bind9-host && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
VOLUME ["/data"] | ||
WORKDIR /data | ||
# process cluster webui | ||
EXPOSE 28015 29015 8080 | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["--bind","all"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ${#} -eq 0 ] || [ "${1:0:1}" = '-' ]; then | ||
[ -n "$DOCKERCLOUD_CONTAINER_FQDN" ] && DOCKERCLOUD_ARGS+=( --canonical-address $DOCKERCLOUD_CONTAINER_FQDN ) | ||
[ -n "$DOCKERCLOUD_IP_ADDRESS" ] && DOCKERCLOUD_ARGS+=( --canonical-address ${DOCKERCLOUD_IP_ADDRESS%/*} ) | ||
if [ -n "$DOCKERCLOUD_SERVICE_HOSTNAME" ]; then | ||
TRY_UNTIL=$(date +%s -d "+ 30 seconds") | ||
DOCKERCLOUD_CLUSTER_HOSTS=0 | ||
for host in $(host -s -t a $DOCKERCLOUD_SERVICE_HOSTNAME | awk '{print $NF}'); do | ||
echo -n "waiting for $host to become available: " >&2 | ||
while test $[$TRY_UNTIL-$(date +%s)] -gt 0; do | ||
if ping -q -w 1 -c 1 $host >/dev/null 2>&1; then | ||
echo "ok" >&2 | ||
let DOCKERCLOUD_CLUSTER_HOSTS+=1 | ||
DOCKERCLOUD_ARGS+=( --join $host ) | ||
break | ||
else | ||
echo -n "." >&2 | ||
fi | ||
done | ||
done | ||
if [ $DOCKERCLOUD_CLUSTER_HOSTS -lt 2 ]; then | ||
echo "seems like we are running in single node mode" >&2 | ||
echo "only one node started or cluster discovery timed-out" >&2 | ||
fi | ||
fi | ||
#[ -n "$DOCKERCLOUD_ARGS" ] && DOCKERCLOUD_ARGS+=( --bind all ) | ||
set -- rethinkdb "$@" "${DOCKERCLOUD_ARGS[@]}" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:trusty | ||
|
||
MAINTAINER Anastas Dancha <[email protected]> | ||
|
||
ENV RETHINKDB_PACKAGE_VERSION 2.2.4 | ||
|
||
# Add the RethinkDB repository and public key | ||
# "RethinkDB Packaging <[email protected]>" http://download.rethinkdb.com/apt/pubkey.gpg | ||
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1614552E5765227AEC39EFCFA7E00EF33A8F2399 && \ | ||
echo "deb http://download.rethinkdb.com/apt trusty main" > /etc/apt/sources.list.d/rethinkdb.list && \ | ||
apt-get update && \ | ||
apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION* && \ | ||
apt-get install -y --no-install-recommends bind9-host && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
VOLUME ["/data"] | ||
WORKDIR /data | ||
# process cluster webui | ||
EXPOSE 28015 29015 8080 | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["--bind","all"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ${#} -eq 0 ] || [ "${1:0:1}" = '-' ]; then | ||
[ -n "$DOCKERCLOUD_CONTAINER_FQDN" ] && DOCKERCLOUD_ARGS+=( --canonical-address $DOCKERCLOUD_CONTAINER_FQDN ) | ||
[ -n "$DOCKERCLOUD_IP_ADDRESS" ] && DOCKERCLOUD_ARGS+=( --canonical-address ${DOCKERCLOUD_IP_ADDRESS%/*} ) | ||
if [ -n "$DOCKERCLOUD_SERVICE_HOSTNAME" ]; then | ||
TRY_UNTIL=$(date +%s -d "+ 30 seconds") | ||
DOCKERCLOUD_CLUSTER_HOSTS=0 | ||
for host in $(host -s -t a $DOCKERCLOUD_SERVICE_HOSTNAME | awk '{print $NF}'); do | ||
echo -n "waiting for $host to become available: " >&2 | ||
while test $[$TRY_UNTIL-$(date +%s)] -gt 0; do | ||
if ping -q -w 1 -c 1 $host >/dev/null 2>&1; then | ||
echo "ok" >&2 | ||
let DOCKERCLOUD_CLUSTER_HOSTS+=1 | ||
DOCKERCLOUD_ARGS+=( --join $host ) | ||
break | ||
else | ||
echo -n "." >&2 | ||
fi | ||
done | ||
done | ||
if [ $DOCKERCLOUD_CLUSTER_HOSTS -lt 2 ]; then | ||
echo "seems like we are running in single node mode" >&2 | ||
echo "only one node started or cluster discovery timed-out" >&2 | ||
fi | ||
fi | ||
#[ -n "$DOCKERCLOUD_ARGS" ] && DOCKERCLOUD_ARGS+=( --bind all ) | ||
set -- rethinkdb "$@" "${DOCKERCLOUD_ARGS[@]}" | ||
fi | ||
|
||
exec "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM ubuntu:utopic | ||
|
||
MAINTAINER Anastas Dancha <[email protected]> | ||
|
||
ENV RETHINKDB_PACKAGE_VERSION 2.2.4 | ||
|
||
# Add the RethinkDB repository and public key | ||
# "RethinkDB Packaging <[email protected]>" http://download.rethinkdb.com/apt/pubkey.gpg | ||
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 1614552E5765227AEC39EFCFA7E00EF33A8F2399 && \ | ||
echo "deb http://download.rethinkdb.com/apt utopic main" > /etc/apt/sources.list.d/rethinkdb.list && \ | ||
apt-get update && \ | ||
apt-get install -y rethinkdb=$RETHINKDB_PACKAGE_VERSION* && \ | ||
apt-get install -y --no-install-recommends bind9-host && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
|
||
VOLUME ["/data"] | ||
WORKDIR /data | ||
# process cluster webui | ||
EXPOSE 28015 29015 8080 | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["--bind","all"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ ${#} -eq 0 ] || [ "${1:0:1}" = '-' ]; then | ||
[ -n "$DOCKERCLOUD_CONTAINER_FQDN" ] && DOCKERCLOUD_ARGS+=( --canonical-address $DOCKERCLOUD_CONTAINER_FQDN ) | ||
[ -n "$DOCKERCLOUD_IP_ADDRESS" ] && DOCKERCLOUD_ARGS+=( --canonical-address ${DOCKERCLOUD_IP_ADDRESS%/*} ) | ||
if [ -n "$DOCKERCLOUD_SERVICE_HOSTNAME" ]; then | ||
TRY_UNTIL=$(date +%s -d "+ 30 seconds") | ||
DOCKERCLOUD_CLUSTER_HOSTS=0 | ||
for host in $(host -s -t a $DOCKERCLOUD_SERVICE_HOSTNAME | awk '{print $NF}'); do | ||
echo -n "waiting for $host to become available: " >&2 | ||
while test $[$TRY_UNTIL-$(date +%s)] -gt 0; do | ||
if ping -q -w 1 -c 1 $host >/dev/null 2>&1; then | ||
echo "ok" >&2 | ||
let DOCKERCLOUD_CLUSTER_HOSTS+=1 | ||
DOCKERCLOUD_ARGS+=( --join $host ) | ||
break | ||
else | ||
echo -n "." >&2 | ||
fi | ||
done | ||
done | ||
if [ $DOCKERCLOUD_CLUSTER_HOSTS -lt 2 ]; then | ||
echo "seems like we are running in single node mode" >&2 | ||
echo "only one node started or cluster discovery timed-out" >&2 | ||
fi | ||
fi | ||
#[ -n "$DOCKERCLOUD_ARGS" ] && DOCKERCLOUD_ARGS+=( --bind all ) | ||
set -- rethinkdb "$@" "${DOCKERCLOUD_ARGS[@]}" | ||
fi | ||
|
||
exec "$@" |