-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from daimor/master
Updated versions, and fixes in the build process
- Loading branch information
Showing
5 changed files
with
67 additions
and
80 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,7 @@ | ||
# syntax = edrevo/dockerfile-plus | ||
|
||
INCLUDE+ Dockerfile-phase1 | ||
|
||
FROM --platform=linux/amd64 $IMAGE as x86 | ||
|
||
INCLUDE+ Dockerfile-phase2 |
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,7 @@ | ||
# syntax = edrevo/dockerfile-plus | ||
|
||
INCLUDE+ Dockerfile-phase1 | ||
|
||
FROM --platform=linux/arm64 $IMAGEARM as arm | ||
|
||
INCLUDE+ Dockerfile-phase2 |
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,28 @@ | ||
USER root | ||
|
||
WORKDIR /opt/irisapp | ||
RUN chown ${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /opt/irisapp && \ | ||
apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get -y install git && \ | ||
apt-get clean -y && rm -rf /var/lib/apt/lists/* && \ | ||
mkdir /docker-entrypoint-initdb.d/ | ||
|
||
COPY docker-entrypoint.sh / | ||
|
||
USER ${ISC_PACKAGE_MGRUSER} | ||
|
||
COPY --from=0 --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /usr/irissys/iris.cpf /usr/irissys/iris.cpf | ||
COPY --from=0 --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} /usr/irissys/mgr/zpm /usr/irissys/mgr/zpm | ||
|
||
ENV PATH="$PATH:/home/irisowner/.local/bin" | ||
|
||
COPY --chown=${ISC_PACKAGE_MGRUSER}:${ISC_PACKAGE_IRISGROUP} iris_ipm.py /usr/irissys/lib/python/ | ||
|
||
RUN pip install irissqlcli && \ | ||
cat /usr/irissys/lib/python/iris_ipm.py >> /usr/irissys/lib/python/iris.py | ||
|
||
COPY iriscli /home/irisowner/bin/ | ||
|
||
ENTRYPOINT [ "/tini", "--", "/docker-entrypoint.sh" ] | ||
|
||
CMD [ "iris" ] |