Add build docker

This commit is contained in:
Derry Hamilton 2019-06-12 14:43:15 +01:00
parent 088f77bc42
commit 2e3bdc7004
3 changed files with 39 additions and 0 deletions

4
build_util/create_run_docker Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
set -e
cp *.rpm docker/run/
docker build --rm -t local/c7-runhost docker/run

18
docker/run/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
# General build RPM environment for CentOS 6.x
#
# VERSION 0.0.1
FROM centos:centos7
MAINTAINER Derry Hamilton <derryh@rasilon.net>
# Install up-to-date epel rpm repository
RUN yum -y install epel-release
# Install java first, to get a sensible one.
RUN yum -y install java-1.8.0-openjdk-devel
COPY uJETL-2.*.x86_64.rpm /tmp/
COPY ujetl_entrypoint /
RUN rpm -i /tmp/uJETL-2.*.x86_64.rpm
ENTRYPOINT ["/ujetl_entrypoint"]

View file

@ -0,0 +1,17 @@
#!/bin/bash
set -e
LOG_PROPS=/etc/ujetl/copying_defaults_log4j.xml
cd /var/ujetl
for file in *.xml
do
/usr/bin/java \
-Xms1g \
-Xmx2g \
-cp /usr/share/ujetl/lib/CopyingApp.jar \
com.rasilon.ujetl.CopyingApp \
--log4j "$LOG_PROPS" \
--config "$file"
done