Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
PYMAPDL_DB_PORT: 21001 # default won't work on GitHub runners
PYMAPDL_START_INSTANCE: FALSE
PYANSYS_OFF_SCREEN: True
DOCKER_PACKAGE: docker.pkg.github.com/pyansys/pymapdl/mapdl
DOCKER_PACKAGE: ghcr.io/pyansys/pymapdl/mapdl
DOCKER_IMAGE_VERSION_DOCS_BUILD: v21.2.1

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

env:
DISPLAY: ':99.0'
MAPDL_IMAGE: 'docker.pkg.github.com/pyansys/pymapdl/mapdl:v21.2.1'
MAPDL_IMAGE: 'ghcr.io/pyansys/pymapdl/mapdl:v21.2.1'
PYMAPDL_PORT: 21000 # default won't work on azure
PYMAPDL_START_INSTANCE: FALSE
PYANSYS_OFF_SCREEN: True
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:

- name: Pull, launch, and validate MAPDL service
run: |
echo $GH_PAT | docker login -u $GH_USERNAME --password-stdin docker.pkg.github.com
echo $GH_PAT | docker login -u $GH_USERNAME --password-stdin ghcr.io
docker pull $MAPDL_IMAGE
docker run -e ANSYSLMD_LICENSE_FILE=1055@$LICENSE_SERVER --restart always --name mapdl -p $PYMAPDL_PORT:50052 $MAPDL_IMAGE -smp > log.txt &
grep -q 'Server listening on' <(timeout 60 tail -f log.txt)
Expand Down
8 changes: 4 additions & 4 deletions doc/source/getting_started/docker.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ with:
.. code::

GH_USERNAME=<my-github-username>
cat GH_TOKEN.txt | docker login docker.pkg.github.com -u $GH_USERNAME --password-stdin
cat GH_TOKEN.txt | docker login ghcr.io -u $GH_USERNAME --password-stdin


You can now launch MAPDL directly from docker with a short script or
Expand All @@ -54,7 +54,7 @@ MAPDL with:
LICENSE_SERVER=1055@XXX.XXX.XXX.XXX
VERSION=v21.1.0

IMAGE=docker.pkg.github.com/pyansys/mapdl/mapdl_grpc:$VERSION
IMAGE=ghcr.io/pyansys/pymapdl/mapdl:$VERSION
docker run -e ANSYSLMD_LICENSE_FILE=$LICENSE_SERVER -p 50052:50052 $IMAGE -smp


Expand Down Expand Up @@ -108,7 +108,7 @@ In the command:

.. code::

IMAGE=docker.pkg.github.com/pyansys/mapdl/mapdl_grpc:$VERSION
IMAGE=ghcr.io/pyansys/pymapdl/mapdl:$VERSION
docker run -e ANSYSLMD_LICENSE_FILE=$LICENSE_SERVER -p 50052:50052 $IMAGE -smp

You can provide additional command line parameters to MAPDL by simply
Expand All @@ -118,7 +118,7 @@ with the `-np` switch. For example:

.. code::

IMAGE=docker.pkg.github.com/pyansys/mapdl/mapdl_grpc:$VERSION
IMAGE=ghcr.io/pyansys/pymapdl/mapdl:$VERSION
docker run -e ANSYSLMD_LICENSE_FILE=$LICENSE_SERVER -p 50052:50052 $IMAGE -np 4

For additional command line arguments please see the ansys
Expand Down
6 changes: 3 additions & 3 deletions doc/source/getting_started/wsl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ Additionally, you run a Docker image of PyMAPDL with:

.. code:: pwsh

docker run -e ANSYSLMD_LICENSE_FILE=1055@host.docker.internal --restart always --name mapdl -p 50053:50052 docker.pkg.github.com/pyansys/pymapdl/mapdl -smp > log.txt
docker run -e ANSYSLMD_LICENSE_FILE=1055@host.docker.internal --restart always --name mapdl -p 50053:50052 ghcr.io/pyansys/pymapdl/mapdl -smp > log.txt

Successive runs should restart the container or just delete it and rerun it using:

Expand All @@ -213,7 +213,7 @@ Successive runs should restart the container or just delete it and rerun it usin
docker stop mapdl
docker container prune

docker run -e ANSYSLMD_LICENSE_FILE=1055@host.docker.internal --restart always --name mapdl -p 50053:50052 docker.pkg.github.com/pyansys/pymapdl/mapdl -smp > log.txt
docker run -e ANSYSLMD_LICENSE_FILE=1055@host.docker.internal --restart always --name mapdl -p 50053:50052 ghcr.io/pyansys/pymapdl/mapdl -smp > log.txt


This will create a log file (``log.txt``) in your current directory location.
Expand Down Expand Up @@ -274,7 +274,7 @@ You can then run the Docker image with:

.. code:: bash

docker run -e ANSYSLMD_LICENSE_FILE=1055@host.docker.internal -e ANS_USER_PATH='/ansys_jobs/upf' -e ANS_USE_UPF='TRUE' --restart always --name mapdl -p 50053:50052 docker.pkg.github.com/pyansys/pymapdl/mapdl -smp 1>log.txt
docker run -e ANSYSLMD_LICENSE_FILE=1055@host.docker.internal -e ANS_USER_PATH='/ansys_jobs/upf' -e ANS_USE_UPF='TRUE' --restart always --name mapdl -p 50053:50052 ghcr.io/pyansys/pymapdl/mapdl -smp 1>log.txt

.. warning:: The use of UPFs with Docker images or PyMAPDL is still in the Alpha state.

Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ with:

```
GH_USERNAME=myusername
cat GH_TOKEN.txt | docker login docker.pkg.github.com -u $GH_USERNAME --password-stdin
cat GH_TOKEN.txt | docker login ghcr.io -u $GH_USERNAME --password-stdin
```

You can now launch MAPDL directly from docker with a short script or
Expand Down
2 changes: 1 addition & 1 deletion docker/mapdl/IMAGE_NAME
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION=v21.2.1
REPO=docker.pkg.github.com/pyansys/pymapdl
REPO=ghcr.io/pyansys/pymapdl
IMAGE=$REPO/mapdl:$VERSION