import { Code } from '@cloudbeaver/core-blocks' ; import type { InstructionComponent } from '@cloudbeaver/core-version-update' ; export const UpdateInstruction = function UpdateInstruction ( { version , hostName , className } ) { const containerId = hostName || 'cloudbeaver' ; return ( < div className = { className } > < Code > { `sudo docker stop ${ containerId }
        sudo docker rm ${ containerId }
        sudo docker pull dbeaver/cloudbeaver:${ version . number }
        sudo docker run -d --restart unless-stopped -p 8978:8978 -v /var/cloudbeaver/workspace:/opt/cloudbeaver/workspace dbeaver/cloudbeaver:${ version . number }` } < /Code> < /div>); } ;