-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
53 lines (43 loc) · 1.82 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# this file is automatically generated
# see deploy/dockerfiles/ and the Makefile
#
# --------------------
# Build stage
# --------------------
FROM cachecash/go-cachecash-build:latest as build
WORKDIR $GOPATH/src/github.com/cachecashproject/go-cachecash
COPY . .
RUN make PREFIX=/artifacts all
# --------------------
# Filebeat stage
# --------------------
FROM docker.elastic.co/beats/filebeat:6.6.2 as filebeat
# --------------------
# Omnibus stage
# --------------------
FROM debian:buster
RUN apt-get update \
&& apt-get install -y --no-install-recommends logrotate cron runit sqlite3 ca-certificates \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY deploy/omnibus-cache/our_init /sbin/
CMD ["/sbin/our_init"]
RUN mkdir /etc/service/filebeat
COPY deploy/omnibus-cache/filebeat.sh /etc/service/filebeat/run
COPY deploy/omnibus-cache/filebeat.yml.tpl /etc/filebeat.yml.tpl
RUN mkdir -p /etc/service/cron
COPY deploy/omnibus-cache/cron.sh /etc/service/cron/run
RUN mkdir -p /etc/service/cache/log
COPY deploy/omnibus-cache/cache.sh /etc/service/cache/run
COPY deploy/omnibus-cache/cache.log.sh /etc/service/cache/log/run
COPY deploy/omnibus-cache/cache.log.config /var/log/cachecash/cache/config
# # See README.md for a note about this: we require that config be bind-mounted.
# COPY deploy/omnibus-cache/cache.config.json /etc/cache.config.json
RUN mkdir -p /etc/service/publisher/log
COPY deploy/omnibus-cache/publisher.sh /etc/service/publisher/run
COPY deploy/omnibus-cache/publisher.log.sh /etc/service/publisher/log/run
COPY deploy/omnibus-cache/publisher.log.config /var/log/publishercash/publisher/config
COPY --from=filebeat /usr/share/filebeat/filebeat /usr/bin/
COPY --from=build /artifacts/bin/* /usr/local/bin/
WORKDIR /data
# TODO: Still need containernet packages required on Ubuntu images.
# --------------------