mirror of
https://github.com/e107inc/e107.git
synced 2025-10-28 04:15:04 +01:00
relenv version 0.16.0 bundled with SaltStack 3007.1 has a bug that prevents the installation of the PyPI package "mysqlclient". This change applies a known workaround to enable the package to install in the Salt minion onedir.
e107 Local Test Container Setup
-
Launch a development container:
lxc launch -s local images:ubuntu/focal e107-dev -
Push your public SSH key:
lxc file push --uid 0 --gid 0 -pv ~/.ssh/id_rsa.pub e107-dev/root/.ssh/authorized_keys -
Install OpenSSH Server:
lxc exec e107-dev -- apt install -y openssh-server -
Note the IP of the container:
E107_DEV_HOST=$(lxc exec e107-dev -- hostname -I | cut -d' ' -f1) -
echo "e107-dev: $E107_DEV_HOST" | tee roster -
Configure
e107_tests/config.ymlbased one107_tests/config.sample.yml(from the root of this repository).For all tests:
Set
db.dbname,db.user, anddb.passwordto what you want the container configuration to have.Set
db.hostto the value of$E107_DEV_HOST.For acceptance tests:
Set
deployertosftp.Set
fs.hostto the value of$E107_DEV_HOST.Set
fs.usertowww-data.Set
fs.passwordto any password you want the user to have.Set
fs.pathto/var/www/html/e107/.Set
urlto the output ofecho "http://$E107_DEV_HOST/e107/" -
Apply the container configuration:
salt-ssh 'e107-dev' --state-output=changes state.apply e107-dev