Title: | The Container for the DockerParallel Package |
---|---|
Description: | Providing the container for the DockerParallel package. |
Authors: | Jiefei Wang [aut, cre] |
Maintainer: | Jiefei Wang <[email protected]> |
License: | GPL-3 |
Version: | 1.0.1 |
Built: | 2024-10-30 04:30:15 UTC |
Source: | https://github.com/jiefei-wang/redisbasecontainer |
Configure the server container environment, the environment variable
serverPort
, serverPassword
and sshPubKey
will be set in this method
## S4 method for signature 'RedisContainer' configServerContainerEnv(container, cluster, verbose = FALSE)
## S4 method for signature 'RedisContainer' configServerContainerEnv(container, cluster, verbose = FALSE)
container |
Reference Container Object. The server container. |
cluster |
S4 |
verbose |
Integer. The verbose level, default 1. |
A RedisContainer
object
Configure the worker container
## S4 method for signature 'RedisContainer' configWorkerContainerEnv(container, cluster, workerNumber, verbose = FALSE)
## S4 method for signature 'RedisContainer' configWorkerContainerEnv(container, cluster, workerNumber, verbose = FALSE)
container |
Reference Container Object. The worker container. |
cluster |
S4 |
workerNumber |
Integer. The number of workers in a container. |
verbose |
Integer. The verbose level, default 1. |
A RedisContainer
object
Get the exported object. The objects are 'getSysPackages', 'setSysPackages', 'addSysPackages', 'getRPackages', 'setRPackages' and 'addRPackages'. see details
## S4 method for signature 'RedisContainer' getExportedNames(x) ## S4 method for signature 'RedisContainer' getExportedObject(x, name)
## S4 method for signature 'RedisContainer' getExportedNames(x) ## S4 method for signature 'RedisContainer' getExportedObject(x, name)
x |
A cloud provider or container object |
name |
The name of the exported object |
The function XSysPackages
can be used to install the system package for the
worker container before running the R worker. The package will be installed by
apt-get install
.
The function XRPackages
will install the R packages for the container. The
package is installed via AnVIL::install
. It will first try the fast binary installation,
then fallback to BiocManager::install
. Therefore, you can also provide the GitHub package
to this function.
Note that these function must be called before deploying the container. Setting the packages will have no effect on the running container.
For the exported function: The current package vector
Get the Redis server container from the worker container
## S4 method for signature 'RedisContainer' getServerContainer(workerContainer)
## S4 method for signature 'RedisContainer' getServerContainer(workerContainer)
workerContainer |
The worker container. |
A RedisContainer
server container
The base redis container. It should not be directly used by the user.
Common RedisContainer parameter
image |
Character, the container image |
name |
Character, the optional name of the container |
environment |
List, the environment variables in the container |
tag |
Character, the image tag |
No reuturn value
Get the Bioconductor Redis server container.
RedisServerContainer(environment = list(), tag = "latest")
RedisServerContainer(environment = list(), tag = "latest")
environment |
List, the environment variables in the container |
tag |
Character, the image tag |
a RedisContainer
object
RedisServerContainer()
RedisServerContainer()
Show the Redis container
## S4 method for signature 'RedisContainer' show(object)
## S4 method for signature 'RedisContainer' show(object)
object |
The |
No return value