Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Add base image (closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenFradet committed Sep 29, 2017
1 parent afd82ae commit e461359
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM openjdk:8-jre-alpine
LABEL maintainer="Snowplow Analytics Ltd. <[email protected]>"

# Snowplow components will be installed in this folder.
ENV SNOWPLOW_PATH="/snowplow"
ENV SNOWPLOW_CONFIG_PATH="${SNOWPLOW_PATH}/config" \
SNOWPLOW_BIN_PATH="${SNOWPLOW_PATH}/bin"

# Create a snowplow group and user.
RUN addgroup snowplow && \
adduser -S -G snowplow snowplow

# Install the components common to all apps.
# https://github.com/yelp/dumb-init: lightweight init system
# su-exec: sudo replacement
RUN apk add --no-cache dumb-init su-exec ca-certificates wget

# /snowplow/bin is meant to contain the application jar.
# /snowplow/config is meant to contain the necessary configuration.
RUN mkdir -p ${SNOWPLOW_BIN_PATH} && \
mkdir -p ${SNOWPLOW_CONFIG_PATH} && \
chown -R snowplow:snowplow ${SNOWPLOW_PATH}

# Expose the configuration directory.
VOLUME ${SNOWPLOW_CONFIG_PATH}

0 comments on commit e461359

Please sign in to comment.