-
- All Implemented Interfaces:
-
java.lang.Runnable
,net.maizegenetics.plugindef.Plugin
,net.maizegenetics.plugindef.PluginListener
,net.maizegenetics.util.ProgressListener
@Deprecated() public class CreatePHGPostgresDockerPlugin extends AbstractPlugin
This plugin will create the phg_postgres docker if it doesn't exist. If it does exist, the plugin returns with a message indicating so. WHy don't we delete existing images, then create a new image? Multiple reasons: 1. Because the phg_postgres Dockerfile does little more then run a specific postgres docker (with possible extensions to add users), the docker entry point is the postgres docker entry point. 2. Because of 1, any containers run against phg_postgres are actually associated with the official postgres docker image (you will see it if you run "docker images" ) 3. Because of 2, any real delete must involve deleting the postgres docker. 4. Deleting the postgres docker will fail if it has containers against it. Only the user can determine if those containers need to remain, or can be cancelled. 5. If there are no containers against the postgres docker, there still could be other applications using the postgres image. Deleting it makes assumptions about the user system. We don't want to go there. Therefore, no attempt will be made to delete a phg_postgres docker if it already exists. Dec 20. 2019: This is deprecated as we no longer supported a phg_postgres docker. Users should pull whatever postgres docker image they want and run that using the files we created.
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
DEFAULT_CITATION
public final static String
POSITION_LIST_NONE
public final static String
TAXA_LIST_NONE
-
Constructor Summary
Constructors Constructor Description CreatePHGPostgresDockerPlugin()
CreatePHGPostgresDockerPlugin(Frame parentFrame)
CreatePHGPostgresDockerPlugin(Frame parentFrame, boolean isInteractive)
-
Method Summary
Modifier and Type Method Description DataSet
processData(DataSet input)
ImageIcon
getIcon()
String
getButtonName()
String
getToolTipText()
static void
main(Array<String> args)
String
dockerDir()
Directory path where the file 'Dockerfile' exists for creating the PHG Postgresql docker CreatePHGPostgresDockerPlugin
dockerDir(String value)
Set Docker Directory. String
dockerCmd()
The docker command name. CreatePHGPostgresDockerPlugin
dockerCmd(String value)
Set Docker Command. -
Methods inherited from class net.maizegenetics.plugindef.AbstractPlugin
addListener, cancel, convert, dataSetReturned, getCitation, getInputs, getListeners, getMenu, getPanel, getParameter, getParentFrame, getUsage, getUsageHTML, hasListeners, isInteractive, isPluginParameter, performFunction, pluginDescription, pluginParameters, pluginUserManualURL, progress, receiveInput, reverseTrace, run, setConfigParameters, setParameter, setParameters, setParametersToDefault, setThreaded, trace, usageParameters, wasCancelled
-
Methods inherited from class net.maizegenetics.plugindef.Plugin
getPluginInstance, isPlugin
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
processData
DataSet processData(DataSet input)
-
getButtonName
String getButtonName()
-
getToolTipText
String getToolTipText()
-
dockerDir
String dockerDir()
Directory path where the file 'Dockerfile' exists for creating the PHG Postgresql docker
-
dockerDir
CreatePHGPostgresDockerPlugin dockerDir(String value)
Set Docker Directory. Directory path where the file 'Dockerfile' exists for creating the PHG Postgresql docker
- Parameters:
value
- Docker Directory
-
dockerCmd
String dockerCmd()
The docker command name. Normally this is docker. On Cornell CBSU machines it is docker1. The default is docker.
-
dockerCmd
CreatePHGPostgresDockerPlugin dockerCmd(String value)
Set Docker Command. The docker command name. Normally this is docker. On Cornell CBSU machines it is docker1. The default is docker.
- Parameters:
value
- Docker Command
-
-
-
-