This repository has been archived by the owner on Aug 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Iglu Server to 0.4.0 image (closes #74)
- Loading branch information
1 parent
a6e7964
commit 01f39cb
Showing
5 changed files
with
46 additions
and
3 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM snowplow-docker-registry.bintray.io/snowplow/base-debian:0.1.0 | ||
LABEL maintainer="Snowplow Analytics Ltd. <[email protected]>" | ||
|
||
# The version of the server to download | ||
ENV IGLU_SERVER_VERSION="0.4.0" | ||
|
||
# The name of the archive to download | ||
ENV ARCHIVE="iglu_server_${IGLU_SERVER_VERSION}.zip" | ||
|
||
# Install Iglu Server, postgresql client | ||
RUN mkdir -p /tmp/build && \ | ||
cd /tmp/build && \ | ||
wget -q http://dl.bintray.com/snowplow/snowplow-generic/${ARCHIVE} && \ | ||
unzip -d ${SNOWPLOW_BIN_PATH} ${ARCHIVE} && \ | ||
cd /tmp && \ | ||
rm -rf /tmp/build && \ | ||
chown -R snowplow:snowplow ${SNOWPLOW_BIN_PATH} && \ | ||
apt-get update && \ | ||
# Workaround https://lists.debian.org/debian-user/2017/08/msg01557.html | ||
mkdir -p /usr/share/man/man7 && \ | ||
apt-get install -y postgresql-client-9.6 | ||
|
||
EXPOSE 8080 | ||
|
||
# Defines an entrypoint script delegating the launching of the server to the snowplow user. | ||
# The script uses dumb-init as the top-level process. | ||
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh | ||
ENTRYPOINT [ "docker-entrypoint.sh" ] | ||
|
||
CMD [ "--help" ] |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
set -e | ||
|
||
# If the config directory has been mounted through -v, we chown it. | ||
if [ "$(stat -c %u ${SNOWPLOW_CONFIG_PATH})" != "$(id -u snowplow)" ]; then | ||
chown -R snowplow:snowplow ${SNOWPLOW_CONFIG_PATH} | ||
fi | ||
|
||
# Make sure we run the server as the snowplow user | ||
exec gosu snowplow:snowplow /usr/bin/java \ | ||
$SP_JAVA_OPTS -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap \ | ||
-jar ${SNOWPLOW_BIN_PATH}/iglu-server-${IGLU_SERVER_VERSION}.jar "$@" |
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 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