Skip to content

Commit 14f9e5f

Browse files
author
Traun Leyden
committed
1 parent 2b30bff commit 14f9e5f

File tree

16 files changed

+648
-0
lines changed

16 files changed

+648
-0
lines changed

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*- mode: gitignore; -*-
2+
*~
3+
\#*\#
4+
/.emacs.desktop
5+
/.emacs.desktop.lock
6+
*.elc
7+
auto-save-list
8+
tramp
9+
.\#*
10+
generate/generator/generator
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM centos:centos6.6
2+
3+
MAINTAINER Couchbase Docker Team <[email protected]>
4+
5+
ENV CB_VERSION 2.2.0
6+
ENV CB_RELEASE_URL http://packages.couchbase.com/releases
7+
ENV CB_PACKAGE couchbase-server-community-2.2.0-centos6.x86_64.rpm
8+
9+
# Add couchbase binaries to PATH
10+
ENV PATH $PATH:/opt/couchbase/bin:/opt/couchbase/bin/tools:/opt/couchbase/bin/install
11+
12+
# Install yum dependencies
13+
RUN yum install -y \
14+
hostname \
15+
initscripts \
16+
openssl \
17+
pkgconfig \
18+
sudo \
19+
tar \
20+
wget
21+
22+
# Install couchbase
23+
RUN rpm --install $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE
24+
25+
# Modify /etc/passwd to add a login shell, otherwise running
26+
# su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
27+
# will give an error:
28+
# This account is currently not available.
29+
# This is only an issue on Couchbase Server 3.x, and it's a no-op on 2.x
30+
RUN sed -i -e 's/\/opt\/couchbase:\/sbin\/nologin/\/opt\/couchbase:\/bin\/sh/' /etc/passwd
31+
32+
ADD scripts/couchbase-start /usr/local/bin/
33+
34+
ENTRYPOINT /usr/local/bin/couchbase-start
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# docker
2+
Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
# Couchbase Server start script.
6+
7+
if [ "$(id -u)" != "0" ]; then
8+
echo "This script must be run as root"
9+
exit 1
10+
fi
11+
12+
# Create directories where couchbase stores its data
13+
cd /opt/couchbase
14+
mkdir -p var/lib/couchbase \
15+
var/lib/couchbase/config \
16+
var/lib/couchbase/data \
17+
var/lib/couchbase/stats \
18+
var/lib/couchbase/logs \
19+
var/lib/moxi
20+
chown -R couchbase:couchbase var
21+
22+
# Increase ulimits
23+
ulimit -n 40960
24+
ulimit -c unlimited
25+
ulimit -l unlimited
26+
27+
# Start couchbase, pass -noinput so it doesn't drop us in the erlang shell
28+
su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
29+
30+
echo "couchbase-server finished running"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM centos:centos6.6
2+
3+
MAINTAINER Couchbase Docker Team <[email protected]>
4+
5+
ENV CB_VERSION 3.0.1
6+
ENV CB_RELEASE_URL http://packages.couchbase.com/releases
7+
ENV CB_PACKAGE couchbase-server-community-3.0.1-centos6.x86_64.rpm
8+
9+
# Add couchbase binaries to PATH
10+
ENV PATH $PATH:/opt/couchbase/bin:/opt/couchbase/bin/tools:/opt/couchbase/bin/install
11+
12+
# Install yum dependencies
13+
RUN yum install -y \
14+
hostname \
15+
initscripts \
16+
openssl \
17+
pkgconfig \
18+
sudo \
19+
tar \
20+
wget
21+
22+
# Install couchbase
23+
RUN rpm --install $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE
24+
25+
# Modify /etc/passwd to add a login shell, otherwise running
26+
# su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
27+
# will give an error:
28+
# This account is currently not available.
29+
# This is only an issue on Couchbase Server 3.x, and it's a no-op on 2.x
30+
RUN sed -i -e 's/\/opt\/couchbase:\/sbin\/nologin/\/opt\/couchbase:\/bin\/sh/' /etc/passwd
31+
32+
ADD scripts/couchbase-start /usr/local/bin/
33+
34+
ENTRYPOINT /usr/local/bin/couchbase-start
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# docker
2+
Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
# Couchbase Server start script.
6+
7+
if [ "$(id -u)" != "0" ]; then
8+
echo "This script must be run as root"
9+
exit 1
10+
fi
11+
12+
# Create directories where couchbase stores its data
13+
cd /opt/couchbase
14+
mkdir -p var/lib/couchbase \
15+
var/lib/couchbase/config \
16+
var/lib/couchbase/data \
17+
var/lib/couchbase/stats \
18+
var/lib/couchbase/logs \
19+
var/lib/moxi
20+
chown -R couchbase:couchbase var
21+
22+
# Increase ulimits
23+
ulimit -n 40960
24+
ulimit -c unlimited
25+
ulimit -l unlimited
26+
27+
# Start couchbase, pass -noinput so it doesn't drop us in the erlang shell
28+
su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
29+
30+
echo "couchbase-server finished running"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM centos:centos6.6
2+
3+
MAINTAINER Couchbase Docker Team <[email protected]>
4+
5+
ENV CB_VERSION 2.5.2
6+
ENV CB_RELEASE_URL http://packages.couchbase.com/releases
7+
ENV CB_PACKAGE couchbase-server-enterprise-2.5.2-centos6.x86_64.rpm
8+
9+
# Add couchbase binaries to PATH
10+
ENV PATH $PATH:/opt/couchbase/bin:/opt/couchbase/bin/tools:/opt/couchbase/bin/install
11+
12+
# Install yum dependencies
13+
RUN yum install -y \
14+
hostname \
15+
initscripts \
16+
openssl \
17+
pkgconfig \
18+
sudo \
19+
tar \
20+
wget
21+
22+
# Install couchbase
23+
RUN rpm --install $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE
24+
25+
# Modify /etc/passwd to add a login shell, otherwise running
26+
# su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
27+
# will give an error:
28+
# This account is currently not available.
29+
# This is only an issue on Couchbase Server 3.x, and it's a no-op on 2.x
30+
RUN sed -i -e 's/\/opt\/couchbase:\/sbin\/nologin/\/opt\/couchbase:\/bin\/sh/' /etc/passwd
31+
32+
ADD scripts/couchbase-start /usr/local/bin/
33+
34+
ENTRYPOINT /usr/local/bin/couchbase-start
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# docker
2+
Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
# Couchbase Server start script.
6+
7+
if [ "$(id -u)" != "0" ]; then
8+
echo "This script must be run as root"
9+
exit 1
10+
fi
11+
12+
# Create directories where couchbase stores its data
13+
cd /opt/couchbase
14+
mkdir -p var/lib/couchbase \
15+
var/lib/couchbase/config \
16+
var/lib/couchbase/data \
17+
var/lib/couchbase/stats \
18+
var/lib/couchbase/logs \
19+
var/lib/moxi
20+
chown -R couchbase:couchbase var
21+
22+
# Increase ulimits
23+
ulimit -n 40960
24+
ulimit -c unlimited
25+
ulimit -l unlimited
26+
27+
# Start couchbase, pass -noinput so it doesn't drop us in the erlang shell
28+
su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
29+
30+
echo "couchbase-server finished running"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM centos:centos6.6
2+
3+
MAINTAINER Couchbase Docker Team <[email protected]>
4+
5+
ENV CB_VERSION 3.0.2
6+
ENV CB_RELEASE_URL http://packages.couchbase.com/releases
7+
ENV CB_PACKAGE couchbase-server-enterprise-3.0.2-centos6.x86_64.rpm
8+
9+
# Add couchbase binaries to PATH
10+
ENV PATH $PATH:/opt/couchbase/bin:/opt/couchbase/bin/tools:/opt/couchbase/bin/install
11+
12+
# Install yum dependencies
13+
RUN yum install -y \
14+
hostname \
15+
initscripts \
16+
openssl \
17+
pkgconfig \
18+
sudo \
19+
tar \
20+
wget
21+
22+
# Install couchbase
23+
RUN rpm --install $CB_RELEASE_URL/$CB_VERSION/$CB_PACKAGE
24+
25+
# Modify /etc/passwd to add a login shell, otherwise running
26+
# su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
27+
# will give an error:
28+
# This account is currently not available.
29+
# This is only an issue on Couchbase Server 3.x, and it's a no-op on 2.x
30+
RUN sed -i -e 's/\/opt\/couchbase:\/sbin\/nologin/\/opt\/couchbase:\/bin\/sh/' /etc/passwd
31+
32+
ADD scripts/couchbase-start /usr/local/bin/
33+
34+
ENTRYPOINT /usr/local/bin/couchbase-start
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# docker
2+
Dockerfiles and configuration scripts for the Docker Hub Official Couchbase images
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/sh
2+
3+
set -x
4+
5+
# Couchbase Server start script.
6+
7+
if [ "$(id -u)" != "0" ]; then
8+
echo "This script must be run as root"
9+
exit 1
10+
fi
11+
12+
# Create directories where couchbase stores its data
13+
cd /opt/couchbase
14+
mkdir -p var/lib/couchbase \
15+
var/lib/couchbase/config \
16+
var/lib/couchbase/data \
17+
var/lib/couchbase/stats \
18+
var/lib/couchbase/logs \
19+
var/lib/moxi
20+
chown -R couchbase:couchbase var
21+
22+
# Increase ulimits
23+
ulimit -n 40960
24+
ulimit -c unlimited
25+
ulimit -l unlimited
26+
27+
# Start couchbase, pass -noinput so it doesn't drop us in the erlang shell
28+
su - couchbase -c "/opt/couchbase/bin/couchbase-server -- -noinput"
29+
30+
echo "couchbase-server finished running"

0 commit comments

Comments
 (0)