Skip to content

Instantly share code, notes, and snippets.

@ratopi
Created October 21, 2018 13:04
Show Gist options
  • Save ratopi/6c5fc873021cf1d93abd9abf0cc49cf1 to your computer and use it in GitHub Desktop.
Save ratopi/6c5fc873021cf1d93abd9abf0cc49cf1 to your computer and use it in GitHub Desktop.
Just some docker experiments
version: '2'
services:
man:
build: .
image: ratopi/test/alpine_erlang_test:1.1
FROM alpine:3.8
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL \
maintainer="ratopi" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.docker.dockerfile="/Dockerfile" \
org.label-schema.license="Apache License 2.0" \
org.label-schema.name="ratopi/test" \
org.label-schema.url="https://github.com/ratopi" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-type="git" \
org.label-schema.version=$VERSION \
org.label-schema.vcs-url="https://github.com/ratopi/docker-experiment"
ENV COUCHDB_VERSION ${VERSION}
ENV COUCHDB_HOME /usr/local/couchdb
ENV COUCHDB_CONF ${COUCHDB_HOME}/etc
ENV COUCHDB_DATA /var/lib/couchdb
ENV PATH $PATH:${COUCHDB_HOME}/bin
RUN set -x \
&& apk update \
&& apk add erlang
#COPY entrypoint.sh cluster-setup.sh /usr/local/bin/
#WORKDIR ${COUCHDB_HOME}
#VOLUME ["${COUCHDB_DATA}"]
#EXPOSE 5984 5986 4369 9100
#ENTRYPOINT ["/sbin/tini", "--", "entrypoint.sh"]
#CMD ["couchdb"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment