def rename_site_file(): command = helper.new_docker_command('images/site/distr') command.append('alpine') command.append('sh') command.append('-c') command.append('"mv /out_files/site/site*.war /out_files/site/ROOT.war"') return command
def delete_site_dir(): command = helper.new_docker_command('images/site/distr') command.append('alpine') command.append('rm') command.append('-rf') command.append('/out_files/site') return command
def delete_forum_dir(): command = helper.new_docker_command('images/forum/distr') command.append('alpine') command.append('sh') command.append('-c') command.append('"rm -rf /out_files/forum"') return command
def copy_distrib_file(): command = helper.new_docker_command() command.append('-v') command.append(helper.this_path + helper.replace_sep('images/gate') + ':/main_dir') command.append('alpine') command.append('sh -c') command.append('"cp /out_files/appgate*.deb /main_dir/distr/appgate.deb"') return command
def download_postgresql_connector(): command = helper.new_docker_command() command.append('alpine') command.append('wget') command.append('-O') command.append('/out_files/postgresql.jar') command.append('https://jdbc.postgresql.org/download/postgresql-42.2.4.jar') return command
def unzip_platform_distr(): command = helper.new_docker_command() command.append('-v') command.append(helper.this_path + helper.replace_sep('images/core') + ':/main_dir') command.append('alpine') command.append('sh') command.append('/main_dir/get_platform.sh') return command
def unzip_forum_dir(): command = helper.new_docker_command() add_forum_dir(command) command.append('kubeless/unzip') command.append('unzip') command.append('/out_files/forum_*.zip') command.append('-d') command.append('/main_dir/distr/forum') return command
def download_onescript(): command = helper.new_docker_command('images/core/distr/') command.append('alpine') command.append('wget') command.append('-O') command.append('/out_files/onescript.rpm') command.append( 'http://oscript.io/downloads/1_1_1/onescript-engine-1.1.1-1.fc26.noarch.rpm' ) return command
def unzip_site_dir(): command = helper.new_docker_command() command.append('-v') command.append(helper.this_path + helper.replace_sep('images/site') + ':/main_dir') command.append('kubeless/unzip') command.append('unzip') command.append('/out_files/site_*.zip') command.append('-d') command.append('/main_dir/distr/site') return command
def unzip_platform_distr(is_new_path_to_platform): command = helper.new_docker_command() command.append('-v') command.append(helper.this_path + helper.replace_sep('images/core') + ':/main_dir') command.append('alpine') command.append('sh') if is_new_path_to_platform: command.append('/main_dir/get_platform_from_20_ver.sh') else: command.append('/main_dir/get_platform_to_19_ver.sh') return command
def delete_distrib_file(): command = helper.new_docker_command('images/gate/distr') command.append('alpine') command.append('sh -c "rm -rf /out_files/*.deb"') return command
def delete_license_tools_files(): command = helper.new_docker_command('images/core/distr/') command.append('alpine') command.append('sh -c "rm -rf /out_files/license-tools"') return command
def delete_core_distr_files(): command = helper.new_docker_command('images/core/distr/') command.append('alpine') command.append('sh -c "rm -rf /out_files/*.rpm"') return command