1
0
mirror of https://github.com/1C-Company/docker_fresh.git synced 2024-12-04 10:24:48 +02:00
docker_fresh/modules/centos.py

26 lines
653 B
Python
Raw Normal View History

2020-04-05 15:06:36 +02:00
import modules.helper as helper
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
2020-04-05 17:07:02 +02:00
def add_all_before_commands():
2020-04-05 15:06:36 +02:00
commands = []
commands.append(download_postgresql_connector())
return commands
class New():
name = ''
2020-04-05 17:07:02 +02:00
commands_before = []
commands_after = []
2020-04-05 15:06:36 +02:00
def __init__(self):
self.name = 'centos'
2020-04-05 17:07:02 +02:00
self.commands_before = add_all_before_commands()