You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docker/README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
# Parallel-preprocessor in Docker
2
2
3
-
Since binary packages are available for Ubuntu, fedora and Debian, there is no need to provide Dockerfile on each platforms, but Docker based on centos would be sufficient.
3
+
Since binary packages are available for Ubuntu, fedora and Debian, there is no need to provide Dockerfile on each platforms, but only one Docker image based on centos will be maintained
4
4
5
-
## Readme for ppp_centos docker image
5
+
## Readme for ppp-centos docker image
6
6
7
-
`docker pull qingfengxia/ppp_centos`
8
-
9
-
This is should be small image with only occt and ppp; both are compiled from source.
7
+
`docker pull qingfengxia/ppp-centos`
8
+
This is should be a small image (size 1.6 GB) based on centos8, with only occt (v7.4) and PPP compiled from source.
10
9
10
+
It is designed for any user want to try ppp using docker.
11
11
12
12
## Readme for ppp_openmc docker image
13
13
@@ -17,7 +17,8 @@ Note: this image is large, about 10 GB
17
17
18
18
## Get the docker image
19
19
20
-
`docker pull qingfengxia/ppp_openmc`
20
+
`docker pull qingfengxia/ppp_openmc` for jupyter notebook way
21
+
`docker pull qingfengxia/ppp_openmc_ssh` for jupyter notebook and ssh ways, it is based on image `qingfengxia/ppp_openmc`
> -e GRANT_SUDO=yes - Instructs the startup script to grant the NB_USER user passwordless sudo capability. You do not need this option to allow the user to conda or pip install additional packages. This option is useful, however, when you wish to give $NB_USER the ability to install OS packages with apt or modify other root-owned files in the container. For this option to take effect, you must run the container with --user root. (The start-notebook.sh script will su $NB_USER after adding $NB_USER to sudoers.) You should only enable sudo if you trust the user or if the container is running on an isolated host.
46
47
47
-
### 2. X11 forwarding on local machine
48
+
### 2. X11 forwarding on local Linux host machine (deprecated as X11 via SSH is more convenient)
48
49
49
50
to get an interative bash shell, as ubuntu 20.04
50
51
@@ -68,24 +69,24 @@ See https://medium.com/@l10nn/running-x11-applications-with-docker-75133178d090
68
69
69
70
### 3. SSH remote shell
70
71
SSH has also X11 forwarding turned on
71
-
`docker run --rm -p 2222:22 -e GRANT_SUDO=yes --user root -it ppp_openmc bash ` then start the ssh server by `sudo service ssh start `
72
+
`docker run --rm -p 2222:22 -p 8888:8888 -e GRANT_SUDO=yes --user root -it ppp_openmc_ssh bash ` then start the ssh server by `sudo service ssh start `
72
73
73
74
This argument `-p 2222:22` map container's port 22 to host 2222 port.
74
-
To access this container by ssh:
75
-
either `ssh localhost -p 2222` or `ssh <container_ip> -p 22`
75
+
To access this container by ssh (-v means verbose, -Y means X11 forwarding):
76
+
either `ssh -v -Y localhost -p 2222` or `ssh -v -Y <container_ip> -p 22`
76
77
77
78
see also [How to setup an ssh server within a docker container](https://phoenixnap.com/kb/how-to-ssh-into-docker-container)
78
79
rebuild the image will change ssh server public key, as the ssh server installation will generate new key pair each time.
79
80
80
-
#### user name and password for ssh both “test”
81
+
#### user name is "jovyan" and password is “test”
81
82
82
83
On Ubuntu, install the `sshpass` package, then use it like this: `sshpass -p 'YourPassword' ssh user@host`
83
84
84
85
#### start ssh server automatically
85
86
86
-
Automatically start the ssh server is possible by uncomment `CMD ["/usr/sbin/sshd","-D"]` in Dockerfile if **Rebuild with ubuntu:focal as the base image**.
87
+
Automatically start the ssh server is possible by `CMD ["/usr/sbin/sshd","-D"]` in Dockerfile_ssh, if the docker container is running non-interactively (without -it option)
87
88
88
-
Currently, `CMD ["/usr/sbin/sshd","-D"]` is commented out, because it will override the jupyter’s start_notebook CMD.
89
+
In Dockerfile_ssh, the line `CMD ["/usr/sbin/sshd","-D"]` will override the jupyter’s start_notebook CMD.
89
90
90
91
> Multiple CMD commands: In principle, there should only be one CMD command in your Dockerfile. When CMD is used multiple times, only the last instance is executed.
# install those below if draw module is enabled for building OpenCASCADE
181
-
yum install tk tcl tk-devel tcl-devel -y
182
-
183
-
# package name distinguish capital letter, while debian name is just libxmu
184
-
yum install openmpi-devel boost-devel -y
185
-
```
173
+
Compile opencascade if not available in package repository, e.g. centos 7/8, see the "Dockerfile_centos" file for updated instructions.
186
174
187
175
To get the latest source code from [OCCT official website](https://www.opencascade.com/), you need register (free of charge). Registered user may setup public ssh key and get readonly access to the occt repo
0 commit comments