fix: update project source links, kallithea -> forgejo
This commit is contained in:
parent
da526824f9
commit
65ac2baf43
7 changed files with 32 additions and 33 deletions
|
@ -72,11 +72,11 @@ env.restricted_pypi_username = 'username'
|
|||
env.restricted_pypi_password = 'password'
|
||||
|
||||
# these credentials are used to access the Rattail Project source code on
|
||||
# Kallithea (https://kallithea.rattailproject.org/). they are only needed if
|
||||
# Forgejo (https://forgejo.wuttaproject.org/rattail/). they are only needed if
|
||||
# you are integrating with a proprietary POS system, and running from source
|
||||
# instead of released packages; i.e. a typical stage setup.
|
||||
env.kallithea_username = 'username'
|
||||
env.kallithea_password = 'password'
|
||||
env.forgejo_username = 'username'
|
||||
env.forgejo_password = 'password'
|
||||
|
||||
|
||||
##############################
|
||||
|
|
29
machines/theo-server/fabfile.py
vendored
29
machines/theo-server/fabfile.py
vendored
|
@ -47,6 +47,10 @@ def bootstrap_base(c):
|
|||
# rattail user + common config
|
||||
make_system_user(c, 'rattail', home='/var/lib/rattail', shell='/bin/bash')
|
||||
postfix.alias(c, 'rattail', 'root')
|
||||
# c.sudo('git config --global credential.helper store',
|
||||
# user='rattail')
|
||||
# c.sudo('git config --global credential.https://forgejo.wuttaproject.org.username MYUSERNAME',
|
||||
# user='rattail')
|
||||
mkdir(c, '/etc/rattail', use_sudo=True)
|
||||
deploy(c, 'rattail/rattail.conf.mako', '/etc/rattail/rattail.conf',
|
||||
use_sudo=True, context={'env': env})
|
||||
|
@ -313,30 +317,25 @@ def install_theo_source(c, envroot):
|
|||
|
||||
# catapult
|
||||
elif env.theo_integrates_with == 'catapult':
|
||||
install_source_package(c, envroot, 'onager', restricted=True)
|
||||
install_source_package(c, envroot, 'rattail-onager', restricted=True)
|
||||
install_source_package(c, envroot, 'tailbone-onager', restricted=True)
|
||||
install_source_package(c, envroot, 'onager')
|
||||
install_source_package(c, envroot, 'rattail-onager')
|
||||
install_source_package(c, envroot, 'tailbone-onager')
|
||||
|
||||
# locsms
|
||||
elif env.theo_integrates_with == 'locsms':
|
||||
install_source_package(c, envroot, 'luckysmores', restricted=True)
|
||||
install_source_package(c, envroot, 'rattail-luckysmores', restricted=True)
|
||||
install_source_package(c, envroot, 'tailbone-locsms', restricted=True)
|
||||
install_source_package(c, envroot, 'luckysmores')
|
||||
install_source_package(c, envroot, 'rattail-luckysmores')
|
||||
install_source_package(c, envroot, 'tailbone-locsms')
|
||||
|
||||
# theo
|
||||
install_source_package(c, envroot, 'theo')
|
||||
|
||||
|
||||
def install_source_package(c, envroot, name, restricted=False):
|
||||
def install_source_package(c, envroot, name):
|
||||
if not exists(c, '{}/src/{}'.format(envroot, name)):
|
||||
if restricted:
|
||||
c.sudo('git clone https://{0}:{1}@kallithea.rattailproject.org/rattail-restricted/{2} {3}/src/{2}'.format(
|
||||
env.kallithea_username, env.kallithea_password, name, envroot),
|
||||
user='rattail', echo=False)
|
||||
else:
|
||||
c.sudo('git clone https://kallithea.rattailproject.org/rattail-project/{0} {1}/src/{0}'.format(name, envroot),
|
||||
user='rattail')
|
||||
c.sudo("bash -c 'PIP_CONFIG_FILE={0}/pip.conf cd {0} && bin/pip install -e src/{1}'".format(envroot, name),
|
||||
c.sudo(f'git clone https://forgejo.wuttaproject.org/rattail/{name} {envroot}/src/{name}',
|
||||
user='rattail')
|
||||
c.sudo(f"bash -c 'PIP_CONFIG_FILE={envroot}/pip.conf cd {envroot} && bin/pip install -e src/{name}'",
|
||||
user='rattail')
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue