Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBD-4825: Produce arm build of SGW 3.0.3 #186

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions community/sync-gateway/3.0.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ RUN yum -y update && \
yum clean all

# Install Sync Gateway
RUN wget http://packages.couchbase.com/releases/couchbase-sync-gateway/3.0.3/couchbase-sync-gateway-community_3.0.3_x86_64.rpm && \
rpm -i couchbase-sync-gateway-community_3.0.3_x86_64.rpm && \
rm couchbase-sync-gateway-community_3.0.3_x86_64.rpm
RUN SGW_PACKAGE=$(echo "http://packages.couchbase.com/releases/couchbase-sync-gateway/3.0.3/couchbase-sync-gateway-community_3.0.3_@@ARCH@@.rpm" | sed -e "s/@@ARCH@@/$(uname -m)/") && \
SGW_PACKAGE_FILENAME=$(echo "couchbase-sync-gateway-community_3.0.3_@@ARCH@@.rpm" | sed -e "s/@@ARCH@@/$(uname -m)/") && \
wget "${SGW_PACKAGE}" && \
rpm -i ${SGW_PACKAGE_FILENAME} && \
rm ${SGW_PACKAGE_FILENAME}

# Create directory where the default config stores memory snapshots to disk
RUN mkdir /opt/couchbase-sync-gateway/data

# copy the default config into the container
COPY config/sync_gateway_config.json /etc/sync_gateway/config.json

# Create log dir
RUN set -x \
&& mkdir -p /var/log/sync_gateway \
&& chown sync_gateway:sync_gateway /var/log/sync_gateway

# Add bootstrap script
COPY scripts/entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
Expand Down
3 changes: 1 addition & 2 deletions community/sync-gateway/3.0.3/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -e

LOGFILE_DIR=/var/log/sync_gateway
mkdir -p $LOGFILE_DIR
LOGFILE_DIR=${LOGFILE_DIR:-/var/log/sync_gateway}

exec sync_gateway --defaultLogFilePath="${LOGFILE_DIR}" "$@"
13 changes: 10 additions & 3 deletions enterprise/sync-gateway/3.0.3/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,23 @@ RUN yum -y update && \
yum clean all

# Install Sync Gateway
RUN wget http://packages.couchbase.com/releases/couchbase-sync-gateway/3.0.3/couchbase-sync-gateway-enterprise_3.0.3_x86_64.rpm && \
rpm -i couchbase-sync-gateway-enterprise_3.0.3_x86_64.rpm && \
rm couchbase-sync-gateway-enterprise_3.0.3_x86_64.rpm
RUN SGW_PACKAGE=$(echo "http://packages.couchbase.com/releases/couchbase-sync-gateway/3.0.3/couchbase-sync-gateway-enterprise_3.0.3_@@ARCH@@.rpm" | sed -e "s/@@ARCH@@/$(uname -m)/") && \
SGW_PACKAGE_FILENAME=$(echo "couchbase-sync-gateway-enterprise_3.0.3_@@ARCH@@.rpm" | sed -e "s/@@ARCH@@/$(uname -m)/") && \
wget "${SGW_PACKAGE}" && \
rpm -i ${SGW_PACKAGE_FILENAME} && \
rm ${SGW_PACKAGE_FILENAME}

# Create directory where the default config stores memory snapshots to disk
RUN mkdir /opt/couchbase-sync-gateway/data

# copy the default config into the container
COPY config/sync_gateway_config.json /etc/sync_gateway/config.json

# Create log dir
RUN set -x \
&& mkdir -p /var/log/sync_gateway \
&& chown sync_gateway:sync_gateway /var/log/sync_gateway

# Add bootstrap script
COPY scripts/entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
Expand Down
3 changes: 1 addition & 2 deletions enterprise/sync-gateway/3.0.3/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
set -e

LOGFILE_DIR=/var/log/sync_gateway
mkdir -p $LOGFILE_DIR
LOGFILE_DIR=${LOGFILE_DIR:-/var/log/sync_gateway}

exec sync_gateway --defaultLogFilePath="${LOGFILE_DIR}" "$@"