-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/cpython-featureflag
- Loading branch information
Showing
7 changed files
with
683 additions
and
199 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 @@ | ||
docker and ci/cd change for 25R1 |
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 |
---|---|---|
|
@@ -53,7 +53,7 @@ Launch Mechanical with this code: | |
.. code:: | ||
[email protected] | ||
VERSION=v24.2.0 | ||
VERSION=v25.1.0 | ||
IMAGE=ghcr.io/ansys/pymechanical/mechanical:$VERSION | ||
docker run -e ANSYSLMD_LICENSE_FILE=$LICENSE_SERVER -p ip:10000:10000 $IMAGE | ||
|
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,111 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ARG VERSION | ||
|
||
# LABELS | ||
LABEL description="Mechanical on Ubuntu" | ||
LABEL email="[email protected]" | ||
|
||
# OCI LABELS | ||
LABEL org.opencontainers.image.documentation="https://mechanical.docs.pyansys.com" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libxt6 \ | ||
libsm6 \ | ||
libice6 \ | ||
libx11-6 \ | ||
libx11-xcb1 \ | ||
libxext6 \ | ||
openssl \ | ||
openssh-client \ | ||
libcairo2 \ | ||
elfutils \ | ||
expat \ | ||
fontconfig \ | ||
libglib2.0-0 \ | ||
libc-bin \ | ||
libc6 \ | ||
jbigkit-bin \ | ||
libxau6 \ | ||
libxcursor1 \ | ||
libxdamage1 \ | ||
libxext6 \ | ||
libxfixes3 \ | ||
libxrender1 \ | ||
libxxf86vm1 \ | ||
libxi6 \ | ||
libdrm-common \ | ||
libdrm2 \ | ||
libjpeg-turbo8 \ | ||
libselinux1 \ | ||
libtiff5 \ | ||
libxcb1 \ | ||
libxshmfence1 \ | ||
libglx-mesa0 \ | ||
libosmesa6 \ | ||
libgl1 \ | ||
libgl1-mesa-dri \ | ||
libgl1-mesa-glx \ | ||
libglu1 \ | ||
libglu1-mesa \ | ||
libegl1-mesa \ | ||
libglapi-mesa \ | ||
libpcre2-8-0 \ | ||
libpixman-1-0 \ | ||
libmotif-common \ | ||
libxm4 \ | ||
libgfortran4 \ | ||
libgfortran5 \ | ||
xvfb \ | ||
tini \ | ||
ca-certificates \ | ||
libgomp1 \ | ||
libtirpc3 \ | ||
locales \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& locale-gen en_US.UTF-8 \ | ||
&& locale-gen fr_FR.utf8 \ | ||
&& locale-gen de_DE.utf8 \ | ||
&& locale-gen ja_JP.utf8 \ | ||
&& locale-gen zh_CN.utf8 | ||
|
||
# Copying files | ||
WORKDIR /install/ | ||
|
||
COPY . . | ||
|
||
# License server | ||
# (Optional) | ||
# ENV LICENSE_SERVER=111.222.333.444 | ||
# ENV ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER | ||
|
||
ENV ANSYS_VERSION=${VERSION} \ | ||
ANSYS${VERSION}_DIR=/install/ansys_inc/v${VERSION}/ansys \ | ||
AWP_ROOT${VERSION}=/install/ansys_inc/v${VERSION} \ | ||
CADOE_LIBDIR${VERSION}=/install/ansys_inc/v${VERSION}/commonfiles/Language/en-us \ | ||
ANSYS_WORKBENCH_LOGGING=1 \ | ||
ANSYS_WORKBENCH_LOGGING_FILTER_LEVEL=0 \ | ||
ANSYS_WORKBENCH_LOGGING_AUTO_FLUSH=1 \ | ||
ANSYS_WORKBENCH_LOGGING_CONSOLE=1 \ | ||
ANSYS_WORKBENCH_LOGGING_DIRECTORY=/tmp \ | ||
LANG=POSIX \ | ||
# Ans.EDServices.MaterialCOM.dll dependencies | ||
LD_LIBRARY_PATH=/install/ansys_inc/v${VERSION}/tp/IntelCompiler/2023.1.0/linx64:${LD_LIBRARY_PATH} \ | ||
LD_LIBRARY_PATH=/install/ansys_inc/v${VERSION}/tp/qt/5.15.16//Linux64:${LD_LIBRARY_PATH} \ | ||
#umpe dependencies for Ans.Post.UmpeCOM.dll | ||
LD_LIBRARY_PATH=/install/ansys_inc/v${VERSION}/aisol/umpe/common/bin/linx64:${LD_LIBRARY_PATH} \ | ||
LD_LIBRARY_PATH=/install/ansys_inc/v${VERSION}/tp/hdf5/1_12_2/linx64:${LD_LIBRARY_PATH} \ | ||
# need to use EGL with this image's version of Mesa (version might be fine but I think the package was compiled with some flags set differently than what is required, causing offscreen renderings to only show the background blue-white gradient; need to use EGL to overcome it) | ||
ANS_WB_FORCE_EGL=1 \ | ||
MECHANICAL_ON_DOCKER=TRUE \ | ||
OMPI_ALLOW_RUN_AS_ROOT=1 \ | ||
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 | ||
|
||
# expose port for grpc | ||
EXPOSE 10000 | ||
|
||
# Set working directory | ||
WORKDIR /install/ansys_inc/v${VERSION}/aisol/ | ||
|
||
ENTRYPOINT ["tini", "--", "xvfb-run", "./.workbench", "-dsapplet", "-AppModeMech", "-b", "-grpc", "10000"] |
Oops, something went wrong.