Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Alpine poc
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbrouse committed Aug 29, 2017
1 parent 516482b commit 3b25e4c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 50 deletions.
16 changes: 0 additions & 16 deletions docker-compose-build.yml

This file was deleted.

41 changes: 24 additions & 17 deletions docker-compose-template.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,24 @@
ice:
image: jonbrouse/ice:latest
command: |
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Addresses
-Duser.timezone=<Your Timezone ie America/New_York>
-Dice.s3AccessKeyId=<s3AccessKeyId>
-Dice.s3SecretKey=<s3SecretKeyId>
run-app
volumes:
- ./ice/assets/ice.properties:/opt/ice/src/java/ice.properties
nginx:
image: jonbrouse/ice-proxy:latest
ports:
- "80:80"
links:
- ice:ice
version: '3'
services:
ice:
build: ice
hostname: ice
image: jonbrouse/ice:latest
command: |
-Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Addresses
-Duser.timezone=<Your Timezone ie America/New_York>
-Dice.s3AccessKeyId=<s3AccessKeyId>
-Dice.s3SecretKey=<s3SecretKeyId>
run-app
volumes:
- ./ice/assets/ice.properties:/opt/ice/src/java/ice.properties
nginx:
hostname: nginx
image: nginx:1.13.3-alpine
ports:
- "80:80"
links:
- ice:ice
volumes:
- ./nginx/assets/default.conf:/etc/nginx/conf.d/default.conf
29 changes: 12 additions & 17 deletions ice/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
FROM jonbrouse/java:7
FROM openjdk:8u131-jdk-alpine
MAINTAINER Jon Brouse @jonbrouse

ENV INSTALL_DIR /opt/ice
ENV HOME_DIR /root
ENV GRAILS_VERSION 2.4.4
ENV GRAILS_HOME ${HOME_DIR}/.grails/wrapper/${GRAILS_VERSION}/grails-${GRAILS_VERSION}
ENV PATH $PATH:${HOME_DIR}/.grails/wrapper/${GRAILS_VERSION}/grails-${GRAILS_VERSION}/bin/
ENV ICE_VERSION 1.1.1
ENV ICE_VERSION 1.1.2

ARG JAVA_OPTS

WORKDIR ${HOME_DIR}
WORKDIR ${HOME_DIR}/.grails/wrapper/${GRAILS_VERSION}

# Install required software
RUN \
curl -Lo unzip.deb http://http.us.debian.org/debian/pool/main/u/unzip/unzip_6.0-16+deb8u3_amd64.deb && \
dpkg -i unzip.deb && \
mkdir -p ${INSTALL_DIR} && \
mkdir -p .grails/wrapper/${GRAILS_VERSION} && \
unzip /root/grails-${GRAILS_VERSION}.zip -d .grails/wrapper/${GRAILS_VERSION} && \
rm -rf unzip.deb ${GRAILS_VERSION}/grails-${GRAILS_VERSION}.zip
RUN apk add --no-cache bash curl unzip && \
curl -O http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-${GRAILS_VERSION}.zip && \
unzip grails-${GRAILS_VERSION}.zip && \
rm -rf grails-${GRAILS_VERSION}.zip

WORKDIR ${INSTALL_DIR}

# Ice setup
RUN \
mkdir /mnt/ice_processor && \
mkdir /mnt/ice_reader && \
curl -L https://github.com/Teevity/ice/archive/v${ICE_VERSION}.tar.gz | tar -zx -C /opt/ice --strip 1 && \
grails ${JAVA_OPTS} wrapper && \
rm grails-app/i18n/messages.properties && \
sed -i -e '1i#!/bin/bash\' grailsw
RUN mkdir /mnt/ice_processor /mnt/ice_reader && \
curl -fsSL https://github.com/Teevity/ice/archive/v${ICE_VERSION}.tar.gz | tar zx --strip-components=1 && \
grails ${JAVA_OPTS} wrapper && \
rm grails-app/i18n/messages.properties && \
sed -i -e '1i#!/bin/bash\' grailsw
EXPOSE 8080
Expand Down

0 comments on commit 3b25e4c

Please sign in to comment.