Skip to content

Commit

Permalink
1st
Browse files Browse the repository at this point in the history
  • Loading branch information
takesection committed May 16, 2020
0 parents commit acdd29e
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.idea
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM amazonlinux as download

ENV GRAALVM_VERSION 19.3.1
ENV MAVEN_VERSION 3.6.3

RUN yum -y install tar gzip &&\
curl -o /opt/graalvm-ce.tgz\
-L https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-${GRAALVM_VERSION}/graalvm-ce-java11-linux-amd64-${GRAALVM_VERSION}.tar.gz &&\
/bin/bash -c "(cd /opt; tar -xvzf graalvm-ce.tgz)" &&\
mv /opt/graalvm-ce-java11-${GRAALVM_VERSION} /opt/graalvm-ce &&\
curl -o /opt/maven.tgz\
-L https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz &&\
/bin/bash -c "(cd /opt; tar -xvzf maven.tgz)" &&\
mv /opt/apache-maven-${MAVEN_VERSION} /opt/maven

FROM amazonlinux

ENV JAVA_HOME /usr/lib/jvm/java-11-amazon-corretto.x86_64
ENV GRAALVM_HOME /opt/graalvm-ce
ENV MAVEN_HOME /opt/maven

COPY --from=download /opt/graalvm-ce /opt/graalvm-ce/
COPY --from=download /opt/maven /opt/maven/

RUN yum -y update &&\
yum -y install java-11-amazon-corretto which gcc gcc-c++ glibc-devel zlib-devel &&\
${GRAALVM_HOME}/bin/gu install native-image

21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 Pigumer Group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[![Docker Automated build](https://img.shields.io/docker/automated/jrottenberg/ffmpeg.svg)](https://hub.docker.com/r/pigumergroup/builder/)

Builder
=======

0 comments on commit acdd29e

Please sign in to comment.