-
Notifications
You must be signed in to change notification settings - Fork 9
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
Support for ARM64 (Fixes #22) #25
Open
sahilph
wants to merge
31
commits into
master
Choose a base branch
from
add-arm64-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 27 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
09b7b5c
Update base image for 2.1.1
sahilph a330f47
Change base for 2.1.0
sahilph ce14cc6
Change base for 2.0.0
sahilph 0eaa494
Change base for 1.7.1
sahilph 4892d40
Updated libicu version to 55
sahilph 238e8fd
Revert "Updated libicu version to 55"
sahilph cca54eb
Change all bases to raspbian
sahilph 328ce3d
Add travis update param
sahilph 5762828
No need to check tini
sahilph 71f2f5e
Revert "No need to check tini"
sahilph a8a070d
Check if tini exists
sahilph 3cd21c4
fix syntax
sahilph e084018
Add support for arm64 (Fixes #22)
sahilph f7573c5
Fix Syntax for arm64
sahilph 0b7c209
fix arm64 vars
sahilph af644c6
Even more var fixes
sahilph 4ac3874
Merge branch 'master' into add-arm64-support
sahilph 7a81fe4
32 on 64
sahilph 4125c14
Change mozjs get method
sahilph 656662e
No need of the gdebi and mozjs copy
sahilph 538f9fb
Fix syntax
sahilph d3e792c
Modify travis util
sahilph 3f295a1
Change branch condition to current branch for testing
sahilph 5067b76
Revert "Change branch condition to current branch for testing"
sahilph 8390b4c
Manifest tag fix
sahilph 5a2b63c
sed fix
sahilph 0dd1671
Update readme
sahilph a0db802
Merge branch 'master' into add-arm64-support
sahilph 0dfca2e
Fix Conflicts, Delete Obselete versions
sahilph 883ab46
Fix vars
sahilph e3fff74
Fix even more vars
sahilph File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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,94 @@ | ||
# Licensed under the Apache License, Version 2.1 (the "License"); you may not | ||
# use this file except in compliance with the License. You may obtain a copy of | ||
# the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations under | ||
# the License. | ||
|
||
#We will be building 64-bit after 32-bit. So we can use this as builder. | ||
FROM treehouses/rpi-couchdb:2.1.1 as builder | ||
|
||
FROM resin/aarch64-debian | ||
LABEL maintainer="[email protected],[email protected]" | ||
|
||
# Add CouchDB user account | ||
RUN groupadd -r couchdb && useradd -d /opt/couchdb -g couchdb couchdb | ||
|
||
RUN dpkg --add-architecture armhf \ | ||
&& apt-get update -y && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
ca-certificates:armhf \ | ||
curl:armhf \ | ||
#erlang-nox: dummy packages dont support different architecture install. Hence install all separately. | ||
erlang-base:armhf erlang-asn1:armhf erlang-corba:armhf erlang-crypto:armhf erlang-diameter:armhf erlang-edoc:armhf erlang-eldap:armhf erlang-erl-docgen:armhf erlang-eunit:armhf erlang-ic:armhf erlang-inets:armhf erlang-mnesia:armhf erlang-odbc:armhf erlang-os-mon:armhf erlang-parsetools:armhf erlang-percept:armhf erlang-public-key:armhf erlang-runtime-tools:armhf erlang-snmp:armhf erlang-ssh:armhf erlang-ssl:armhf erlang-syntax-tools:armhf erlang-tools:armhf erlang-webtool:armhf erlang-xmerl:armhf \ | ||
erlang-reltool:armhf \ | ||
haproxy:armhf \ | ||
libicu52:armhf \ | ||
libmozjs185-1.0:armhf \ | ||
openssl \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# grab gosu for easy step-down from root and tini for signal handling | ||
# see https://github.com/apache/couchdb-docker/pull/28#discussion_r141112407 | ||
ENV GOSU_VERSION 1.10 | ||
ENV TINI_VERSION 0.16.1 | ||
RUN set -ex; \ | ||
\ | ||
apt-get update; \ | ||
apt-get install -y --no-install-recommends wget; \ | ||
rm -rf /var/lib/apt/lists/*; \ | ||
\ | ||
dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \ | ||
\ | ||
# install gosu | ||
wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/${GOSU_VERSION}/gosu-$dpkgArch"; \ | ||
wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \ | ||
gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \ | ||
rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc; \ | ||
chmod +x /usr/local/bin/gosu; \ | ||
\ | ||
# check if tini exists | ||
if ! type "tini" > /dev/null; then \ | ||
\ | ||
# if not then install tini | ||
wget -O /usr/local/bin/tini "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$dpkgArch"; \ | ||
wget -O /usr/local/bin/tini.asc "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-$dpkgArch.asc"; \ | ||
export GNUPGHOME="$(mktemp -d)"; \ | ||
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7; \ | ||
gpg --batch --verify /usr/local/bin/tini.asc /usr/local/bin/tini; \ | ||
rm -r "$GNUPGHOME" /usr/local/bin/tini.asc; \ | ||
chmod +x /usr/local/bin/tini; \ | ||
tini --version; \ | ||
\ | ||
fi; \ | ||
apt-get purge -y --auto-remove wget | ||
|
||
|
||
RUN mkdir -p /opt/couchdb | ||
#Copy pre-compiled couchdb From builder | ||
#This is to be done as CouchDB doesn't compile on arm64 | ||
COPY --from=builder /opt/couchdb /opt/couchdb | ||
|
||
|
||
# Add configuration | ||
COPY local.ini /opt/couchdb/etc/local.d/ | ||
COPY vm.args /opt/couchdb/etc/ | ||
|
||
COPY ./docker-entrypoint.sh / | ||
|
||
# Setup directories and permissions | ||
RUN chown -R couchdb:couchdb /opt/couchdb | ||
|
||
WORKDIR /opt/couchdb | ||
EXPOSE 5984 4369 9100 | ||
VOLUME ["/opt/couchdb/data"] | ||
|
||
ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"] | ||
CMD ["/opt/couchdb/bin/couchdb"] |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sed
is faster, but for OLE you createYAML
on the fly, any specific reason not doing that what in this repo?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no reason as such. This is how we used to do it before I found the method to create it on the fly. 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆗