Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
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
Esempio n. 4
0
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
Esempio n. 5
0
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
Esempio n. 6
0
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
Esempio n. 7
0
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
Esempio n. 8
0
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
Esempio n. 9
0
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
Esempio n. 10
0
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
Esempio n. 11
0
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
Esempio n. 12
0
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
Esempio n. 13
0
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