026997e725
* First pass at an all-in-one compose project * Sort out dependencies so uplink can build in docker * Added the final bits to make this work * Add readme for all-in-one * Fix sed to work on OS X and Linux * Make the readme for all-in-one better * Only bring up the satellite and uplink after fixing the mock overlay * Use a dummy value for mock overlay for now * Finishing touches * Fix url form for aws cli tool * Move files out of all-in-one directory to help with directory confusion. * Added a make target to make all-in-one even better
29 lines
739 B
Docker
29 lines
739 B
Docker
ARG GO_VERSION=1.10
|
|
FROM golang:${GO_VERSION}-alpine AS build-env
|
|
RUN apk update && \
|
|
apk upgrade && \
|
|
apk add curl && \
|
|
apk add git
|
|
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
|
|
COPY . /go/src/storj.io/storj
|
|
RUN cd /go/src/storj.io/storj && dep ensure -vendor-only
|
|
RUN cd /go/src/storj.io/storj/cmd/hc && go build -o satellite
|
|
|
|
|
|
# final stage
|
|
FROM alpine
|
|
ENV REDIS_ADDR=redis:6379 \
|
|
REDIS_PASSWORD= \
|
|
REDIS_DB=0 \
|
|
IDENTITY_ADDR=:7777 \
|
|
HTTP_PORT=:8080 \
|
|
BOOTSTRAP_ADDR=bootstrap.storj.io:8080
|
|
WORKDIR /app
|
|
COPY --from=build-env /go/src/storj.io/storj/cmd/hc/satellite /app/
|
|
COPY cmd/hc/entrypoint /entrypoint
|
|
EXPOSE 8081/udp \
|
|
8080 \
|
|
7070
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|