forked from ytti/oxidized
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change docker build process to use rake
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 deletions.
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ LABEL maintainer="Samer Abdel-Hafez <[email protected]>" | |
|
||
# set up dependencies for the build process | ||
RUN apt-get -yq update && \ | ||
apt-get -yq install ruby2.3 ruby2.3-dev libsqlite3-dev libssl-dev pkg-config make cmake libssh2-1-dev git g++ libffi-dev | ||
apt-get -yq install ruby2.3 ruby2.3-dev libsqlite3-dev libssl-dev pkg-config make cmake libssh2-1-dev git g++ libffi-dev ruby-bundler | ||
|
||
# upgrade libssh2 to self-built backport from stage 1 | ||
COPY --from=libssh2-backport \ | ||
|
@@ -39,8 +39,7 @@ RUN gem install aws-sdk slack-api xmpp4r | |
COPY . /tmp/oxidized/ | ||
WORKDIR /tmp/oxidized | ||
|
||
RUN gem build oxidized.gemspec | ||
RUN gem install oxidized-*.gem | ||
RUN rake install | ||
|
||
# web interface | ||
RUN gem install oxidized-web --no-ri --no-rdoc | ||
|
@@ -49,7 +48,7 @@ RUN gem install oxidized-web --no-ri --no-rdoc | |
WORKDIR / | ||
RUN rm -rf /tmp/oxidized | ||
RUN rm /tmp/*.deb | ||
RUN apt-get -yq --purge autoremove ruby-dev pkg-config make cmake | ||
RUN apt-get -yq --purge autoremove ruby-dev pkg-config make cmake ruby-bundler | ||
|
||
# add runit services | ||
ADD extra/oxidized.runit /etc/service/oxidized/run | ||
|
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