This repository has been archived by the owner on Nov 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
7 changed files
with
32 additions
and
131 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 |
---|---|---|
@@ -1,20 +1,34 @@ | ||
# Dockerfile for the PDC's HubDB service | ||
# | ||
# Base image | ||
# | ||
FROM mongo | ||
# HubDB for PDC-collected aggregate data. | ||
# | ||
# Example: | ||
# sudo docker pull pdcbc/hubdb | ||
# sudo docker run -d --name hubdb -h hubdb --restart=always \ | ||
# -v ${PATH_MONGO_LIVE}:/data/db/:rw \ | ||
# -v ${PATH_MONGO_DUMP}:/data/dump/:rw \ | ||
# pdcbc/hubdb:latest | ||
# | ||
# Folder paths | ||
# - Mongo live db: -v </path/>:/data/db/:rw | ||
# - Mongo dumps: -v </path/>:/data/dump/:rw | ||
# | ||
FROM mongo:3.0 | ||
MAINTAINER [email protected] | ||
ENV RELEASE 0.1.4 | ||
|
||
|
||
# Update system, install Lynx | ||
# Packages | ||
# | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN echo 'Dpkg::Options{ "--force-confdef"; "--force-confold" }' \ | ||
>> /etc/apt/apt.conf.d/local | ||
RUN apt-get update; \ | ||
apt-get upgrade -y | ||
apt-get install -y \ | ||
git; \ | ||
apt-get clean; \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
|
||
# Prepare /app/ folder | ||
# | ||
WORKDIR /app/ | ||
COPY . . | ||
RUN git clone https://github.com/pdcbc/hubdb.git . -b ${RELEASE} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.