forked from icon-project/goloop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update icon docker image build scripts
- Loading branch information
1 parent
f4c6341
commit 59d4625
Showing
11 changed files
with
64 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
ARG IMAGE_PY_DEPS | ||
FROM ${IMAGE_PY_DEPS} | ||
ARG IMAGE_BASE | ||
FROM ${IMAGE_BASE} | ||
LABEL MAINTAINER="[email protected]" | ||
|
||
# install JRE | ||
RUN apk add --no-cache openjdk11-jre-headless | ||
|
||
ARG GOCHAIN_ICON_VERSION | ||
LABEL GOCHAIN_ICON_VERSION="$GOCHAIN_ICON_VERSION" | ||
|
||
# install python executor | ||
ADD dist/iconee-*.whl /goloop/ | ||
RUN /entrypoint python3 -m pip -q install /goloop/iconee-*.whl && \ | ||
rm -f /goloop/iconee-*.whl | ||
ADD dist/pyee /goloop/pyee | ||
RUN /entrypoint python3 -m pip -q install /goloop/pyee/iconee-*.whl && \ | ||
rm -rf /goloop/pyee | ||
|
||
# install java executor | ||
ARG JAVAEE_VERSION | ||
ADD dist/execman-${JAVAEE_VERSION}.zip /goloop/ | ||
RUN unzip -q /goloop/execman-${JAVAEE_VERSION}.zip -d /goloop/ && \ | ||
mv /goloop/execman-${JAVAEE_VERSION} /goloop/execman && \ | ||
rm -f /goloop/execman-*.zip | ||
ENV JAVAEE_BIN /goloop/execman/bin/execman | ||
|
||
# install gochain and other stuff | ||
ADD dist/gochain /goloop/bin/ | ||
ADD dist/bin/* /goloop/bin/ | ||
ENV PATH $PATH:/goloop/bin | ||
WORKDIR /goloop | ||
|
||
# container configuration | ||
WORKDIR /goloop | ||
EXPOSE 9080/tcp | ||
EXPOSE 8080/tcp | ||
|
||
|
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
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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
ARG IMAGE_PY_DEPS | ||
FROM ${IMAGE_PY_DEPS} | ||
ARG IMAGE_BASE | ||
FROM ${IMAGE_BASE} | ||
LABEL MAINTAINER="[email protected]" | ||
|
||
# install JRE | ||
RUN apk add --no-cache openjdk11-jre-headless | ||
|
||
ARG GOLOOP_ICON_VERSION | ||
LABEL GOLOOP_ICON_VERSION="$GOLOOP_ICON_VERSION" | ||
|
||
|
@@ -24,10 +21,12 @@ ENV JAVAEE_BIN /goloop/execman/bin/execman | |
# install goloop and other stuff | ||
ADD dist/bin/* /goloop/bin/ | ||
ENV PATH $PATH:/goloop/bin | ||
|
||
# install genesis governance | ||
ADD icon_governance.zip /goloop/ | ||
WORKDIR /goloop | ||
|
||
# container configuration | ||
WORKDIR /goloop | ||
EXPOSE 9080/tcp | ||
EXPOSE 8080/tcp | ||
VOLUME ["/goloop/data"] | ||
|
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
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 |
---|---|---|
@@ -1,35 +1,35 @@ | ||
ARG IMAGE_PY_DEPS | ||
FROM ${IMAGE_PY_DEPS} | ||
ARG IMAGE_BASE | ||
FROM ${IMAGE_BASE} | ||
LABEL MAINTAINER="[email protected]" | ||
|
||
# install JRE | ||
RUN apk add --no-cache openjdk11-jre-headless | ||
|
||
ARG LCIMPORT_VERSION | ||
LABEL LCIMPORT_VERSION="$LCIMPORT_VERSION" | ||
|
||
# install python executor | ||
ADD dist/iconee-*.whl /goloop/ | ||
RUN /entrypoint python3 -m pip -q install /goloop/iconee-*.whl && \ | ||
rm -f /goloop/iconee-*.whl | ||
ADD dist/pyee /goloop/pyee | ||
RUN /entrypoint python3 -m pip -q install /goloop/pyee/iconee-*.whl && \ | ||
rm -rf /goloop/pyee | ||
|
||
# install java executor | ||
#ARG JAVAEE_VERSION | ||
#ADD dist/execman-${JAVAEE_VERSION}.zip /goloop/ | ||
#RUN unzip -q /goloop/execman-${JAVAEE_VERSION}.zip -d /goloop/ && \ | ||
# mv /goloop/execman-${JAVAEE_VERSION} /goloop/execman && \ | ||
# rm -f /goloop/execman-*.zip | ||
#ENV JAVAEE_BIN /goloop/execman/bin/execman | ||
|
||
# install gochain and other stuff | ||
ADD dist/lcimport /goloop/bin/ | ||
# install lcimport and other stuff | ||
ADD dist/bin/* /goloop/bin/ | ||
ENV PATH $PATH:/goloop/bin | ||
WORKDIR /goloop | ||
|
||
# install genesis governance | ||
ADD icon_governance.zip /goloop/ | ||
|
||
# container configuration | ||
WORKDIR /goloop | ||
VOLUME [ "/goloop/data" ] | ||
|
||
ENV LCIMPORT_DATA="/goloop/data" | ||
|
||
ENV PYEE_VERIFY_PACKAGE="true" | ||
CMD [ "/goloop/bin/lcimport", "executor", "run" ] | ||
CMD [ "/goloop/bin/lcimport", "executor", "run" ] |
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
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