Skip to content

Commit

Permalink
Use "cikit ssh" instead of plain "docker" command
Browse files Browse the repository at this point in the history
  • Loading branch information
BR0kEN- committed Apr 18, 2018
1 parent 2760060 commit 3ccf393
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@

cd /usr/local/share/cikit/matrix/roles/api/files/cikit-rest-api

container_exec()
{
docker exec -i cikit-rest-api.loc bash -c "$@"
}

cikit env/start --ignore-cikit-mount --privileged
container_exec "apt install ssh lxc iptables -y"
cikit ssh "apt install ssh lxc iptables -y"
cikit matrix/provision --rest-api
container_exec "service docker start && systemctl enable docker"
cikit ssh "service docker start && systemctl enable docker"

if [ "test" == "$1" ]; then
container_exec "cd /var/www/cikit-rest-api && npm run lint && npm test"
cikit ssh "cd /var/www/cikit-rest-api && npm run lint && npm test"
fi

0 comments on commit 3ccf393

Please sign in to comment.